diff --git a/yaml-tests/src/test/java/YamlIntegrationTests.java b/yaml-tests/src/test/java/YamlIntegrationTests.java index d21f303eaa..5e4ec8a9e6 100644 --- a/yaml-tests/src/test/java/YamlIntegrationTests.java +++ b/yaml-tests/src/test/java/YamlIntegrationTests.java @@ -39,43 +39,31 @@ public void showcasingTests(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void groupByTests(YamlTest.Runner runner) throws Exception { runner.runYamsql("groupby-tests.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") public void standardTests(YamlTest.Runner runner) throws Exception { runner.runYamsql("standard-tests.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") public void standardTestsWithProto(YamlTest.Runner runner) throws Exception { runner.runYamsql("standard-tests-proto.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") public void fieldIndexTestsProto(YamlTest.Runner runner) throws Exception { runner.runYamsql("field-index-tests-proto.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") public void standardTestsWithMetaData(YamlTest.Runner runner) throws Exception { runner.runYamsql("standard-tests-metadata.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") public void nullOperator(YamlTest.Runner runner) throws Exception { runner.runYamsql("null-operator-tests.yamsql"); } @@ -97,22 +85,16 @@ public void scenarioTests(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void joinTests(YamlTest.Runner runner) throws Exception { runner.runYamsql("join-tests.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void subqueryTests(YamlTest.Runner runner) throws Exception { runner.runYamsql("subquery-tests.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void selectAStar(YamlTest.Runner runner) throws Exception { runner.runYamsql("select-a-star.yamsql"); } @@ -129,22 +111,16 @@ public void createDropCreateTemplate(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") public void aggregateIndexTests(YamlTest.Runner runner) throws Exception { runner.runYamsql("aggregate-index-tests.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void aggregateEmptyTable(YamlTest.Runner runner) throws Exception { runner.runYamsql("aggregate-empty-table.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void aggregateIndexTestsCount(YamlTest.Runner runner) throws Exception { runner.runYamsql("aggregate-index-tests-count.yamsql"); } @@ -190,8 +166,6 @@ public void inPredicate(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") void booleanTypes(YamlTest.Runner runner) throws Exception { runner.runYamsql("boolean.yamsql"); } @@ -202,8 +176,6 @@ void bytes(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") void catalog(YamlTest.Runner runner) throws Exception { runner.runYamsql("catalog.yamsql"); } @@ -215,28 +187,22 @@ public void caseWhen(YamlTest.Runner runner) throws Exception { @TestTemplate @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "maxRows ignored on update (https://github.com/FoundationDB/fdb-record-layer/issues/3100)") + reason = "Update statements fail with force continuations") public void updateDeleteReturning(YamlTest.Runner runner) throws Exception { runner.runYamsql("update-delete-returning.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Like continuation failure (https://github.com/FoundationDB/fdb-record-layer/issues/3099)") void like(YamlTest.Runner runner) throws Exception { runner.runYamsql("like.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Continuation mismatch (https://github.com/FoundationDB/fdb-record-layer/issues/3098)") void functions(YamlTest.Runner runner) throws Exception { runner.runYamsql("functions.yamsql"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Continuation verification (https://github.com/FoundationDB/fdb-record-layer/issues/3096)") void createDrop(YamlTest.Runner runner) throws Exception { runner.runYamsql("create-drop.yamsql"); } @@ -262,8 +228,6 @@ public void indexedFunctions(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void union(YamlTest.Runner runner) throws Exception { runner.runYamsql("union.yamsql"); } @@ -281,8 +245,6 @@ public void cte(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Continuation error (https://github.com/FoundationDB/fdb-record-layer/issues/3097)") public void bitmap(YamlTest.Runner runner) throws Exception { runner.runYamsql("bitmap-aggregate-index.yamsql"); } diff --git a/yaml-tests/src/test/resources/aggregate-empty-table.yamsql b/yaml-tests/src/test/resources/aggregate-empty-table.yamsql index b440a395c0..71dbd3b150 100644 --- a/yaml-tests/src/test/resources/aggregate-empty-table.yamsql +++ b/yaml-tests/src/test/resources/aggregate-empty-table.yamsql @@ -34,20 +34,24 @@ schema_template: test_block: name: agg-empty-table-tests tests: - - - - query: select count(*) from T1; - - supported_version: 4.1.4.0 - - explain: "SCAN(<,>) | TFILTER T1 | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - maxRows: 1 - - result: [{0}] - - result: [] + # 4.1 Triage[Needs initial version]: This test fails when running in multi-server mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(*) from T1; + # - explain: "SCAN(<,>) | TFILTER T1 | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" + # - maxRows: 1 + # - result: [{0}] + # - result: [] - - query: select count(*) from T1 where col1 = 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL1 EQUALS promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" + # 4.1 Triage[Needs rerun to understand error]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + - maxRows: 0 - result: [{0}] - - query: select count(*) from T1 where col1 > 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL1 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" + # 4.1 Triage[Needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + - maxRows: 0 - result: [{0}] - - query: select count(*) from T1 where col1 = 0 group by col1; @@ -64,18 +68,21 @@ test_block: - - query: select count(*) from T1 where col1 > 0 group by col1; - error: "0AF00" - - - - query: select count(*) from T2; - - explain: "AISCAN(T2_I1 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs initial version]: This test fails when running in multi-server mode against 4.0.559.6 (result does not contain all expected rows! expected 1 rows, got 0) + # - + # - query: select count(*) from T2; + # - explain: "AISCAN(T2_I1 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" + # - result: [{0}] - - query: select count(*) from T2 where col1 = 0; - explain: "AISCAN(T2_I2 [EQUALS promote(@c11 AS LONG)] BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP ((_._1 AS _0) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{0}] - - query: select count(*) from T2 where col1 > 0; - explain: "SCAN(<,>) | TFILTER T2 | FILTER _.COL1 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{0}] - - query: select count(*) from T2 group by col1; - explain: "AISCAN(T2_I2 <,> BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS _0)" @@ -91,15 +98,18 @@ test_block: - - query: select count(*) from T3; - explain: "ISCAN(T3_I2 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{0}] - - query: select count(*) from T3 where col1 = 0; - explain: "ISCAN(T3_I1 [EQUALS promote(@c11 AS LONG)]) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(*) from T3 where col1 > 0; - explain: "ISCAN(T3_I1 [[GREATER_THAN promote(@c11 AS LONG)]]) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{0}] - - query: select count(*) from T3 group by col1; - explain: "ISCAN(T3_I1 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) GROUP BY (_._0.COL1 AS _0) | MAP (_._1._0 AS _0)" @@ -115,15 +125,18 @@ test_block: - - query: select count(col2) from T1; - explain: "SCAN(<,>) | TFILTER T1 | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(col2) from T1 where col1 = 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL1 EQUALS promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(col2) from T1 where col1 > 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL1 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(col2) from T1 where col1 = 0 group by col1; - error: "0AF00" @@ -142,15 +155,18 @@ test_block: - - query: select count(col2) from T2; - explain: "AISCAN(T2_I3 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs initial version]: This test fails when running in multi-server mode against 4.0.559.6 (result does not contain all expected rows! expected 1 rows, got 0) + # - result: [{0}] - - query: select count(col2) from T2 where col1 = 0; - explain: "AISCAN(T2_I4 [EQUALS promote(@c11 AS LONG)] BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP ((_._1 AS _0) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(col2) from T2 where col1 > 0; - explain: "SCAN(<,>) | TFILTER T2 | FILTER _.COL1 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[Needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{0}] - - query: select count(col2) from T2 group by col1; - explain: "AISCAN(T2_I4 <,> BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS _0)" @@ -166,15 +182,18 @@ test_block: - - query: select count(col2) from T3; - explain: "ISCAN(T3_I1 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{0}] - - query: select count(col2) from T3 where col1 = 0; - explain: "ISCAN(T3_I1 [EQUALS promote(@c11 AS LONG)]) | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(col2) from T3 where col1 > 0; - explain: "ISCAN(T3_I1 [[GREATER_THAN promote(@c11 AS LONG)]]) | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{0}] - - query: select count(col2) from T3 group by col1; - explain: "ISCAN(T3_I1 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL2) AS _0) GROUP BY (_._0.COL1 AS _0) | MAP (_._1._0 AS _0)" @@ -189,47 +208,56 @@ test_block: - result: [] - - query: select sum(col1) from T1; - - supported_version: 4.1.4.0 - explain: "SCAN(<,>) | TFILTER T1 | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - maxRows: 1 - - result: [{!null _}] - - result: [] + # 4.1 Triage[needs initial version]: This test fails when running in multi-server mode against 4.0.559.6 (too many rows in actual result set! expected 0 rows, got 1) + # - maxRows: 1 + # - result: [{!null _}] + # - result: [] - - query: select sum(col1) from T1 where col1 = 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL1 EQUALS promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{!null _}] - - query: select sum(col1) from T1 where col2 = 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL2 EQUALS promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T1 where col1 > 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL1 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T1 where col2 > 0; - explain: "SCAN(<,>) | TFILTER T1 | FILTER _.COL2 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{!null _}] - - query: select sum(col1) from T2; - explain: "AISCAN(T2_I5 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in multi-server mode against 4.0.559.6 (result does not contain all expected rows! expected 1 rows, got 0) + # - result: [{!null _}] - - query: select sum(col1) from T2 where col1 = 0; - explain: "SCAN(<,>) | TFILTER T2 | FILTER _.COL1 EQUALS promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T2 where col2 = 0; - explain: "AISCAN(T2_I6 [EQUALS promote(@c11 AS LONG)] BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP ((_._1 AS _0) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T2 where col1 > 0; - explain: "SCAN(<,>) | TFILTER T2 | FILTER _.COL1 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T2 where col2 > 0; - explain: "SCAN(<,>) | TFILTER T2 | FILTER _.COL2 GREATER_THAN promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{!null _}] - - query: select sum(col1) from T2 where col1 = 0 group by col2; - error: "0AF00" @@ -243,27 +271,33 @@ test_block: - - query: select sum(col1) from T2 where col2 > 0 group by col2; - explain: "AISCAN(T2_I6 [[GREATER_THAN promote(@c11 AS LONG)]] BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS _0)" - - result: [] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [] - - query: select sum(col1) from T3; - explain: "ISCAN(T3_I1 <,>) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 [needs initial version]Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T3 where col1 = 0; - explain: "ISCAN(T3_I1 [EQUALS promote(@c11 AS LONG)]) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T3 where col2 = 0; - explain: "ISCAN(T3_I2 [EQUALS promote(@c11 AS LONG)]) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{!null _}] - - query: select sum(col1) from T3 where col1 > 0; - explain: "ISCAN(T3_I1 [[GREATER_THAN promote(@c11 AS LONG)]]) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{!null _}] - - query: select sum(col1) from T3 where col2 > 0; - explain: "ISCAN(T3_I2 [[GREATER_THAN promote(@c11 AS LONG)]]) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!null _}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - result: [{!null _}] - - query: select sum(col1) from T3 where col1 = 0 group by col2; - explain: "ISCAN(T3_I2 <,>) | FILTER _.COL1 EQUALS promote(@c11 AS LONG) | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) GROUP BY (_._0.COL2 AS _0) | MAP (_._1._0 AS _0)" @@ -306,15 +340,18 @@ test_block: test_block: name: agg-empty-table-tests-after-modifications tests: - - - - query: select count(*) from T1; - - result: [{0}] - - - - query: select count(*) from T1 where col1 = 0; - - result: [{0}] - - - - query: select count(*) from T1 where col1 > 0; - - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(*) from T1; + # - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select count(*) from T1 where col1 = 0; + # - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(*) from T1 where col1 > 0; + # - result: [{0}] - - query: select count(*) from T1 where col1 = 0 group by col1; - error: "0AF00" @@ -330,15 +367,18 @@ test_block: - - query: select count(*) from T1 where col1 > 0 group by col1; - error: "0AF00" - - - - query: select count(*) from T2; - - result: [{0}] - - - - query: select count(*) from T2 where col1 = 0; - - result: [{0}] - - - - query: select count(*) from T2 where col1 > 0; - - result: [{0}] + # 4.1 Triage[needs initial version]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select count(*) from T2; + # - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(*) from T2 where col1 = 0; + # - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select count(*) from T2 where col1 > 0; + # - result: [{0}] # - # # TODO ([POST] count index returns 0 instead of nothing when running on a table that was cleared) # - query: select count(*) from T2 group by col1; @@ -350,15 +390,18 @@ test_block: # # TODO ([POST] count index returns 0 instead of nothing when running on a table that was cleared) # - query: select count(*) from T2 where col1 > 0 group by col1; # - result: [] - - - - query: select count(*) from T3; - - result: [{0}] - - - - query: select count(*) from T3 where col1 = 0; - - result: [{0}] - - - - query: select count(*) from T3 where col1 > 0; - - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(*) from T3; + # - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(*) from T3 where col1 = 0; + # - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select count(*) from T3 where col1 > 0; + # - result: [{0}] - - query: select count(*) from T3 group by col1; - result: [] @@ -368,15 +411,18 @@ test_block: - - query: select count(*) from T3 where col1 > 0 group by col1; - result: [] - - - - query: select count(col2) from T1; - - result: [{0}] - - - - query: select count(col2) from T1 where col1 = 0; - - result: [{0}] - - - - query: select count(col2) from T1 where col1 > 0; - - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(col2) from T1; + # - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(col2) from T1 where col1 = 0; + # - result: [{0}] + # 4.1 Triage[needs initial version]: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: select count(col2) from T1 where col1 > 0; + # - result: [{0}] - - query: select count(col2) from T1 where col1 = 0 group by col1; - error: "0AF00" @@ -392,15 +438,18 @@ test_block: - - query: select count(col2) from T1 where col1 > 0 group by col1; - error: "0AF00" - - - - query: select count(col2) from T2; - - result: [{0}] - - - - query: select count(col2) from T2 where col1 = 0; - - result: [{0}] - - - - query: select count(col2) from T2 where col1 > 0; - - result: [{0}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select count(col2) from T2; + # - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select count(col2) from T2 where col1 = 0; + # - result: [{0}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select count(col2) from T2 where col1 > 0; + # - result: [{0}] # - # # TODO ([POST] count index returns 0 instead of nothing when running on a table that was cleared) # - query: select count(col2) from T2 group by col1; @@ -412,15 +461,18 @@ test_block: # # TODO ([POST] count index returns 0 instead of nothing when running on a table that was cleared) # - query: select count(col2) from T2 where col1 > 0 group by col1; # - result: [] - - - - query: select count(col2) from T3; - - result: [{0}] - - - - query: select count(col2) from T3 where col1 = 0; - - result: [{0}] - - - - query: select count(col2) from T3 where col1 > 0; - - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select count(col2) from T3; + # - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select count(col2) from T3 where col1 = 0; + # - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select count(col2) from T3 where col1 > 0; + # - result: [{0}] - - query: select count(col2) from T3 group by col1; - result: [] @@ -430,41 +482,51 @@ test_block: - - query: select count(col2) from T3 where col1 > 0 group by col1; - result: [] - - - - query: select sum(col1) from T1; - - result: [{!null _}] - - - - query: select sum(col1) from T1 where col1 = 0; - - result: [{!null _}] - - - - query: select sum(col1) from T1 where col2 = 0; - - result: [{!null _}] - - - - query: select sum(col1) from T1 where col1 > 0; - - result: [{!null _}] - - - - query: select sum(col1) from T1 where col2 > 0; - - result: [{!null _}] - - + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T1; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T1 where col1 = 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T1 where col2 = 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select sum(col1) from T1 where col1 > 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T1 where col2 > 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - # TODO (enhance SUM aggregate index to disambiguate null results and 0 results) # This query is using the index T2_I5, the reason we're returning 0 here comes from the SUM index maintainer that # is configured by default to: # - subtract the indexed value when the corresponding tuple is removed from the base table. # - if the sum reaches zero, it keeps it in the sum index and does not remove the entry from there. - - query: select sum(col1) from T2; - - result: [{0}] - - - - query: select sum(col1) from T2 where col1 = 0; - - result: [{!null _}] - - - - query: select sum(col1) from T2 where col2 = 0; - - result: [{!null _}] - - - - query: select sum(col1) from T2 where col1 > 0; - - result: [{!null _}] - - - - query: select sum(col1) from T2 where col2 > 0; - - result: [{!null _}] + # - query: select sum(col1) from T2; + # - result: [{0}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select sum(col1) from T2 where col1 = 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T2 where col2 = 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T2 where col1 > 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T2 where col2 > 0; + # - result: [{!null _}] - - query: select sum(col1) from T2 where col1 = 0 group by col2; - error: "0AF00" @@ -478,21 +540,26 @@ test_block: # # TODO ([POST] Enhance SUM aggregate index to disambiguate null results and 0 results) # - query: select sum(col1) from T2 where col2 > 0 group by col2; # - result: [] - - - - query: select sum(col1) from T3; - - result: [{!null _}] - - - - query: select sum(col1) from T3 where col1 = 0; - - result: [{!null _}] - - - - query: select sum(col1) from T3 where col2 = 0; - - result: [{!null _}] - - - - query: select sum(col1) from T3 where col1 > 0; - - result: [{!null _}] - - - - query: select sum(col1) from T3 where col2 > 0; - - result: [{!null _}] + # 4.1 Triage[needs rerun]: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # - + # - query: select sum(col1) from T3; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T3 where col1 = 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T3 where col2 = 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T3 where col1 > 0; + # - result: [{!null _}] + # 4.1 Triage[needs rerun]: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # - + # - query: select sum(col1) from T3 where col2 > 0; + # - result: [{!null _}] - - query: select sum(col1) from T3 where col1 = 0 group by col2; - result: [] diff --git a/yaml-tests/src/test/resources/aggregate-index-tests-count-empty.yamsql b/yaml-tests/src/test/resources/aggregate-index-tests-count-empty.yamsql index a84d244bcd..b153e2aff7 100644 --- a/yaml-tests/src/test/resources/aggregate-index-tests-count-empty.yamsql +++ b/yaml-tests/src/test/resources/aggregate-index-tests-count-empty.yamsql @@ -33,7 +33,9 @@ test_block: - - query: select count(*) from t1 - explain: "AISCAN(MV1 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage: [needs initial version] failing when running against 4.0.559.6 (result mismatch) + # Triage Note: 4.2.9.0 to 4.0.559.6 works correctly, need to write a test to verify + # - result: [{0}] - - query: select count(*) from t1 group by col2 - explain: "AISCAN(MV2 <,> BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS _0)" @@ -41,7 +43,8 @@ test_block: - - query: select count(col1) from t1 - explain: "AISCAN(MV3 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[needs initial version]: failing when running against 4.0.559.6 (result mismatch) + # - result: [{0}] - - query: select count(col1) from t1 group by col2 - explain: "AISCAN(MV4 <,> BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS _0)" @@ -52,7 +55,8 @@ test_block: - - query: select count(*) from t2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[needs initial version]: failing when running against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(*) from t2 group by col2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) GROUP BY (_._0.COL2 AS _0) | MAP (_._1._0 AS _0)" @@ -60,7 +64,8 @@ test_block: - - query: select count(col1) from t2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{0}] + # 4.1 Triage[needs initial version]: failing when running against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - result: [{0}] - - query: select count(col1) from t2 group by col2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL1) AS _0) GROUP BY (_._0.COL2 AS _0) | MAP (_._1._0 AS _0)" diff --git a/yaml-tests/src/test/resources/aggregate-index-tests-count.yamsql b/yaml-tests/src/test/resources/aggregate-index-tests-count.yamsql index 1ce95c4add..417df9107d 100644 --- a/yaml-tests/src/test/resources/aggregate-index-tests-count.yamsql +++ b/yaml-tests/src/test/resources/aggregate-index-tests-count.yamsql @@ -47,7 +47,8 @@ test_block: - - query: select count(*) from t1 - explain: "AISCAN(MV1 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{4}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - result: [{4}] - - query: select count(*) from t1 group by col2 - explain: "AISCAN(MV2 <,> BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS _0)" @@ -55,7 +56,8 @@ test_block: - - query: select count(col1) from t1 - explain: "AISCAN(MV3 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{2}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - result: [{2}] - - query: select count(col1) from t1 group by col2 - explain: "AISCAN(MV4 <,> BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS _0)" @@ -81,17 +83,21 @@ test_block: - - query: select count(*) from t2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{4}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - result: [{4}] - - query: select count(*) from t2 group by col2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) GROUP BY (_._0.COL2 AS _0) | MAP (_._1._0 AS _0)" - - result: [{1}, {3}] + # 4.1 Triage[needs rerun]: failed when running with forced continuations (Server-side exception) + # - result: [{1}, {3}] - - query: select count(col1) from t2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)" - - result: [{2}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - result: [{2}] - - query: select count(col1) from t2 group by col2 - explain: "ISCAN(MV5 <,>) | MAP (_ AS _0) | AGG (count(_._0.COL1) AS _0) GROUP BY (_._0.COL2 AS _0) | MAP (_._1._0 AS _0)" - - result: [{1}, {1}] + # 4.1 Triage[needs rerun]: failed when running with forced continuations (server-side error) + # - result: [{1}, {1}] ... diff --git a/yaml-tests/src/test/resources/aggregate-index-tests.yamsql b/yaml-tests/src/test/resources/aggregate-index-tests.yamsql index b5b8d8868a..55781fae77 100644 --- a/yaml-tests/src/test/resources/aggregate-index-tests.yamsql +++ b/yaml-tests/src/test/resources/aggregate-index-tests.yamsql @@ -133,7 +133,8 @@ test_block: # controlling for that, it can still use the index - query: select max(col2) from T1 use index (mv8); - explain: "ISCAN(MV8 <,>) | MAP (_ AS _0) | AGG (max_l(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!l 13}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - result: [{!l 13}] - # Min/max indexes need keep what amounts to a standard value index on their keys (in order to properly look up # the min/max). That index should be usable for normal queries just like a value index. Note that the scan is @@ -148,13 +149,15 @@ test_block: - - query: select min(col3) from T2 group by col1, col2; - explain: "ISCAN(MV2 <,>) | MAP (_ AS _0) | AGG (min_l(_._0.COL3) AS _0) GROUP BY (_._0.COL1 AS _0, _._0.COL2 AS _1) | MAP (_._1._0 AS _0)" - - result: [{!l 1}, {!l 2}, {!l 3}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (result mismatch) + # - result: [{!l 1}, {!l 2}, {!l 3}] - # this should use the aggregate index in the future, for now, it is using streaming aggregate # over base table scan. - query: select max(col2) from t2; - explain: "ISCAN(MV3 <,>) | MAP (_ AS _0) | AGG (max_l(_._0.COL2) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - - result: [{!l 2}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (result mismatch) + # - result: [{!l 2}] - - query: select col1, sum(col2) from T1 USE INDEX (vi1) group by col1; - explain: "ISCAN(VI1 <,>) | MAP (_ AS _0) | AGG (sum_l(_._0.COL2) AS _0) GROUP BY (_._0.COL1 AS _0) | MAP (_._0._0 AS COL1, _._1._0 AS _1)" @@ -209,11 +212,13 @@ test_block: # Permuted max index can also be used to evaluate other aggregate functions via aggregation and roll-up - query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 asc; - explain: "ISCAN(MV9 [EQUALS promote(@c20 AS LONG)]) | MAP (_ AS _0) | AGG (sum_l(_._0.COL2) AS _0) GROUP BY (_._0.COL1 AS _0, _._0.COL3 AS _1) | MAP (_._0._1 AS COL3, _._1._0 AS S)" - - result: [{COL3: 1, S: 1}, {COL3: 2, S: 2}, {COL3: 100, S: 1}, {COL3: 200, S: 2}] + # 4.1 Triage[needs rerun]: failed when running with forced continuations (result mismatch) + # - result: [{COL3: 1, S: 1}, {COL3: 2, S: 2}, {COL3: 100, S: 1}, {COL3: 200, S: 2}] - - query: select col3, sum(col2) as s from t2 use index (mv9) where col1 = 1 group by col1, col3 order by col3 desc; - explain: "ISCAN(MV9 [EQUALS promote(@c20 AS LONG)] REVERSE) | MAP (_ AS _0) | AGG (sum_l(_._0.COL2) AS _0) GROUP BY (_._0.COL1 AS _0, _._0.COL3 AS _1) | MAP (_._0._1 AS COL3, _._1._0 AS S)" - - result: [{COL3: 200, S: 2}, {COL3: 100, S: 1}, {COL3: 2, S: 2}, {COL3: 1, S: 1}] + # 4.1 Triage[needs rerun]: failed when running with forced continuations (result mismatch) + # - result: [{COL3: 200, S: 2}, {COL3: 100, S: 1}, {COL3: 2, S: 2}, {COL3: 1, S: 1}] # - # # grouping by constant is not yet supported. # - query: select sum(col2) from t1 group by 3,2,1; @@ -228,9 +233,10 @@ test_block: - - query: select max_ever(col3) from T2 group by col1, col2; - result: [{!l 100}, {!l 200}, {!l 400}] - - - - query: select min_ever(col3) from t2 - - result: [{!l 1}] + # 4.1 Triage[needs initial version]: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - + # - query: select min_ever(col3) from t2 + # - result: [{!l 1}] - - query: select min_ever(col3) from t2 - explain: "AISCAN(MV7 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" diff --git a/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql b/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql index 0aedc30da1..787122d10f 100644 --- a/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql +++ b/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql @@ -70,11 +70,13 @@ test_block: - - query: SELECT bitmap_construct_agg(bitmap_bit_position(id)) as bitmap, bitmap_bucket_offset(id) as offset FROM T2 GROUP BY bitmap_bucket_offset(id) - explain: "ISCAN(AGG_INDEX_1 <,>) | MAP (_ AS _0) | AGG (bitmap_construct_agg_l((_._0.ID) bitmap_bit_position 10000) AS _0) GROUP BY ((_._0.ID) bitmap_bucket_offset 10000 AS _0) | MAP (_._1._0 AS BITMAP, _._0._0 AS OFFSET)" - - unorderedResult: [{BITMAP: xStartsWith_1250'060000c', 'OFFSET':0}, {BITMAP: xStartsWith_1250'02', 'OFFSET':10000}] + # 4.1 Triage: [Initial version] this fails with continuation tests against 4.0.559.6. Wrong results + # - unorderedResult: [{BITMAP: xStartsWith_1250'060000c', 'OFFSET':0}, {BITMAP: xStartsWith_1250'02', 'OFFSET':10000}] - - query: SELECT bitmap_construct_agg(bitmap_bit_position(id)) as bitmap, category, bitmap_bucket_offset(id) as offset FROM T2 GROUP BY category, bitmap_bucket_offset(id) - explain: "ISCAN(AGG_INDEX_2 <,>) | MAP (_ AS _0) | AGG (bitmap_construct_agg_l((_._0.ID) bitmap_bit_position 10000) AS _0) GROUP BY (_._0.CATEGORY AS _0, (_._0.ID) bitmap_bucket_offset 10000 AS _1) | MAP (_._1._0 AS BITMAP, _._0._0 AS CATEGORY, _._0._1 AS OFFSET)" - - unorderedResult: [{BITMAP: xStartsWith_1250'0200004', 'CATEGORY': 'hello', 'OFFSET':0}, - {BITMAP: xStartsWith_1250'02', 'CATEGORY': 'hello', 'OFFSET':10000}, - {BITMAP: xStartsWith_1250'0400008', 'CATEGORY': 'world', 'OFFSET':0}] + # 4.1 Triage: [Initial version] this fails with continuation tests against 4.0.559.6. Wrong results + # - unorderedResult: [{BITMAP: xStartsWith_1250'0200004', 'CATEGORY': 'hello', 'OFFSET':0}, + # {BITMAP: xStartsWith_1250'02', 'CATEGORY': 'hello', 'OFFSET':10000}, + # {BITMAP: xStartsWith_1250'0400008', 'CATEGORY': 'world', 'OFFSET':0}] ... diff --git a/yaml-tests/src/test/resources/boolean.yamsql b/yaml-tests/src/test/resources/boolean.yamsql index 224e8c53f7..0ff8f1e2d4 100644 --- a/yaml-tests/src/test/resources/boolean.yamsql +++ b/yaml-tests/src/test/resources/boolean.yamsql @@ -94,18 +94,20 @@ test_block: - - query: select B AND FALSE from lb - result: [ { false }, { false }, { false } ] - - - - query: select B AND NULL from lb - - result: [ { !null }, { false }, { !null } ] + # 4.1 Triage: [Deferred: literal null issue] failing when running with forced continuations (cannot continue query due to mismatch between serialized and actual plan hash) + # - + # - query: select B AND NULL from lb + # - result: [ { !null }, { false }, { !null } ] - - query: select B OR TRUE from lb - result: [ { true }, { true }, { true } ] - - query: select B OR FALSE from lb - result: [ { true }, { false }, { !null } ] - - - - query: select B OR NULL from lb - - result: [ { true }, { !null }, { !null } ] + # 4.1 Triage: [Deferred: literal null issue] failing when running with forced continuations (cannot continue query due to mismatch between serialized and actual plan hash) + # - + # - query: select B OR NULL from lb + # - result: [ { true }, { !null }, { !null } ] - - query: select NOT B from lb - result: [ { false }, { true }, { !null } ] diff --git a/yaml-tests/src/test/resources/catalog.yamsql b/yaml-tests/src/test/resources/catalog.yamsql index a2d87f0a75..bc51ff2cbb 100644 --- a/yaml-tests/src/test/resources/catalog.yamsql +++ b/yaml-tests/src/test/resources/catalog.yamsql @@ -58,19 +58,21 @@ test_block: - query: select sum(cnt) from (select count(*) as cnt, template_name, template_version from schemas group by template_name, template_version having template_name = 't') as t; - explainContains: 'AISCAN(TEMPLATES_COUNT_INDEX' - - - - query: select sum(cnt) from (select count(*) as cnt, template_name, template_version from schemas - group by template_name, template_version having template_name = 'TEST_TEMPLATE_1') as t; - - result: [{4}] + # 4.1 Triage: [Deferred: Client checks for End] failing when running with forced continuations (Received continuation shouldn't be at beginning) + # - + # - query: select sum(cnt) from (select count(*) as cnt, template_name, template_version from schemas + # group by template_name, template_version having template_name = 'TEST_TEMPLATE_1') as t; + # - result: [{4}] - # How many schemas with the specified schemaTemplateName and schemaTemplateVersion exist in this cluster? - query: select sum(cnt) from (select count(*) as cnt, template_name, template_version from schemas group by template_name, template_version having template_name = 't' and template_version = 1) as t; - explainContains: 'AISCAN(TEMPLATES_COUNT_INDEX' - - - - query: select sum(cnt) from (select count(*) as cnt, template_name, template_version from schemas - group by template_name, template_version having template_name = 'TEST_TEMPLATE_1' and template_version = 1) as t; - - result: [{4}] + # 4.1 Triage: [Deferred: Client checks for End] failing when running with forced continuations (Received continuation shouldn't be at beginning) + # - + # - query: select sum(cnt) from (select count(*) as cnt, template_name, template_version from schemas + # group by template_name, template_version having template_name = 'TEST_TEMPLATE_1' and template_version = 1) as t; + # - result: [{4}] - # how many unique templates in a cluster? - query: select count(*) from (select count(*), template_name, template_version from schemas diff --git a/yaml-tests/src/test/resources/create-drop.yamsql b/yaml-tests/src/test/resources/create-drop.yamsql index 66aa7a0838..d4378c962b 100644 --- a/yaml-tests/src/test/resources/create-drop.yamsql +++ b/yaml-tests/src/test/resources/create-drop.yamsql @@ -43,134 +43,184 @@ setup: - query: drop schema template if exists temp - query: drop database if exists /frl/DB - query: create schema template temp1 create table T1(a1 bigint, primary key(a1)) ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "TEMPLATES" where template_name = 'TEMP1' - - result: [{1}] + +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations for all versions with: +# Received continuation shouldn't be at beginning +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "TEMPLATES" where template_name = 'TEMP1' +# - result: [{1}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop schema template temp1 ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "TEMPLATES" where template_name = 'TEMP1' - - result: [{0}] +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations (Does not fail with SNAPSHOT) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 4.1 Triage: fails with force continuations (Does not fail with SNAPSHOT) +# 4.0.559.6 -> Embedded: +# expected: but was: +# org.opentest4j.AssertionFailedError: expected: but was: +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementWithForcedContinuations(QueryExecutor.java:258) +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementAndCheckForceContinuations(QueryExecutor.java:219) +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "TEMPLATES" where template_name = 'TEMP1' +# - result: [{0}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create schema template temp2 create table T1(a1 bigint, primary key(a1)) ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "TEMPLATES" where template_name = 'TEMP2' - - result: [{1}] +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations for all versions (including SNAPSHOT): +# Received continuation shouldn't be at beginning +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "TEMPLATES" where template_name = 'TEMP2' +# - result: [{1}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{1}] +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations for all versions (including SNAPSHOT): +# Received continuation shouldn't be at beginning +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' +# - result: [{1}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{0}] +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations (but not for snapshot) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 4.1 triage: Fails with force continuations (but not for snapshot) +# 4.0.559.6 -> Embedded: +# expected: but was: +# org.opentest4j.AssertionFailedError: expected: but was: +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementWithForcedContinuations(QueryExecutor.java:258) +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementAndCheckForceContinuations(QueryExecutor.java:219) +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' +# - result: [{0}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{1}] +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations for all versions (including SNAPSHOT): +# Received continuation shouldn't be at beginning +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' +# - result: [{1}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database if exists /frl/db +# 4.1 triage: [Initial version] Fails with force continuations (but not for snapshot) +# Embedded -> 4.0.559.6: +# expected: but was: +# org.opentest4j.AssertionFailedError: expected: but was: +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementWithForcedContinuations(QueryExecutor.java:258) +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementAndCheckForceContinuations(QueryExecutor.java:219) +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations (but not for snapshot) +# 4.0.559.6 -> Embedded: +# Received continuation shouldn't be at beginning --- test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{0}] + connect: "jdbc:embed:/__SYS?schema=CATALOG" + preset: single_repetition_ordered + tests: + - + - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' + - maxRows: 0 + - result: [{0}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{1}] +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations for all versions (including SNAPSHOT): +# Received continuation shouldn't be at beginning +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' +# - result: [{1}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create schema /frl/db/s1 with template temp2 ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' - - result: [{1}] +# 4.1 triage: [Deferred: Client checks for End] Fails with force continuations for all versions (including SNAPSHOT): +# Received continuation shouldn't be at beginning +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' +# - result: [{1}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{0}] - - - - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' - - result: [{0}] +# 4.1 triage: [Deferred: Client checks for End] Both queries fail with force continuations (but not for snapshot) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 4.1 triage: Both queries fail with force continuations (but not for snapshot) +# 4.0.559.6 -> Embedded: +# expected: but was: +# org.opentest4j.AssertionFailedError: expected: but was: +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementWithForcedContinuations(QueryExecutor.java:258) +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementAndCheckForceContinuations(QueryExecutor.java:219) +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' +# - result: [{0}] +# - +# - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' +# - result: [{0}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" @@ -179,33 +229,44 @@ setup: - query: create database /frl/db - query: create schema /frl/db/s1 with template temp2 - query: create schema /frl/db/s2 with template temp2 ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{1}] - - - - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' - - result: [{2}] +# 4.1 triage: [Deferred: Client checks for End] Both queries fail with force continuations for all versions (including SNAPSHOT): +# Received continuation shouldn't be at beginning +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' +# - result: [{1}] +# - +# - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' +# - result: [{2}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db ---- -test_block: - connect: "jdbc:embed:/__SYS?schema=CATALOG" - preset: single_repetition_ordered - tests: - - - - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' - - result: [{0}] - - - - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' - - result: [{0}] +# 4.1 triage: [Deferred: Client checks for End] Both queries fail with force continuations (but not for snapshot) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 4.1 triage: Both queries fail with force continuations (but not for snapshot) +# 4.0.559.6 -> Embedded: +# expected: but was: +# org.opentest4j.AssertionFailedError: expected: but was: +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementWithForcedContinuations(QueryExecutor.java:258) +# at app//com.apple.foundationdb.relational.yamltests.command.QueryExecutor.executeStatementAndCheckForceContinuations(QueryExecutor.java:219) +#--- +#test_block: +# connect: "jdbc:embed:/__SYS?schema=CATALOG" +# preset: single_repetition_ordered +# tests: +# - +# - query: select count(*) from "DATABASES" where database_id = '/FRL/DB' +# - result: [{0}] +# - +# - query: select count(*) from "SCHEMAS" where database_id = '/FRL/DB' +# - result: [{0}] --- setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" diff --git a/yaml-tests/src/test/resources/enum.yamsql b/yaml-tests/src/test/resources/enum.yamsql index 06391e715b..895907d89c 100644 --- a/yaml-tests/src/test/resources/enum.yamsql +++ b/yaml-tests/src/test/resources/enum.yamsql @@ -16,6 +16,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +# 4.1-triage: [Ignored: Enum] enum support was not added to client until 4.1.6.0, none of these queries pass, all with: +# The comparand to a comparison expecting an argument of a primitive type, is invoked with an argument of a complex type, e.g. an array or a record. --- options: supported_version: 4.1.6.0 diff --git a/yaml-tests/src/test/resources/field-index-tests-proto.yamsql b/yaml-tests/src/test/resources/field-index-tests-proto.yamsql index f981d28a48..a42d715f72 100644 --- a/yaml-tests/src/test/resources/field-index-tests-proto.yamsql +++ b/yaml-tests/src/test/resources/field-index-tests-proto.yamsql @@ -56,17 +56,23 @@ test_block: - - query: select * from (select * from (select * from "MyTable") as x) as y where ID = 5; - result: [{ID: !l 5, COL1: !l 10, COL31: !l 5, COL32: !null _, COL2: !l 5}] + # 4.1 Triage: [Deferred: Client checks for End] failed when running with forced continuations (Received continuation shouldn't be at beginning) - - query: select count(*) from (select * from (select * from (select * from "MyTable" where ID = 5) as x) as y) as z; + - maxRows: 0 - result: [{!l 1}] - - query: select COL31, COL32 from (select * from (select * from "MyTable") as x) as y where ID = 5; - result: [{COL31: !l 5, COL32: !null _}] + # 4.1 Triage: [Deferred: Client checks for End] failed when running with forced continuations (Received continuation shouldn't be at beginning) - - query: select sum(COL1) from "MyTable"; + - maxRows: 0 - result: [{!l 210}] + # 4.1 Triage: [Deferred: Client checks for End] failed when running with forced continuations (Received continuation shouldn't be at beginning) - - query: select count(COL1) from "MyTable"; + - maxRows: 0 - result: [{!l 13}] - - query: select * from (select * from (select * from (select * from "MyTable" where ID > 10) as x) as y) as z; diff --git a/yaml-tests/src/test/resources/functions.yamsql b/yaml-tests/src/test/resources/functions.yamsql index 497fc98b2f..b5b8993ce6 100644 --- a/yaml-tests/src/test/resources/functions.yamsql +++ b/yaml-tests/src/test/resources/functions.yamsql @@ -48,6 +48,7 @@ test_block: - - query: select greatest(a6, a6) from A - error: '22F00' + # Note: the following query has been disabled since July 2023 # - # - query: select greatest(a7, 0), greatest(a7, 1), greatest(a7, 2), greatest(a7, null) from A # - result: [{_0: 1.0, _1: 1.0, _2: 2.0, !null _}] @@ -78,6 +79,7 @@ test_block: - - query: select least(a6, a6) from A - error: '22F00' + # Note: the following query has been disabled since July 2023 # - # - query: select least(a7, 0), least(a7, 1), least(a7, 2), least(a7, null) from A # - result: [{_0: 0.0, _1: 1.0, _2: 1.0, !null _}] @@ -90,8 +92,10 @@ test_block: - - query: select least(a1, a2, a8), least(1, 2, 3.0, 4, 5) from A - result: [{_0: 1.0, _1: 1.0}] + # 4.1 triage: [Deferred: literal null issue] Fails with force continuations for all versions with (including snapshot): cannot continue query due to mismatch between serialized and actual plan hash - - query: select coalesce(null, null, 5), coalesce(null, 1, null), coalesce(null, a1, a8) from A + - maxRows: 0 - result: [{_0: 5, _1: 1, _2: 1.0}] - - query: select b1, b2, coalesce(b1, b2, 42) from B @@ -121,13 +125,15 @@ test_block: {{ T1: 3, A: 'c', B: 3.0}}, {{ T1: 4, A: 'd', B: 4.0}}, {!null _}] + # 4.1 triage: [Deferred: literal null issue] Fails with force continuations for all versions with (including snapshot): cannot continue query due to mismatch between serialized and actual plan hash - - query: select coalesce(null, (1, 1.0, 'a', true)) from C + - maxRows: 0 - unorderedResult: [ - {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}, - {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}, - {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}, - {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}] + {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}, + {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}, + {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}, + {{ _0: 1, _1: 1.0, _2: 'a', _3: true}}] --- test_block: preset: single_repetition_ordered diff --git a/yaml-tests/src/test/resources/groupby-tests.yamsql b/yaml-tests/src/test/resources/groupby-tests.yamsql index 60058c02b3..03022198c1 100644 --- a/yaml-tests/src/test/resources/groupby-tests.yamsql +++ b/yaml-tests/src/test/resources/groupby-tests.yamsql @@ -57,18 +57,21 @@ setup: test_block: name: group-by-tests tests: - - - - query: select max(q.s) from nested group by r.v.z having r.v.z > 120 - - result: [{330}] - - - - query: select max(q.s) from nested group by r.v.z as GRP having GRP > 120 - - result: [{330}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (used by: com.google.common.base.VerifyException) + # - + # - query: select max(q.s) from nested group by r.v.z having r.v.z > 120 + # - result: [{330}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select max(q.s) from nested group by r.v.z as GRP having GRP > 120 + # - result: [{330}] - - query: select max(id) from t1 group by col1 having min(id) > 0 and col1 = 20; - result: [{13}] - - - - query: select max(id) from t1 group by col1 - - result: [{5}, {13}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select max(id) from t1 group by col1 + # - result: [{5}, {13}] # - # # grouping by constant is not yet supported. # - query: select sum(col2) from T1 group by 3; @@ -119,30 +122,42 @@ test_block: - - query: select col1 from (select col1 from t1) as x group by x.col1; - result: [{!l 10}, {!l 20}] - - - - query: select MAX(x.col1) from (select col1 from t1) as x group by x.col1; - - result: [{!l 10}, {!l 20}] - - - - query: select MAX(z) from (select col1 from t1) as x group by x.col1 as z; - - result: [{!l 10}, {!l 20}] - - - - query: select MAX(x.col2) from (select col1,col2 from t1) as x group by x.col1; - - result: [{!l 5}, {!l 13}] - - - - query: select MIN(x.col2) from (select col1,col2 from t1) as x group by x.col1; - - result: [{!l 1}, {!l 6}] - - - - query: select COUNT(x.col2) from (select col1,col2 from t1) as x group by x.col1; - - result: [{!l 5}, {!l 8}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select MAX(x.col1) from (select col1 from t1) as x group by x.col1; + # - result: [{!l 10}, {!l 20}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select MAX(z) from (select col1 from t1) as x group by x.col1 as z; + # - result: [{!l 10}, {!l 20}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select MAX(x.col2) from (select col1,col2 from t1) as x group by x.col1; + # - result: [{!l 5}, {!l 13}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select MIN(x.col2) from (select col1,col2 from t1) as x group by x.col1; + # - result: [{!l 1}, {!l 6}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select COUNT(x.col2) from (select col1,col2 from t1) as x group by x.col1; + # - result: [{!l 5}, {!l 8}] + # 4.1 Triage: [Investigate further: potentially aggregate cursor bug] Test failed when run with forced continuations (Result mismatch) + # [4.0.559.6, !currentVersion] returned 10.0 instead of 9.5 - - query: select AVG(x.col2) from (select col1,col2 from t1) as x group by x.col1; + - maxRows: 0 - result: [{3.0}, {9.5}] - - - - query: select SUM(x.col2) from (select col1,col2 from t1) as x group by x.col1; - - result: [{!l 15}, {!l 76}] + # 4.1 Triage[needs initial version]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select SUM(x.col2) from (select col1,col2 from t1) as x group by x.col1; + # - result: [{!l 15}, {!l 76}] + # 4.1 Triage: [Investigate further: aggregate cursor bug] Test failed when run with forced continuations (Result mismatch) + # [4.0.559.6, !currentVersion] returned {10, 10.0} instead of {9, 9.5} - # result is correct since we don't use (not support, yet) explicit casting. - query: select SUM(x.col2) / COUNT(x.col2), AVG(x.col2) from (select col1,col2 from t1) as x group by x.col1; + - maxRows: 0 - result: [{!l 3, 3.0}, {!l 9, 9.5}] - - query: select MAX(x.col2) from (select col1 from t1) as x group by x.col1; @@ -150,17 +165,25 @@ test_block: - - query: select X.col2 from (select col1, col2 from t1) as x group by x.col1; - error: "42803" + # 4.1 Triage: [Deferred: Client checks for End] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - - query: select MAX(x.col2) from (select col1,col2 from t1) as x; + - maxRows: 0 - result: [{!l 13}] + # 4.1 Triage: [Deferred: Client checks for End] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - - query: select MIN(x.col2) from (select col1,col2 from t1) as x; + - maxRows: 0 - result: [{!l 1}] + # 4.1 Triage: [Deferred: Client checks for End] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - - query: select COUNT(x.col2) from (select col1,col2 from t1) as x; + - maxRows: 0 - result: [{!l 13}] + # 4.1 Triage: [Deferred: Client checks for End] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - - query: select AVG(x.col2) from (select col1,col2 from t1) as x; + - maxRows: 0 - result: [{7.0}] - - query: select x.col1 + 10 from (select col1 from t1) as x group by x.col1; @@ -171,17 +194,23 @@ test_block: - - query: select x.col1 + x.col1 from (select col1, col2 from t1) as x group by x.col1; - result: [{!l 20}, {!l 40}] - - - - query: select G + 4 from (select MIN(x.col2) as G from (select col1,col2 from t1) as x group by x.col1) as Y where G > 5; - - result: [{!l 10}] - - - - query: select G + 4 from (select MIN(x.col2) as G from (select col1,col2 from t1) as x group by x.col1 as K) as Y where G > 5; - - result: [{!l 10}] + # 4.1 Triage[needs rerun]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select G + 4 from (select MIN(x.col2) as G from (select col1,col2 from t1) as x group by x.col1) as Y where G > 5; + # - result: [{!l 10}] + # 4.1 Triage[needs rerun]: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # - + # - query: select G + 4 from (select MIN(x.col2) as G from (select col1,col2 from t1) as x group by x.col1 as K) as Y where G > 5; + # - result: [{!l 10}] + # 4.1 Triage: [Deferred: Client checks for End] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - - query: select COUNT(*) from T1; + - maxRows: 0 - result: [{!l 13}] + # 4.1 Triage: [Deferred: Client checks for End] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - - query: select COUNT(col1) from T1; + - maxRows: 0 - result: [{!l 13}] - - query: select x from t1 group by col1 as x, col2 as x; diff --git a/yaml-tests/src/test/resources/insert-enum.yamsql b/yaml-tests/src/test/resources/insert-enum.yamsql index dcb1eccc60..ac61e5067d 100644 --- a/yaml-tests/src/test/resources/insert-enum.yamsql +++ b/yaml-tests/src/test/resources/insert-enum.yamsql @@ -16,6 +16,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# 4.1-triage: [Ignored: Enum] Enum support wasn't added until 4.1.6.0 All tests fail to insert enums with: +# Caused by: java.sql.SQLException: java.sql.Type=1111 not supported --- options: supported_version: 4.1.6.0 diff --git a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql index 3bd6ea1818..8cf97b5799 100644 --- a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql +++ b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql @@ -105,33 +105,29 @@ test_block: - result: [{ B1: 10, B2: 22, B3: { 5, 41 } }, { B1: 20, B2: 22, B3: { 6, 51 } }, { B1: 30, B2: 22, B3: { 7, 61 } } ] - - + # 4.1 Triage: [Initial version / set maxRows 0] failed when running against 4.0.559.6 ("expecting '42601' error code, got 'XXXXX' instead" and "java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1") + # - # Case where not all values are provided of A. Still works, since the columns for which no values are provided can be nullable. - - query: insert into A(A1, A2, A3) values (4); - - supported_version: 4.1.6.0 - - error: "42601" - - + # - query: insert into A(A1, A2, A3) values (4); + # - error: "42601" + # 4.1 Triage: [Initial version / set maxRows 0] Failed when initial version is 4.0.559.6 (expecting statement to throw an error, however it returned a count) + # - # Case when the number of values is more than the number of columns specified. - - query: insert into A(A1, A2, A3) values (5, 6, 7, 8, 9); - - supported_version: 4.1.6.0 - - error: "42601" + # - query: insert into A(A1, A2, A3) values (5, 6, 7, 8, 9); + # - error: "42601" - # Case when a nullable column's value is not provided - query: insert into A(A1, A3) values (6, 7); - - supported_version: 4.1.6.0 - count: 1 - # Case when a nullable column's value is not provided and column is the first one - query: insert into A(A2, A3) values (6, 7); - - supported_version: 4.1.6.0 - count: 1 - # Case when a nullable column's value is not provided and column is the last one - query: insert into A(A1, A2) values (7, 8); - - supported_version: 4.1.6.0 - count: 1 - - query: select * from A where A1 = 6 - - supported_version: 4.1.6.0 - result: [{ A1: 6, A2: !null , A3: 7 }] ... diff --git a/yaml-tests/src/test/resources/join-tests.yamsql b/yaml-tests/src/test/resources/join-tests.yamsql index 177923438f..d497c76851 100644 --- a/yaml-tests/src/test/resources/join-tests.yamsql +++ b/yaml-tests/src/test/resources/join-tests.yamsql @@ -67,6 +67,8 @@ test_block: - # Get names of people working on a project - query: select fname, lname from emp where exists (select * from project where emp_id = emp.id); + # 4.1 Triage: [Investigate further: Exists subquery] This runs into infinite loop + - maxRows: 0 - unorderedResult: [{"Emily", "Martinez"}, {"Daniel", "Miller"}, {"Megan", "Miller"}] @@ -76,6 +78,8 @@ test_block: (select fname, lname, dept_id from emp where exists (select * from project where emp_id = emp.id)) as sq, dept where sq.dept_id = dept.id and dept.name = 'Sales'; + # 4.1 Triage: [Investigate further: Exists subquery] This runs into infinite loop + - maxRows: 0 - unorderedResult: [{"Daniel", "Miller"}] - # three-way join to find which departments' corresponding projects. diff --git a/yaml-tests/src/test/resources/like.yamsql b/yaml-tests/src/test/resources/like.yamsql index ab12895a6e..bc23cdd1bf 100644 --- a/yaml-tests/src/test/resources/like.yamsql +++ b/yaml-tests/src/test/resources/like.yamsql @@ -17,6 +17,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# 4.1 triage: [Deferred: like continuations] All queries that return any results, fail with force continuations, even against current version +# with: The like operator expects an escape character of length 1. --- schema_template: create table A(a1 string, primary key(a1)) @@ -52,6 +54,7 @@ test_block: - result: [] - - query: select * from A WHERE A1 LIKE '%abc%' + - maxRows: 0 - unorderedResult: [ {'abcdefghijklmnopqrstuvwxyz'}, {'___abcdef'}, @@ -62,6 +65,7 @@ test_block: {'{abcdefghijk}'}] - - query: select * from A WHERE A1 LIKE '_abc%' + - maxRows: 0 - unorderedResult: [ {'(abcdefghijk)'}, {'[abcdefghijk]'}, @@ -70,20 +74,24 @@ test_block: - # TODO (Investigate `Missing binding for __const_CONSTANT` error with queries when using plan from cache) - query: select * from A WHERE A1 LIKE '%ABC%' + - maxRows: 0 - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] - - query: select * from A WHERE A1 LIKE '%ABC%X_Z' + - maxRows: 0 - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] - - query: select * from A WHERE A1 LIKE '%ABC%XY_Z' - unorderedResult: [] - - query: select * from A WHERE A1 LIKE '__' + - maxRows: 0 - unorderedResult: [ {'学校'}, {'^$'}] - - query: select * from A WHERE A1 LIKE '_____' + - maxRows: 0 - unorderedResult: [ {'école'}, {'ありがとう'}, @@ -98,33 +106,42 @@ test_block: tests: - - query: select * from A WHERE A1 LIKE '|_|_%' ESCAPE '|' + - maxRows: 0 - result: [{'___abcdef'}] - - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '\' + - maxRows: 0 - result: [{'___abcdef'}] - - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '|' + - maxRows: 0 - result: [{'\\||%'}] - - query: select * from A WHERE A1 LIKE '\_%' + - maxRows: 0 - result: [{'\\||%'}] - - query: select * from A WHERE A1 LIKE '\_\_\_abcdef' ESCAPE '\' + - maxRows: 0 - result: [{'___abcdef'}] - - query: select * from A WHERE A1 LIKE '\_\_\_______' ESCAPE '\' + - maxRows: 0 - result: [{'___abcdef'}] - - query: select * from A WHERE A1 LIKE '\__\_______' ESCAPE '\' + - maxRows: 0 - result: [{'___abcdef'}] - - query: select * from A WHERE A1 LIKE '\__\______\_' ESCAPE '\' - result: [] - - query: select * from A WHERE A1 LIKE '%\%' ESCAPE '\' + - maxRows: 0 - result: [{'\\||%'}] - - query: select * from A WHERE A1 NOT LIKE '|_|_%' ESCAPE '|' + - maxRows: 0 - unorderedResult: [ {'abcdefghijklmnopqrstuvwxyz'}, {'%%abcdef'}, @@ -145,6 +162,7 @@ test_block: - unorderedResult: [] - - query: select * from A WHERE A1 NOT LIKE '%abcde%' + - maxRows: 0 - unorderedResult: [ {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, {'école'}, diff --git a/yaml-tests/src/test/resources/null-operator-tests.yamsql b/yaml-tests/src/test/resources/null-operator-tests.yamsql index 1856319115..be346e02df 100644 --- a/yaml-tests/src/test/resources/null-operator-tests.yamsql +++ b/yaml-tests/src/test/resources/null-operator-tests.yamsql @@ -45,8 +45,10 @@ test_block: - - query: select * from (select * from (select * from T1) as x where ID is null) as y; - result: [] + # 4.1 Triage: [Deferred: Client checks for End] failed when running with forced continuations (Received continuation shouldn't be at beginning) - - query: select count(*) from (select * from (select * from T1) as x where ID is not null) as y; + - maxRows: 0 - unorderedResult: [{13}] # - # - query: select count(*) from (select * from (select * from T1) as x where ID != null) as y; diff --git a/yaml-tests/src/test/resources/primary-key-tests.yamsql b/yaml-tests/src/test/resources/primary-key-tests.yamsql index 6c205e5af7..9da0d54446 100644 --- a/yaml-tests/src/test/resources/primary-key-tests.yamsql +++ b/yaml-tests/src/test/resources/primary-key-tests.yamsql @@ -31,8 +31,10 @@ test_block: VALUES ((1, 2, 3, 4), 5), ((1, 2, 30, 40), 50) - error: "23505" + # 4.1 Triage: [Needs initial version] failed when running with forced continuations against 4.0.559.6 (Received continuation shouldn't be at beginning) - - query: SELECT COUNT(*) FROM T1 + - maxRows: 0 - result: [{0}] - - query: INSERT INTO T1 diff --git a/yaml-tests/src/test/resources/recursive-cte.yamsql b/yaml-tests/src/test/resources/recursive-cte.yamsql index 5ebf53db32..df3d2fd6bc 100644 --- a/yaml-tests/src/test/resources/recursive-cte.yamsql +++ b/yaml-tests/src/test/resources/recursive-cte.yamsql @@ -1,4 +1,7 @@ --- +options: + supported_version: 4.1.6.0 +--- schema_template: create table t1(id bigint, parent bigint, primary key(id)) create index parentIdx as select parent, id from t1 order by parent, id @@ -77,7 +80,6 @@ test_block: select id, parent from t1 where parent = -1 union all select b.id, b.parent from c1 as a, t1 as b where a.id = b.parent) select id from c1 - - supported_version: 4.1.6.0 - explain: RUNION q0, q1 { INITIAL { ISCAN(PARENTIDX [EQUALS promote(@c15 AS LONG)]) | INSERT INTO TEMP q1 } RECURSIVE { ISCAN(CHILDIDX <,>) | FLATMAP q2 -> { TEMP SCAN base() | FILTER _.ID EQUALS q2.PARENT AS q3 RETURN (q2.ID AS ID, q2.PARENT AS PARENT) } | INSERT INTO TEMP q1 }} | MAP (_.ID AS ID) - maxRows: 1 - result: [{ID: 1}] @@ -98,7 +100,6 @@ test_block: select b.id, b.parent from ancestorsOf250 as a, t1 as b where a.parent = b.id) select id, parent from ancestorsOf250 union all select b.id, b.parent from allDescendants as a, t1 as b where a.id = b.parent) select id, parent from allDescendants - - supported_version: 4.1.6.0 - explain: "RUNION q0, q1 { INITIAL { RUNION q2, q3 { INITIAL { ISCAN(CHILDIDX [EQUALS promote(@c20 AS LONG)]) | INSERT INTO TEMP q3 } RECURSIVE { ISCAN(CHILDIDX <,>) | FLATMAP q4 -> { TEMP SCAN base() | FILTER _.PARENT EQUALS q4.ID AS q5 RETURN (q4.ID AS ID, q4.PARENT AS PARENT) } | INSERT INTO TEMP q3 }} | MAP (_.ID AS ID, _.PARENT AS PARENT) | INSERT INTO TEMP q1 } RECURSIVE { ISCAN(CHILDIDX <,>) | FLATMAP q6 -> { TEMP SCAN base() | FILTER _.ID EQUALS q6.PARENT AS q7 RETURN (q6.ID AS ID, q6.PARENT AS PARENT) } | INSERT INTO TEMP q1 }} | MAP (_.ID AS ID, _.PARENT AS PARENT)" - maxRows: 1 - result: [{250, 50}] diff --git a/yaml-tests/src/test/resources/select-a-star.yamsql b/yaml-tests/src/test/resources/select-a-star.yamsql index 1f9fe01fe1..c677b6b075 100644 --- a/yaml-tests/src/test/resources/select-a-star.yamsql +++ b/yaml-tests/src/test/resources/select-a-star.yamsql @@ -40,6 +40,8 @@ test_block: tests: - - query: select B1 from B where exists (select A.*, B1 from A group by A1,A2,A3); + # 4.1 Triage: [Investigate further: Exists subquery] Infinite loop + - maxRows: 0 - result: [{1}, {2}, {3}] - - query: select A.* from A; @@ -78,9 +80,13 @@ test_block: - error: "42803" - - query: select B1 from B where exists (select A.*, B1 from A group by A1,A2,A3); + # 4.1 Triage: [Investigate further: Exists subquery] Infinite loop + - maxRows: 0 - result: [{1}, {2}, {3}] - - query: select B.* from B where exists (select A.*, B.* from A group by A1,A2,A3); + # 4.1 Triage: [Investigate further: Exists subquery] Infinite loop + - maxRows: 0 - result: [{1, 20, {4, 40}}, {2, 20, {5, 50}}, {3, 20, {6, 60}}] diff --git a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql index f3ae27077b..765f8158da 100644 --- a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql @@ -56,8 +56,10 @@ test_block: - - query: select * from (select * from (select * from T1) as x) as y where ID = 5; - result: [{ID: !l 5, !l 10, !l 5}] + # 4.1 Triage: [Deferred: Client checks for End] failed running with forced continuations (Received continuation shouldn't be at beginning) - - query: select count(*) from (select * from (select * from (select * from T1 where ID = 5) as x) as y) as z; + - maxRows: 0 - result: [{!l 1}] - - query: select * from (select * from (select * from (select * from T1 where ID > 10) as x) as y) as z; diff --git a/yaml-tests/src/test/resources/standard-tests-proto.yamsql b/yaml-tests/src/test/resources/standard-tests-proto.yamsql index 6a64724c6c..e8c1c0ecac 100644 --- a/yaml-tests/src/test/resources/standard-tests-proto.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-proto.yamsql @@ -55,8 +55,10 @@ test_block: - - query: select * from (select * from (select * from T1) as x) as y where ID = 5; - result: [{ID: !l 5, !l 10, !l 5}] + # 4.1 Triage: [Deferred: Client checks for End] failed when running with forced continuations (Received continuation shouldn't be at beginning) - - query: select count(*) from (select * from (select * from (select * from T1 where ID = 5) as x) as y) as z; + - maxRows: 0 - result: [{!l 1}] - - query: select * from (select * from (select * from (select * from T1 where ID > 10) as x) as y) as z; diff --git a/yaml-tests/src/test/resources/standard-tests.yamsql b/yaml-tests/src/test/resources/standard-tests.yamsql index ab57f612de..9f61b78fbb 100644 --- a/yaml-tests/src/test/resources/standard-tests.yamsql +++ b/yaml-tests/src/test/resources/standard-tests.yamsql @@ -83,8 +83,10 @@ test_block: - - query: select * from (select * from (select * from T1) as x) as y where ID = 5; - result: [{ID: !l 5, !l 10, !l 5}] + # 4.1 Triage: [Deferred: Client checks for End] Failed running with forced continuations: (Received continuation shouldn't be at beginning) - - query: select count(*) from (select * from (select * from (select * from T1 where ID = 5) as x) as y) as z; + - maxRows: 0 - result: [{!l 1}] - - query: select * from (select * from (select * from (select * from T1 where ID > 10) as x) as y) as z; diff --git a/yaml-tests/src/test/resources/subquery-tests.yamsql b/yaml-tests/src/test/resources/subquery-tests.yamsql index 03c8dbdd4f..e6b0fdb0d0 100644 --- a/yaml-tests/src/test/resources/subquery-tests.yamsql +++ b/yaml-tests/src/test/resources/subquery-tests.yamsql @@ -62,17 +62,25 @@ test_block: - # correlations are allowed inside a nested subquery with group by - query: select x from a where exists (select a.x, max(idb) from b where q > a.x group by q) + # 4.1 Triage[needs rerun]: fail with forced continuations (Verify Exception for continuation, Type$Record.fromProto(Type.java:2095)) + - maxRows: 0 - result: [{1}, {2}, {3}] - # correlations are allowed inside a nested subquery with group by, not necessarily qualified - query: select x from a where exists (select x, max(idb) from b where q > x group by q) + # 4.1 Triage[needs rerun]: fail with forced continuations (Verify Exception for continuation, Type$Record.fromProto(Type.java:2095)) + - maxRows: 0 - result: [{1}, {2}, {3}] - # correlations inside aggregations are allowed inside a nested subquery with group by - query: select x from a where exists (select max(x), max(idb) from b where q > x group by q) + # 4.1 Triage: [Investigate further: exists subquery] infinite loop for continuation + - maxRows: 0 - result: [{1}, {2}, {3}] - # correlations inside aggregations are allowed inside a nested subquery with group by - query: select x from a where exists (select max(a.x), max(idb) from b where q > x group by q) + # 4.1 Triage: [Investigate further: exists subquery] infinite loop for continuation + - maxRows: 0 - result: [{1}, {2}, {3}] ... diff --git a/yaml-tests/src/test/resources/union.yamsql b/yaml-tests/src/test/resources/union.yamsql index 9c44250ef9..e01512d8fe 100644 --- a/yaml-tests/src/test/resources/union.yamsql +++ b/yaml-tests/src/test/resources/union.yamsql @@ -58,6 +58,8 @@ test_block: tests: - - query: select sum(a) as a, sum(b) as b from (select sum(col1) as a, count(*) as b from t1 union all select sum(col1) as a, count(*) as b from t2) as x + # 4.1 Triage: [Investigate further: aggregates on subquery] infinite loop + - maxRows: 0 - unorderedResult: [{A: 74 , B: 13}] - - query: select col1, col2 from t1 union all select col1, col2 from t1 @@ -155,14 +157,21 @@ test_block: {A: 10.0, B: 20.0}] - - query: select sum(Y) as S from (select count(*) as Y from t3 where a < 10 group by a union all select count(*) from t4) as X + # 4.1 Triage: [Investigate further: aggregates on subquery] Infinite loop + - maxRows: 0 - explain: "AISCAN(MV10 [[LESS_THAN promote(@c22 AS DOUBLE)]] BY_GROUP -> [_0: KEY:[0], _1: VALUE:[0]]) | MAP (_._1 AS Y) | MAP (_.Y AS Y) ⊎ SCAN(<,>) | TFILTER T4 | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0) | MAP (_ AS _0) | AGG (sum_l(_._0.Y) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS S)" - result: [{S: 2}] - - query: select sum(Y) as S from (select count(*) as Y from t3 union all select count(*) from t1) as X - explain: "SCAN(<,>) | TFILTER T3 | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS Y) | MAP (_.Y AS Y) ⊎ ISCAN(VI1 <,>) | MAP (_ AS _0) | AGG (count_star(*) AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0) | MAP (_ AS _0) | AGG (sum_l(_._0.Y) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS S)" + # 4.1 Triage: [Investigate further: aggregates on subquery] Infinite loop + - maxRows: 0 - result: [{S: 5}] - - query: select col2 from t1 where exists (select a from t3 where col2 <= id union all select b from t4 where col2 <= id) + # 4.1 Triage: [Investigate further] fails with forced continuations (Invalid continuation) + # Failed with both 559 and 4.1.8, RecordCoreException: invalid continuation + - maxRows: 0 - result: [{1}, {2}, {6}, {7}] - - query: select col1, col2 from t1 union all select col1 from t1 @@ -176,5 +185,7 @@ test_block: - - query: select sum(Y) as S from (select count(*) as Y from t6 union all select count(*) from t7) as X - explain: "AISCAN(MV11 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS Y) | MAP (_.Y AS Y) ⊎ AISCAN(MV12 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0) | MAP (_ AS _0) | AGG (sum_l(_._0.Y) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS S)" - - result: [{0}] + # 4.1 Triage: [Initial version] Failing with 559: (Wrong result with forced continuation (NULL vs 0)) + # 4.1 Triage: [deferred: Client checks for END] Failing with forced continuations: (Received continuation shouldn't be at beginning) + # - result: [{0}] ... diff --git a/yaml-tests/yaml-tests.gradle b/yaml-tests/yaml-tests.gradle index 7b52f269a2..b018033097 100644 --- a/yaml-tests/yaml-tests.gradle +++ b/yaml-tests/yaml-tests.gradle @@ -95,7 +95,7 @@ ext.resolveOtherServer = { Set rejectedVersions -> 'classifier': 'all'], { version { - strictly '+' + strictly '4.0.559.6' if (rejectedVersions.size() > 0) { reject rejectedVersions.toArray(new String[0]) } @@ -169,19 +169,6 @@ task serverJars(type: Copy) { } } -task downloadManyExternalServers(type: Copy) { - dependsOn "cleanExternalServerDirectory" - from resolveManyServers() - into project.layout.buildDirectory.dir('externalServer') -} - -mixedModeTest { - dependsOn("downloadManyExternalServers") - systemProperty("yaml_testing_external_server", project.layout.buildDirectory.dir('externalServer').get().asFile) - // this is specified in testing.gradle, but it looks like it needs to be repeated here. - ignoreFailures = true -} - test { dependsOn "serverJars" systemProperty("yaml_testing_external_server", project.layout.buildDirectory.dir('externalServer').get().asFile)