From 0c6b9fadccfc318a75d5dd0f6ed998c722c7c429 Mon Sep 17 00:00:00 2001 From: ohad Date: Thu, 20 Feb 2025 16:09:10 -0500 Subject: [PATCH 01/29] Create a sandbox with all tests enabled, running with current vs. 4.0.559.6 --- .../src/test/java/YamlIntegrationTests.java | 38 ------------------- .../resources/aggregate-empty-table.yamsql | 2 - yaml-tests/src/test/resources/enum.yamsql | 3 -- .../src/test/resources/insert-enum.yamsql | 3 -- .../resources/inserts-updates-deletes.yamsql | 6 --- yaml-tests/src/test/resources/prepared.yamsql | 3 -- .../src/test/resources/recursive-cte.yamsql | 2 - yaml-tests/yaml-tests.gradle | 15 +------- 8 files changed, 1 insertion(+), 71 deletions(-) diff --git a/yaml-tests/src/test/java/YamlIntegrationTests.java b/yaml-tests/src/test/java/YamlIntegrationTests.java index 8e8e2d17c1..b0727c05ba 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"); } @@ -129,29 +117,21 @@ 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"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite continuation loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void aggregateIndexTestsCountEmpty(YamlTest.Runner runner) throws Exception { runner.runYamsql("aggregate-index-tests-count-empty.yamsql"); } @@ -172,8 +152,6 @@ public void orderBy(YamlTest.Runner runner) throws Exception { } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "Infinite loop (https://github.com/FoundationDB/fdb-record-layer/issues/3095)") public void primaryKey(YamlTest.Runner runner) throws Exception { runner.runYamsql("primary-key-tests.yamsql"); } @@ -194,8 +172,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"); } @@ -206,8 +182,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"); } @@ -218,29 +192,21 @@ 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)") 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"); } @@ -285,15 +251,11 @@ 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"); } @TestTemplate - @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, - reason = "maxRows ignored (https://github.com/FoundationDB/fdb-record-layer/issues/3100)") public void recursiveCte(YamlTest.Runner runner) throws Exception { runner.runYamsql("recursive-cte.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..d5de590ef4 100644 --- a/yaml-tests/src/test/resources/aggregate-empty-table.yamsql +++ b/yaml-tests/src/test/resources/aggregate-empty-table.yamsql @@ -36,7 +36,6 @@ test_block: 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}] @@ -189,7 +188,6 @@ 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 _}] diff --git a/yaml-tests/src/test/resources/enum.yamsql b/yaml-tests/src/test/resources/enum.yamsql index 06391e715b..ad1f281579 100644 --- a/yaml-tests/src/test/resources/enum.yamsql +++ b/yaml-tests/src/test/resources/enum.yamsql @@ -17,9 +17,6 @@ # See the License for the specific language governing permissions and # limitations under the License. --- -options: - supported_version: 4.1.6.0 ---- schema_template: CREATE TYPE AS ENUM MOOD ( 'JOYFUL', 'HAPPY', 'RELAXED', 'INDIFFERENT', 'CONFUSED', 'SAD', 'ANXIOUS', 'ANGRY' ) CREATE TABLE TABLE_A ("id" BIGINT, "name" STRING, "mood" MOOD, PRIMARY KEY("id") ) diff --git a/yaml-tests/src/test/resources/insert-enum.yamsql b/yaml-tests/src/test/resources/insert-enum.yamsql index dcb1eccc60..7f26ceba80 100644 --- a/yaml-tests/src/test/resources/insert-enum.yamsql +++ b/yaml-tests/src/test/resources/insert-enum.yamsql @@ -17,9 +17,6 @@ # See the License for the specific language governing permissions and # limitations under the License. --- -options: - supported_version: 4.1.6.0 ---- schema_template: CREATE TYPE AS ENUM "WHATEVER" ( 'OWNING', 'WEAK', 'VALIDATING' ) CREATE TABLE "TableA" ("field1" "WHATEVER", "field2" BIGINT, PRIMARY KEY("field2") ) diff --git a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql index 3bd6ea1818..8ab04feecc 100644 --- a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql +++ b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql @@ -108,30 +108,24 @@ test_block: - # 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" - # 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" - # 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/prepared.yamsql b/yaml-tests/src/test/resources/prepared.yamsql index 84538b6130..f67f074593 100644 --- a/yaml-tests/src/test/resources/prepared.yamsql +++ b/yaml-tests/src/test/resources/prepared.yamsql @@ -17,9 +17,6 @@ # See the License for the specific language governing permissions and # limitations under the License. ---- -options: - supported_version: 4.1.6.0 --- schema_template: create table ta(a bigint, b double, c boolean, d integer, e integer array, f string, primary key(a)) diff --git a/yaml-tests/src/test/resources/recursive-cte.yamsql b/yaml-tests/src/test/resources/recursive-cte.yamsql index 5ebf53db32..45e6b167f3 100644 --- a/yaml-tests/src/test/resources/recursive-cte.yamsql +++ b/yaml-tests/src/test/resources/recursive-cte.yamsql @@ -77,7 +77,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 +97,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/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) From 6f83adf1cf622f69ba6034d59e08fe2588d56bd3 Mon Sep 17 00:00:00 2001 From: ohad Date: Thu, 20 Feb 2025 16:21:08 -0500 Subject: [PATCH 02/29] Add triage comments to bitmap-aggregate-index tests --- .../src/test/resources/bitmap-aggregate-index.yamsql | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql b/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql index 0aedc30da1..fb70237f84 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: 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: 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}] ... From 09c7dcf46a0638558a039993d5a87c943a59d17b Mon Sep 17 00:00:00 2001 From: ohad Date: Thu, 20 Feb 2025 17:41:37 -0500 Subject: [PATCH 03/29] Remove exclusion and added triage comments to join-tests, select-a-star, subquery-tests and union --- yaml-tests/src/test/java/YamlIntegrationTests.java | 8 -------- yaml-tests/src/test/resources/join-tests.yamsql | 4 ++++ yaml-tests/src/test/resources/select-a-star.yamsql | 6 ++++++ yaml-tests/src/test/resources/subquery-tests.yamsql | 8 ++++++++ yaml-tests/src/test/resources/union.yamsql | 11 ++++++++++- 5 files changed, 28 insertions(+), 9 deletions(-) diff --git a/yaml-tests/src/test/java/YamlIntegrationTests.java b/yaml-tests/src/test/java/YamlIntegrationTests.java index b0727c05ba..aaf696e044 100644 --- a/yaml-tests/src/test/java/YamlIntegrationTests.java +++ b/yaml-tests/src/test/java/YamlIntegrationTests.java @@ -85,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"); } @@ -232,8 +226,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"); } diff --git a/yaml-tests/src/test/resources/join-tests.yamsql b/yaml-tests/src/test/resources/join-tests.yamsql index 177923438f..5e6c9c0c25 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: 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: 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/select-a-star.yamsql b/yaml-tests/src/test/resources/select-a-star.yamsql index 1f9fe01fe1..f94013f5f8 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: 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: 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: 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/subquery-tests.yamsql b/yaml-tests/src/test/resources/subquery-tests.yamsql index 03c8dbdd4f..d848e02ac0 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: Verify Exception for continuation + - 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: Contextual SQL Exception 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(x), max(idb) from b where q > x group by q) + # 4.1 Triage: 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: 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..5e4ce0281b 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: 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,20 @@ 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: 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: 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: Invalid continuation + - maxRows: 0 - result: [{1}, {2}, {6}, {7}] - - query: select col1, col2 from t1 union all select col1 from t1 @@ -176,5 +184,6 @@ 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: Wrong result with forced continuation (NULL vs 0) + # - result: [{0}] ... From 1bfc0fe4135effafee1a9af1279059bdde63f419 Mon Sep 17 00:00:00 2001 From: ohad Date: Fri, 21 Feb 2025 11:23:20 -0500 Subject: [PATCH 04/29] Mark 4.1 Triage tests for aggregate-empty-table --- .../resources/aggregate-empty-table.yamsql | 351 +++++++++++------- 1 file changed, 210 insertions(+), 141 deletions(-) diff --git a/yaml-tests/src/test/resources/aggregate-empty-table.yamsql b/yaml-tests/src/test/resources/aggregate-empty-table.yamsql index d5de590ef4..4b882ec30f 100644 --- a/yaml-tests/src/test/resources/aggregate-empty-table.yamsql +++ b/yaml-tests/src/test/resources/aggregate-empty-table.yamsql @@ -34,19 +34,24 @@ schema_template: test_block: name: agg-empty-table-tests tests: - - - - 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: [] + # 4.1 Triage: 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: 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: 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; @@ -63,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: 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: 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: 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)" @@ -90,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: 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: 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: 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)" @@ -114,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: 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: 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: 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" @@ -141,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: 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: 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: 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)" @@ -165,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: 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: 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: 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,45 +209,55 @@ test_block: - - query: select sum(col1) from T1; - 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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" @@ -241,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: 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 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: 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: 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: 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: 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)" @@ -304,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: 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: 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: 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" @@ -328,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: 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: 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: 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; @@ -348,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: 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: 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: 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: [] @@ -366,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: 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: 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: 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" @@ -390,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: 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: 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: 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; @@ -410,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: 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: 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: 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: [] @@ -428,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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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" @@ -476,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: 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: 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: 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: 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: 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: [] From f4d2502fa0f399afacf1bc668987dee5da2a9163 Mon Sep 17 00:00:00 2001 From: ohad Date: Fri, 21 Feb 2025 15:05:26 -0500 Subject: [PATCH 05/29] Add 4.1 triage annotations to groupby-tests --- .../src/test/resources/groupby-tests.yamsql | 133 ++++++++++-------- 1 file changed, 76 insertions(+), 57 deletions(-) diff --git a/yaml-tests/src/test/resources/groupby-tests.yamsql b/yaml-tests/src/test/resources/groupby-tests.yamsql index 60058c02b3..9bcb0198df 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: 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: 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: 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,49 +122,61 @@ 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}] - - - - query: select AVG(x.col2) from (select col1,col2 from t1) as x group by x.col1; - - 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: 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: 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: 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: 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: 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: Test failed when run with forced continuations (Result mismatch) + # - + # - query: select AVG(x.col2) from (select col1,col2 from t1) as x group by x.col1; + # - result: [{3.0}, {9.5}] + # 4.1 Triage: 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: Test failed when run with forced continuations (Result mismatch) + # - # 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; - - result: [{!l 3, 3.0}, {!l 9, 9.5}] + # - query: select SUM(x.col2) / COUNT(x.col2), AVG(x.col2) from (select col1,col2 from t1) as x group by x.col1; + # - 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; - error: "42703" - - query: select X.col2 from (select col1, col2 from t1) as x group by x.col1; - error: "42803" - - - - query: select MAX(x.col2) from (select col1,col2 from t1) as x; - - result: [{!l 13}] - - - - query: select MIN(x.col2) from (select col1,col2 from t1) as x; - - result: [{!l 1}] - - - - query: select COUNT(x.col2) from (select col1,col2 from t1) as x; - - result: [{!l 13}] - - - - query: select AVG(x.col2) from (select col1,col2 from t1) as x; - - result: [{7.0}] + # 4.1 Triage: 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; + # - result: [{!l 13}] + # 4.1 Triage: 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; + # - result: [{!l 1}] + # 4.1 Triage: 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; + # - result: [{!l 13}] + # 4.1 Triage: 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; + # - result: [{7.0}] - - query: select x.col1 + 10 from (select col1 from t1) as x group by x.col1; - result: [{!l 20}, {!l 30}] @@ -171,18 +186,22 @@ 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}] - - - - query: select COUNT(*) from T1; - - result: [{!l 13}] - - - - query: select COUNT(col1) from T1; - - result: [{!l 13}] + # 4.1 Triage: 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: 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: Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # - + # - query: select COUNT(*) from T1; + # - result: [{!l 13}] + # 4.1 Triage: Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # - + # - query: select COUNT(col1) from T1; + # - result: [{!l 13}] - - query: select x from t1 group by col1 as x, col2 as x; - error: "42702" From d5b685eab675dbd72ad08f44d39e224e71c1f459 Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 09:39:28 -0700 Subject: [PATCH 06/29] Add 4.1 triage annotations to standard-tests.yamsql --- yaml-tests/src/test/resources/standard-tests.yamsql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yaml-tests/src/test/resources/standard-tests.yamsql b/yaml-tests/src/test/resources/standard-tests.yamsql index ab57f612de..1784b5a046 100644 --- a/yaml-tests/src/test/resources/standard-tests.yamsql +++ b/yaml-tests/src/test/resources/standard-tests.yamsql @@ -83,9 +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}] - - - - query: select count(*) from (select * from (select * from (select * from T1 where ID = 5) as x) as y) as z; - - result: [{!l 1}] + # 4.1 Triage: 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; + # - result: [{!l 1}] - - query: select * from (select * from (select * from (select * from T1 where ID > 10) as x) as y) as z; - result: [{ID: !l 11, !l 20, !l 11}, {ID: !l 12, !l 20, !l 12}, {ID: !l 13, !l 20, !l 13}] From b0e463ae33cb1fc3790ac2557d8a1b013eb13899 Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 09:43:05 -0700 Subject: [PATCH 07/29] Add 4.1 triage annotations to standard-tests-proto.yamsql --- yaml-tests/src/test/resources/standard-tests-proto.yamsql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yaml-tests/src/test/resources/standard-tests-proto.yamsql b/yaml-tests/src/test/resources/standard-tests-proto.yamsql index 6a64724c6c..c242d5f0d1 100644 --- a/yaml-tests/src/test/resources/standard-tests-proto.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-proto.yamsql @@ -55,9 +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}] - - - - query: select count(*) from (select * from (select * from (select * from T1 where ID = 5) as x) as y) as z; - - result: [{!l 1}] + # 4.1 Triage: 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; + # - result: [{!l 1}] - - query: select * from (select * from (select * from (select * from T1 where ID > 10) as x) as y) as z; - result: [{ID: !l 11, !l 20, !l 11}, {ID: !l 12, !l 20, !l 12}, {ID: !l 13, !l 20, !l 13}] From 7be0ce32fb5830a0a0715b793f34523223cab81f Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 09:46:52 -0700 Subject: [PATCH 08/29] Add 4.1 triage annotations to field-index-tests-proto.yamsql --- .../resources/field-index-tests-proto.yamsql | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) 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..ef74c66ed8 100644 --- a/yaml-tests/src/test/resources/field-index-tests-proto.yamsql +++ b/yaml-tests/src/test/resources/field-index-tests-proto.yamsql @@ -56,18 +56,21 @@ 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}] - - - - query: select count(*) from (select * from (select * from (select * from "MyTable" where ID = 5) as x) as y) as z; - - result: [{!l 1}] + # 4.1 Triage: 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; + # - 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 _}] - - - - query: select sum(COL1) from "MyTable"; - - result: [{!l 210}] - - - - query: select count(COL1) from "MyTable"; - - result: [{!l 13}] + # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - + # - query: select sum(COL1) from "MyTable"; + # - result: [{!l 210}] + # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # - + # - query: select count(COL1) from "MyTable"; + # - result: [{!l 13}] - - query: select * from (select * from (select * from (select * from "MyTable" where ID > 10) as x) as y) as z; - result: [{ID: !l 11, COL1: !l 20, COL31: !null _, COL32: !l 12, COL2: !l 11}, From 10fc852286499d0e0adb63db2afb08acd93e916b Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 09:49:06 -0700 Subject: [PATCH 09/29] Add 4.1 triage annotations to standard-tests-metadata.yamsql --- .../src/test/resources/standard-tests-metadata.yamsql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql index f3ae27077b..c618b5015a 100644 --- a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql @@ -56,9 +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}] - - - - query: select count(*) from (select * from (select * from (select * from T1 where ID = 5) as x) as y) as z; - - result: [{!l 1}] + # 4.1 Triage: 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; + # - result: [{!l 1}] - - query: select * from (select * from (select * from (select * from T1 where ID > 10) as x) as y) as z; - result: [{ID: !l 11, !l 20, !l 11}, {ID: !l 12, !l 20, !l 12}, {ID: !l 13, !l 20, !l 13}] From 36af5b796b7578cd2f3ace443125790eb5af8a2c Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 09:51:13 -0700 Subject: [PATCH 10/29] Add 4.1 triage annotations to null-operator-tests.yamsql --- yaml-tests/src/test/resources/null-operator-tests.yamsql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yaml-tests/src/test/resources/null-operator-tests.yamsql b/yaml-tests/src/test/resources/null-operator-tests.yamsql index 1856319115..352837cc70 100644 --- a/yaml-tests/src/test/resources/null-operator-tests.yamsql +++ b/yaml-tests/src/test/resources/null-operator-tests.yamsql @@ -45,9 +45,10 @@ test_block: - - query: select * from (select * from (select * from T1) as x where ID is null) as y; - result: [] - - - - query: select count(*) from (select * from (select * from T1) as x where ID is not null) as y; - - unorderedResult: [{13}] + # 4.1 Triage: 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; + # - unorderedResult: [{13}] # - # - query: select count(*) from (select * from (select * from T1) as x where ID != null) as y; # - unorderedResult: [{13}] From b9992f2a6bede0af5c06086b0181c358051d7eca Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 10:07:41 -0700 Subject: [PATCH 11/29] Add 4.1 triage annotations to inserts-updates-deletes.yamsql --- .../test/resources/inserts-updates-deletes.yamsql | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql index 8ab04feecc..12ff4733ed 100644 --- a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql +++ b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql @@ -105,14 +105,16 @@ 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: failed when running against 4.0.559.6 (expecting '42601' error code, got 'XXXXX' instead) + # - # 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); - - error: "42601" - - + # - query: insert into A(A1, A2, A3) values (4); + # - error: "42601" + # 4.1 Triage: 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); - - 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); From ac88dcd44bf5d008476d51004d269dd22a352a37 Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 10:28:02 -0700 Subject: [PATCH 12/29] Add 4.1 triage annotations to aggregate-index-tests.yamsql --- .../resources/aggregate-index-tests.yamsql | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/yaml-tests/src/test/resources/aggregate-index-tests.yamsql b/yaml-tests/src/test/resources/aggregate-index-tests.yamsql index b5b8d8868a..a5a4c3dd7a 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: 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: 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: 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: 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: 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: 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)" From db9dedf7124b6e188b8c5ab2b487c9c834d82acd Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 11:09:44 -0700 Subject: [PATCH 13/29] Add 4.1 triage annotations to aggregate-index-tests-count.yamsql.yamsql --- .../aggregate-index-tests-count.yamsql | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) 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..092607cf73 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: 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: 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: 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: 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: 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: failed when running with forced continuations (server-side error) + # - result: [{1}, {1}] ... From 7593e96b08425f0dd92dab50d3a6e8e361b095c5 Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 11:18:05 -0700 Subject: [PATCH 14/29] Add 4.1 triage annotations to aggregate-index-tests-count-empty.yamsql.yamsql.yamsql --- .../aggregate-index-tests-count-empty.yamsql | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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..3b1951aac0 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,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: [{0}] + # 4.1 Triage: failing when running against 4.0.559.6 (result mismatch) + # - 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 +42,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: 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 +54,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: 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 +63,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: 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)" From ff20e759bfc6aa0967ba9f11c81a514353245bd7 Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 11:22:28 -0700 Subject: [PATCH 15/29] Add 4.1 triage annotations to primary-key-tests.yamsql --- yaml-tests/src/test/resources/primary-key-tests.yamsql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/yaml-tests/src/test/resources/primary-key-tests.yamsql b/yaml-tests/src/test/resources/primary-key-tests.yamsql index 6c205e5af7..186440e182 100644 --- a/yaml-tests/src/test/resources/primary-key-tests.yamsql +++ b/yaml-tests/src/test/resources/primary-key-tests.yamsql @@ -31,9 +31,10 @@ test_block: VALUES ((1, 2, 3, 4), 5), ((1, 2, 30, 40), 50) - error: "23505" - - - - query: SELECT COUNT(*) FROM T1 - - result: [{0}] + # 4.1 Triage: failed when running with forced continuations against 4.0.559.6 (Received continuation shouldn't be at beginning) + # - + # - query: SELECT COUNT(*) FROM T1 + # - result: [{0}] - - query: INSERT INTO T1 VALUES ((1, 2, 3, 4), 5), From 85b263e01e41897498c167438ccca88fecebcb3e Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 11:40:51 -0700 Subject: [PATCH 16/29] Add 4.1 triage annotations to boolean.yamsql --- yaml-tests/src/test/resources/boolean.yamsql | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/yaml-tests/src/test/resources/boolean.yamsql b/yaml-tests/src/test/resources/boolean.yamsql index 224e8c53f7..9fa3f526d9 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: 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: 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 } ] From c303d46f292920ec656cb7a0bde676835a426f13 Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 11:44:57 -0700 Subject: [PATCH 17/29] Add 4.1 triage annotations to catalog.yamsql --- yaml-tests/src/test/resources/catalog.yamsql | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/yaml-tests/src/test/resources/catalog.yamsql b/yaml-tests/src/test/resources/catalog.yamsql index a2d87f0a75..297216bf29 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: 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: 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 From 1d2da883b6c935fc953a3ab108509ec18634485d Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 12:01:01 -0700 Subject: [PATCH 18/29] Disable forced continuations for updateDeleteReturning --- yaml-tests/src/test/java/YamlIntegrationTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yaml-tests/src/test/java/YamlIntegrationTests.java b/yaml-tests/src/test/java/YamlIntegrationTests.java index aaf696e044..5e4ec8a9e6 100644 --- a/yaml-tests/src/test/java/YamlIntegrationTests.java +++ b/yaml-tests/src/test/java/YamlIntegrationTests.java @@ -186,6 +186,8 @@ public void caseWhen(YamlTest.Runner runner) throws Exception { } @TestTemplate + @ExcludeYamlTestConfig(value = YamlTestConfigFilters.DO_NOT_FORCE_CONTINUATIONS, + reason = "Update statements fail with force continuations") public void updateDeleteReturning(YamlTest.Runner runner) throws Exception { runner.runYamsql("update-delete-returning.yamsql"); } From ac8205ede38cd03107be1d8df82805b644114fb7 Mon Sep 17 00:00:00 2001 From: Scott Dugas Date: Mon, 24 Feb 2025 14:41:21 -0500 Subject: [PATCH 19/29] 4.1-triage annotations to enum.yamsql --- yaml-tests/src/test/resources/enum.yamsql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yaml-tests/src/test/resources/enum.yamsql b/yaml-tests/src/test/resources/enum.yamsql index ad1f281579..ac06880ef6 100644 --- a/yaml-tests/src/test/resources/enum.yamsql +++ b/yaml-tests/src/test/resources/enum.yamsql @@ -16,6 +16,12 @@ # 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: 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 --- schema_template: CREATE TYPE AS ENUM MOOD ( 'JOYFUL', 'HAPPY', 'RELAXED', 'INDIFFERENT', 'CONFUSED', 'SAD', 'ANXIOUS', 'ANGRY' ) From 31f1e0b3a59c75fc38ca1027cbce5b1c4fe0b4cc Mon Sep 17 00:00:00 2001 From: Scott Dugas Date: Mon, 24 Feb 2025 14:42:29 -0500 Subject: [PATCH 20/29] 4.1-triage annotations to insert-enum.yamsql --- yaml-tests/src/test/resources/insert-enum.yamsql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yaml-tests/src/test/resources/insert-enum.yamsql b/yaml-tests/src/test/resources/insert-enum.yamsql index 7f26ceba80..b000ae8f16 100644 --- a/yaml-tests/src/test/resources/insert-enum.yamsql +++ b/yaml-tests/src/test/resources/insert-enum.yamsql @@ -16,6 +16,11 @@ # 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: 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 --- schema_template: CREATE TYPE AS ENUM "WHATEVER" ( 'OWNING', 'WEAK', 'VALIDATING' ) From fd9c28111788d670fc10727f08f7c4afc4272382 Mon Sep 17 00:00:00 2001 From: Scott Dugas Date: Mon, 24 Feb 2025 15:21:14 -0500 Subject: [PATCH 21/29] 4.1-triage annotations to like.yamsql --- yaml-tests/src/test/resources/like.yamsql | 176 +++++++++++----------- 1 file changed, 89 insertions(+), 87 deletions(-) diff --git a/yaml-tests/src/test/resources/like.yamsql b/yaml-tests/src/test/resources/like.yamsql index ab12895a6e..d01d1f4a05 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: 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)) @@ -50,45 +52,45 @@ test_block: - - query: select * from A WHERE A1 LIKE '%abc' - result: [] - - - - query: select * from A WHERE A1 LIKE '%abc%' - - unorderedResult: [ - {'abcdefghijklmnopqrstuvwxyz'}, - {'___abcdef'}, - {'%%abcdef'}, - {'*abcdef'}, - {'(abcdefghijk)'}, - {'[abcdefghijk]'}, - {'{abcdefghijk}'}] - - - - query: select * from A WHERE A1 LIKE '_abc%' - - unorderedResult: [ - {'(abcdefghijk)'}, - {'[abcdefghijk]'}, - {'{abcdefghijk}'}, - {'*abcdef'}] - - - # TODO (Investigate `Missing binding for __const_CONSTANT` error with queries when using plan from cache) - - query: select * from A WHERE A1 LIKE '%ABC%' - - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] - - - - query: select * from A WHERE A1 LIKE '%ABC%X_Z' - - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] +# - +# - query: select * from A WHERE A1 LIKE '%abc%' +# - unorderedResult: [ +# {'abcdefghijklmnopqrstuvwxyz'}, +# {'___abcdef'}, +# {'%%abcdef'}, +# {'*abcdef'}, +# {'(abcdefghijk)'}, +# {'[abcdefghijk]'}, +# {'{abcdefghijk}'}] +# - +# - query: select * from A WHERE A1 LIKE '_abc%' +# - unorderedResult: [ +# {'(abcdefghijk)'}, +# {'[abcdefghijk]'}, +# {'{abcdefghijk}'}, +# {'*abcdef'}] +# - +# # TODO (Investigate `Missing binding for __const_CONSTANT` error with queries when using plan from cache) +# - query: select * from A WHERE A1 LIKE '%ABC%' +# - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] +# - +# - query: select * from A WHERE A1 LIKE '%ABC%X_Z' +# - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] - - query: select * from A WHERE A1 LIKE '%ABC%XY_Z' - unorderedResult: [] - - - - query: select * from A WHERE A1 LIKE '__' - - unorderedResult: [ - {'学校'}, - {'^$'}] - - - - query: select * from A WHERE A1 LIKE '_____' - - unorderedResult: [ - {'école'}, - {'ありがとう'}, - {'مدرسة'}, - {'\\||%'}] +# - +# - query: select * from A WHERE A1 LIKE '__' +# - unorderedResult: [ +# {'学校'}, +# {'^$'}] +# - +# - query: select * from A WHERE A1 LIKE '_____' +# - unorderedResult: [ +# {'école'}, +# {'ありがとう'}, +# {'مدرسة'}, +# {'\\||%'}] --- # TODO (Investigate `Missing binding for __const_CONSTANT` error with queries when using plan from cache) test_block: @@ -96,61 +98,61 @@ test_block: repetition: 1 check_cache: false tests: - - - - query: select * from A WHERE A1 LIKE '|_|_%' ESCAPE '|' - - result: [{'___abcdef'}] - - - - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '\' - - result: [{'___abcdef'}] - - - - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '|' - - result: [{'\\||%'}] - - - - query: select * from A WHERE A1 LIKE '\_%' - - result: [{'\\||%'}] - - - - query: select * from A WHERE A1 LIKE '\_\_\_abcdef' ESCAPE '\' - - result: [{'___abcdef'}] - - - - query: select * from A WHERE A1 LIKE '\_\_\_______' ESCAPE '\' - - result: [{'___abcdef'}] - - - - query: select * from A WHERE A1 LIKE '\__\_______' ESCAPE '\' - - result: [{'___abcdef'}] +# - +# - query: select * from A WHERE A1 LIKE '|_|_%' ESCAPE '|' +# - result: [{'___abcdef'}] +# - +# - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '\' +# - result: [{'___abcdef'}] +# - +# - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '|' +# - result: [{'\\||%'}] +# - +# - query: select * from A WHERE A1 LIKE '\_%' +# - result: [{'\\||%'}] +# - +# - query: select * from A WHERE A1 LIKE '\_\_\_abcdef' ESCAPE '\' +# - result: [{'___abcdef'}] +# - +# - query: select * from A WHERE A1 LIKE '\_\_\_______' ESCAPE '\' +# - result: [{'___abcdef'}] +# - +# - query: select * from A WHERE A1 LIKE '\__\_______' ESCAPE '\' +# - result: [{'___abcdef'}] - - query: select * from A WHERE A1 LIKE '\__\______\_' ESCAPE '\' - result: [] - - - - query: select * from A WHERE A1 LIKE '%\%' ESCAPE '\' - - result: [{'\\||%'}] - - - - query: select * from A WHERE A1 NOT LIKE '|_|_%' ESCAPE '|' - - unorderedResult: [ - {'abcdefghijklmnopqrstuvwxyz'}, - {'%%abcdef'}, - {'*abcdef'}, - {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, - {'école'}, - {'ありがとう'}, - {'学校'}, - {'مدرسة'}, - {'(abcdefghijk)'}, - {'[abcdefghijk]'}, - {'{abcdefghijk}'}, - {'^$'}, - {'\\||%'} - ] +# - +# - query: select * from A WHERE A1 LIKE '%\%' ESCAPE '\' +# - result: [{'\\||%'}] +# - +# - query: select * from A WHERE A1 NOT LIKE '|_|_%' ESCAPE '|' +# - unorderedResult: [ +# {'abcdefghijklmnopqrstuvwxyz'}, +# {'%%abcdef'}, +# {'*abcdef'}, +# {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, +# {'école'}, +# {'ありがとう'}, +# {'学校'}, +# {'مدرسة'}, +# {'(abcdefghijk)'}, +# {'[abcdefghijk]'}, +# {'{abcdefghijk}'}, +# {'^$'}, +# {'\\||%'} +# ] - - query: select * from A WHERE A1 NOT LIKE '%' - unorderedResult: [] - - - - query: select * from A WHERE A1 NOT LIKE '%abcde%' - - unorderedResult: [ - {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, - {'école'}, - {'ありがとう'}, - {'学校'}, - {'مدرسة'}, - {'^$'}, - {'\\||%'} ] +# - +# - query: select * from A WHERE A1 NOT LIKE '%abcde%' +# - unorderedResult: [ +# {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, +# {'école'}, +# {'ありがとう'}, +# {'学校'}, +# {'مدرسة'}, +# {'^$'}, +# {'\\||%'} ] ... From aecd1e209cdafce16695c3166a840efee99593fd Mon Sep 17 00:00:00 2001 From: Scott Dugas Date: Mon, 24 Feb 2025 16:10:51 -0500 Subject: [PATCH 22/29] 4.1-triage annotations to create-drop.yamsql --- .../src/test/resources/create-drop.yamsql | 265 +++++++++++------- 1 file changed, 160 insertions(+), 105 deletions(-) diff --git a/yaml-tests/src/test/resources/create-drop.yamsql b/yaml-tests/src/test/resources/create-drop.yamsql index 66aa7a0838..2fcbad6032 100644 --- a/yaml-tests/src/test/resources/create-drop.yamsql +++ b/yaml-tests/src/test/resources/create-drop.yamsql @@ -43,134 +43,179 @@ 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: 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: Fails with force continuations (Does not fail with SNAPSHOT) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 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: 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: 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: Fails with force continuations (but not for snapshot) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 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: 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 ---- -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: 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.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}] --- 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: 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: 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: Both queries fail with force continuations (but not for snapshot) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 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 +224,43 @@ 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: 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: Both queries fail with force continuations (but not for snapshot) +# Embedded -> 4.0.559.6: +# Received continuation shouldn't be at beginning +# 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" From ecb4d3a5d57d3604749f81bf72ee9274cd1a1c7c Mon Sep 17 00:00:00 2001 From: Scott Dugas Date: Mon, 24 Feb 2025 16:22:07 -0500 Subject: [PATCH 23/29] 4.1-triage annotations to functions.yamsql --- .../src/test/resources/functions.yamsql | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/yaml-tests/src/test/resources/functions.yamsql b/yaml-tests/src/test/resources/functions.yamsql index 497fc98b2f..9b6e65b818 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,9 +92,11 @@ test_block: - - query: select least(a1, a2, a8), least(1, 2, 3.0, 4, 5) from A - result: [{_0: 1.0, _1: 1.0}] - - - - query: select coalesce(null, null, 5), coalesce(null, 1, null), coalesce(null, a1, a8) from A - - result: [{_0: 5, _1: 1, _2: 1.0}] + # 4.1 triage: 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 +# - result: [{_0: 5, _1: 1, _2: 1.0}] - - query: select b1, b2, coalesce(b1, b2, 42) from B - unorderedResult: [ @@ -121,13 +125,15 @@ test_block: {{ T1: 3, A: 'c', B: 3.0}}, {{ T1: 4, A: 'd', B: 4.0}}, {!null _}] - - - - query: select coalesce(null, (1, 1.0, 'a', true)) from C - - 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}}] + # 4.1 triage: 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 +# - 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}}] --- test_block: preset: single_repetition_ordered From e4b9626f710818cfad98334144d685099c179d34 Mon Sep 17 00:00:00 2001 From: ohad Date: Mon, 24 Feb 2025 14:41:59 -0700 Subject: [PATCH 24/29] annotate recursive-cte.yamsql --- yaml-tests/src/test/resources/recursive-cte.yamsql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yaml-tests/src/test/resources/recursive-cte.yamsql b/yaml-tests/src/test/resources/recursive-cte.yamsql index 45e6b167f3..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 From c1fa4868df7c69038abad8406c61bc4b9b2c95db Mon Sep 17 00:00:00 2001 From: ohad Date: Wed, 26 Feb 2025 11:58:40 -0700 Subject: [PATCH 25/29] Triage: - Received continuation shouldn't be at beginning - Initial version --- .../aggregate-index-tests-count-empty.yamsql | 3 +- .../resources/bitmap-aggregate-index.yamsql | 4 +- yaml-tests/src/test/resources/boolean.yamsql | 4 +- yaml-tests/src/test/resources/catalog.yamsql | 4 +- .../src/test/resources/create-drop.yamsql | 27 ++++++---- .../resources/field-index-tests-proto.yamsql | 27 +++++----- .../src/test/resources/groupby-tests.yamsql | 54 ++++++++++--------- .../test/resources/null-operator-tests.yamsql | 9 ++-- .../test/resources/primary-key-tests.yamsql | 9 ++-- .../resources/standard-tests-metadata.yamsql | 9 ++-- .../resources/standard-tests-proto.yamsql | 9 ++-- .../src/test/resources/standard-tests.yamsql | 9 ++-- 12 files changed, 94 insertions(+), 74 deletions(-) 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 3b1951aac0..95379e4492 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,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)" - # 4.1 Triage: failing when running against 4.0.559.6 (result mismatch) + # 4.1 Triage: [No Fix Necessary] 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 diff --git a/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql b/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql index fb70237f84..787122d10f 100644 --- a/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql +++ b/yaml-tests/src/test/resources/bitmap-aggregate-index.yamsql @@ -70,12 +70,12 @@ 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)" - # 4.1 Triage: this fails with continuation tests against 4.0.559.6. Wrong results + # 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)" - # 4.1 Triage: this fails with continuation tests against 4.0.559.6. Wrong results + # 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 9fa3f526d9..0ff8f1e2d4 100644 --- a/yaml-tests/src/test/resources/boolean.yamsql +++ b/yaml-tests/src/test/resources/boolean.yamsql @@ -94,7 +94,7 @@ test_block: - - query: select B AND FALSE from lb - result: [ { false }, { false }, { false } ] - # 4.1 Triage: failing when running with forced continuations (cannot continue query due to mismatch between serialized and actual plan hash) + # 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 } ] @@ -104,7 +104,7 @@ test_block: - - query: select B OR FALSE from lb - result: [ { true }, { false }, { !null } ] - # 4.1 Triage: failing when running with forced continuations (cannot continue query due to mismatch between serialized and actual plan hash) + # 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 } ] diff --git a/yaml-tests/src/test/resources/catalog.yamsql b/yaml-tests/src/test/resources/catalog.yamsql index 297216bf29..5d8d388aca 100644 --- a/yaml-tests/src/test/resources/catalog.yamsql +++ b/yaml-tests/src/test/resources/catalog.yamsql @@ -58,7 +58,7 @@ 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' - # 4.1 Triage: failing when running with forced continuations (Received continuation shouldn't be at beginning) + # 4.1 Triage: [Deferred: Not failing in CK] 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; @@ -68,7 +68,7 @@ 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' and template_version = 1) as t; - explainContains: 'AISCAN(TEMPLATES_COUNT_INDEX' - # 4.1 Triage: failing when running with forced continuations (Received continuation shouldn't be at beginning) + # 4.1 Triage: [Deferred: Not failing in CK] 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; diff --git a/yaml-tests/src/test/resources/create-drop.yamsql b/yaml-tests/src/test/resources/create-drop.yamsql index 2fcbad6032..5892c380e2 100644 --- a/yaml-tests/src/test/resources/create-drop.yamsql +++ b/yaml-tests/src/test/resources/create-drop.yamsql @@ -44,7 +44,7 @@ setup: - query: drop database if exists /frl/DB - query: create schema template temp1 create table T1(a1 bigint, primary key(a1)) -# 4.1 triage: Fails with force continuations for all versions with: +# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions with: # Received continuation shouldn't be at beginning #--- #test_block: @@ -59,9 +59,10 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop schema template temp1 -# 4.1 triage: Fails with force continuations (Does not fail with SNAPSHOT) +# 4.1 triage: [Deferred: Not failing in CK] 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: @@ -80,7 +81,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create schema template temp2 create table T1(a1 bigint, primary key(a1)) -# 4.1 triage: Fails with force continuations for all versions (including SNAPSHOT): +# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): # Received continuation shouldn't be at beginning #--- #test_block: @@ -95,7 +96,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db -# 4.1 triage: Fails with force continuations for all versions (including SNAPSHOT): +# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): # Received continuation shouldn't be at beginning #--- #test_block: @@ -110,9 +111,10 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db -# 4.1 triage: Fails with force continuations (but not for snapshot) +# 4.1 triage: [Deferred: Not failing in CK] 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: @@ -131,7 +133,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db -# 4.1 triage: Fails with force continuations for all versions (including SNAPSHOT): +# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): # Received continuation shouldn't be at beginning #--- #test_block: @@ -152,6 +154,7 @@ setup: # 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: Not failing in CK] Fails with force continuations (but not for snapshot) # 4.0.559.6 -> Embedded: # Received continuation shouldn't be at beginning #--- @@ -167,7 +170,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db -# 4.1 triage: Fails with force continuations for all versions (including SNAPSHOT): +# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): # Received continuation shouldn't be at beginning #--- #test_block: @@ -182,7 +185,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create schema /frl/db/s1 with template temp2 -# 4.1 triage: Fails with force continuations for all versions (including SNAPSHOT): +# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): # Received continuation shouldn't be at beginning #--- #test_block: @@ -197,9 +200,10 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db -# 4.1 triage: Both queries fail with force continuations (but not for snapshot) +# 4.1 triage: [Deferred: Not failing in CK] 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: @@ -224,7 +228,7 @@ setup: - query: create database /frl/db - query: create schema /frl/db/s1 with template temp2 - query: create schema /frl/db/s2 with template temp2 -# 4.1 triage: Both queries fail with force continuations for all versions (including SNAPSHOT): +# 4.1 triage: [Deferred: Not failing in CK] Both queries fail with force continuations for all versions (including SNAPSHOT): # Received continuation shouldn't be at beginning #--- #test_block: @@ -242,9 +246,10 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db -# 4.1 triage: Both queries fail with force continuations (but not for snapshot) +# 4.1 triage: [Deferred: Not failing in CK] 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: 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 ef74c66ed8..c65a29fc5c 100644 --- a/yaml-tests/src/test/resources/field-index-tests-proto.yamsql +++ b/yaml-tests/src/test/resources/field-index-tests-proto.yamsql @@ -56,21 +56,24 @@ 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: 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; - # - result: [{!l 1}] + # 4.1 Triage: [Deferred: Not failing in CK] 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: failed when running with forced continuations (Received continuation shouldn't be at beginning) - # - - # - query: select sum(COL1) from "MyTable"; - # - result: [{!l 210}] - # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) - # - - # - query: select count(COL1) from "MyTable"; - # - result: [{!l 13}] + # 4.1 Triage: [Deferred: Not failing in CK] 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: Not failing in CK] 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; - result: [{ID: !l 11, COL1: !l 20, COL31: !null _, COL32: !l 12, COL2: !l 11}, diff --git a/yaml-tests/src/test/resources/groupby-tests.yamsql b/yaml-tests/src/test/resources/groupby-tests.yamsql index 9bcb0198df..4c7d528195 100644 --- a/yaml-tests/src/test/resources/groupby-tests.yamsql +++ b/yaml-tests/src/test/resources/groupby-tests.yamsql @@ -161,22 +161,26 @@ test_block: - - query: select X.col2 from (select col1, col2 from t1) as x group by x.col1; - error: "42803" - # 4.1 Triage: 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; - # - result: [{!l 13}] - # 4.1 Triage: 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; - # - result: [{!l 1}] - # 4.1 Triage: 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; - # - result: [{!l 13}] - # 4.1 Triage: 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; - # - result: [{7.0}] + # 4.1 Triage: [Deferred: Not failing in CK] 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: Not failing in CK] 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: Not failing in CK] 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: Not failing in CK] 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; - result: [{!l 20}, {!l 30}] @@ -194,14 +198,16 @@ test_block: # - # - 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: Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - # - - # - query: select COUNT(*) from T1; - # - result: [{!l 13}] - # 4.1 Triage: Test failed when run with forced continuations (Received continuation shouldn't be at beginning) - # - - # - query: select COUNT(col1) from T1; - # - result: [{!l 13}] + # 4.1 Triage: [Deferred: Not failing in CK] 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: Not failing in CK] 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; - error: "42702" diff --git a/yaml-tests/src/test/resources/null-operator-tests.yamsql b/yaml-tests/src/test/resources/null-operator-tests.yamsql index 352837cc70..38153a4d13 100644 --- a/yaml-tests/src/test/resources/null-operator-tests.yamsql +++ b/yaml-tests/src/test/resources/null-operator-tests.yamsql @@ -45,10 +45,11 @@ test_block: - - query: select * from (select * from (select * from T1) as x where ID is null) as y; - result: [] - # 4.1 Triage: 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; - # - unorderedResult: [{13}] + # 4.1 Triage: [Deferred: Not failing in CK] 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; # - unorderedResult: [{13}] diff --git a/yaml-tests/src/test/resources/primary-key-tests.yamsql b/yaml-tests/src/test/resources/primary-key-tests.yamsql index 186440e182..e0fe36a5c9 100644 --- a/yaml-tests/src/test/resources/primary-key-tests.yamsql +++ b/yaml-tests/src/test/resources/primary-key-tests.yamsql @@ -31,10 +31,11 @@ test_block: VALUES ((1, 2, 3, 4), 5), ((1, 2, 30, 40), 50) - error: "23505" - # 4.1 Triage: failed when running with forced continuations against 4.0.559.6 (Received continuation shouldn't be at beginning) - # - - # - query: SELECT COUNT(*) FROM T1 - # - result: [{0}] + # 4.1 Triage: [Deferred: Not failing in CK] 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 VALUES ((1, 2, 3, 4), 5), diff --git a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql index c618b5015a..07d14d8e93 100644 --- a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql @@ -56,10 +56,11 @@ 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: 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; - # - result: [{!l 1}] + # 4.1 Triage: [Deferred: Not failing in CK] 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; - result: [{ID: !l 11, !l 20, !l 11}, {ID: !l 12, !l 20, !l 12}, {ID: !l 13, !l 20, !l 13}] diff --git a/yaml-tests/src/test/resources/standard-tests-proto.yamsql b/yaml-tests/src/test/resources/standard-tests-proto.yamsql index c242d5f0d1..ae4064d148 100644 --- a/yaml-tests/src/test/resources/standard-tests-proto.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-proto.yamsql @@ -55,10 +55,11 @@ 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: 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; - # - result: [{!l 1}] + # 4.1 Triage: [Deferred: Not failing in CK] 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; - result: [{ID: !l 11, !l 20, !l 11}, {ID: !l 12, !l 20, !l 12}, {ID: !l 13, !l 20, !l 13}] diff --git a/yaml-tests/src/test/resources/standard-tests.yamsql b/yaml-tests/src/test/resources/standard-tests.yamsql index 1784b5a046..fc91678c86 100644 --- a/yaml-tests/src/test/resources/standard-tests.yamsql +++ b/yaml-tests/src/test/resources/standard-tests.yamsql @@ -83,10 +83,11 @@ 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: 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; - # - result: [{!l 1}] + # 4.1 Triage: [Deferred: Not failing in CK] 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; - result: [{ID: !l 11, !l 20, !l 11}, {ID: !l 12, !l 20, !l 12}, {ID: !l 13, !l 20, !l 13}] From d0d9c566104c5d42c3f9ced9ffed06f9cd9c00a8 Mon Sep 17 00:00:00 2001 From: ohad Date: Wed, 26 Feb 2025 12:11:28 -0700 Subject: [PATCH 26/29] Change wording --- yaml-tests/src/test/resources/catalog.yamsql | 4 ++-- .../src/test/resources/create-drop.yamsql | 24 +++++++++---------- .../resources/field-index-tests-proto.yamsql | 6 ++--- .../src/test/resources/groupby-tests.yamsql | 12 +++++----- .../test/resources/null-operator-tests.yamsql | 2 +- .../test/resources/primary-key-tests.yamsql | 2 +- .../resources/standard-tests-metadata.yamsql | 2 +- .../resources/standard-tests-proto.yamsql | 2 +- .../src/test/resources/standard-tests.yamsql | 2 +- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/yaml-tests/src/test/resources/catalog.yamsql b/yaml-tests/src/test/resources/catalog.yamsql index 5d8d388aca..bc51ff2cbb 100644 --- a/yaml-tests/src/test/resources/catalog.yamsql +++ b/yaml-tests/src/test/resources/catalog.yamsql @@ -58,7 +58,7 @@ 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' - # 4.1 Triage: [Deferred: Not failing in CK] failing when running with forced continuations (Received continuation shouldn't be at beginning) + # 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; @@ -68,7 +68,7 @@ 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' and template_version = 1) as t; - explainContains: 'AISCAN(TEMPLATES_COUNT_INDEX' - # 4.1 Triage: [Deferred: Not failing in CK] failing when running with forced continuations (Received continuation shouldn't be at beginning) + # 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; diff --git a/yaml-tests/src/test/resources/create-drop.yamsql b/yaml-tests/src/test/resources/create-drop.yamsql index 5892c380e2..9842607711 100644 --- a/yaml-tests/src/test/resources/create-drop.yamsql +++ b/yaml-tests/src/test/resources/create-drop.yamsql @@ -44,7 +44,7 @@ setup: - query: drop database if exists /frl/DB - query: create schema template temp1 create table T1(a1 bigint, primary key(a1)) -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions with: +# 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: @@ -59,7 +59,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop schema template temp1 -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations (Does not fail with SNAPSHOT) +# 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) @@ -81,7 +81,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create schema template temp2 create table T1(a1 bigint, primary key(a1)) -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): +# 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: @@ -96,7 +96,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): +# 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: @@ -111,7 +111,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations (but not for snapshot) +# 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) @@ -133,7 +133,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): +# 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: @@ -154,7 +154,7 @@ setup: # 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: Not failing in CK] Fails with force continuations (but not for snapshot) +# 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 #--- @@ -170,7 +170,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create database /frl/db -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): +# 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: @@ -185,7 +185,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: create schema /frl/db/s1 with template temp2 -# 4.1 triage: [Deferred: Not failing in CK] Fails with force continuations for all versions (including SNAPSHOT): +# 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: @@ -200,7 +200,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db -# 4.1 triage: [Deferred: Not failing in CK] Both queries fail with force continuations (but not for snapshot) +# 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) @@ -228,7 +228,7 @@ setup: - query: create database /frl/db - query: create schema /frl/db/s1 with template temp2 - query: create schema /frl/db/s2 with template temp2 -# 4.1 triage: [Deferred: Not failing in CK] Both queries fail with force continuations for all versions (including SNAPSHOT): +# 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: @@ -246,7 +246,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database /frl/db -# 4.1 triage: [Deferred: Not failing in CK] Both queries fail with force continuations (but not for snapshot) +# 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) 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 c65a29fc5c..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,7 +56,7 @@ 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: Not failing in CK] failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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 @@ -64,12 +64,12 @@ test_block: - - 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: Not failing in CK] failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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: Not failing in CK] failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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 diff --git a/yaml-tests/src/test/resources/groupby-tests.yamsql b/yaml-tests/src/test/resources/groupby-tests.yamsql index 4c7d528195..94611bbd20 100644 --- a/yaml-tests/src/test/resources/groupby-tests.yamsql +++ b/yaml-tests/src/test/resources/groupby-tests.yamsql @@ -161,22 +161,22 @@ test_block: - - query: select X.col2 from (select col1, col2 from t1) as x group by x.col1; - error: "42803" - # 4.1 Triage: [Deferred: Not failing in CK] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # 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: Not failing in CK] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # 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: Not failing in CK] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # 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: Not failing in CK] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # 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 @@ -198,12 +198,12 @@ test_block: # - # - 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: Not failing in CK] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # 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: Not failing in CK] Test failed when run with forced continuations (Received continuation shouldn't be at beginning) + # 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 diff --git a/yaml-tests/src/test/resources/null-operator-tests.yamsql b/yaml-tests/src/test/resources/null-operator-tests.yamsql index 38153a4d13..be346e02df 100644 --- a/yaml-tests/src/test/resources/null-operator-tests.yamsql +++ b/yaml-tests/src/test/resources/null-operator-tests.yamsql @@ -45,7 +45,7 @@ test_block: - - query: select * from (select * from (select * from T1) as x where ID is null) as y; - result: [] - # 4.1 Triage: [Deferred: Not failing in CK] failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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 diff --git a/yaml-tests/src/test/resources/primary-key-tests.yamsql b/yaml-tests/src/test/resources/primary-key-tests.yamsql index e0fe36a5c9..ebb101d7fb 100644 --- a/yaml-tests/src/test/resources/primary-key-tests.yamsql +++ b/yaml-tests/src/test/resources/primary-key-tests.yamsql @@ -31,7 +31,7 @@ test_block: VALUES ((1, 2, 3, 4), 5), ((1, 2, 30, 40), 50) - error: "23505" - # 4.1 Triage: [Deferred: Not failing in CK] failed when running with forced continuations against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 4.1 Triage: [Deferred: Client checks for End] 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 diff --git a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql index 07d14d8e93..765f8158da 100644 --- a/yaml-tests/src/test/resources/standard-tests-metadata.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-metadata.yamsql @@ -56,7 +56,7 @@ 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: Not failing in CK] failed running with forced continuations (Received continuation shouldn't be at beginning) + # 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 diff --git a/yaml-tests/src/test/resources/standard-tests-proto.yamsql b/yaml-tests/src/test/resources/standard-tests-proto.yamsql index ae4064d148..e8c1c0ecac 100644 --- a/yaml-tests/src/test/resources/standard-tests-proto.yamsql +++ b/yaml-tests/src/test/resources/standard-tests-proto.yamsql @@ -55,7 +55,7 @@ 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: Not failing in CK] failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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 diff --git a/yaml-tests/src/test/resources/standard-tests.yamsql b/yaml-tests/src/test/resources/standard-tests.yamsql index fc91678c86..9f61b78fbb 100644 --- a/yaml-tests/src/test/resources/standard-tests.yamsql +++ b/yaml-tests/src/test/resources/standard-tests.yamsql @@ -83,7 +83,7 @@ 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: Not failing in CK] Failed running with forced continuations: (Received continuation shouldn't be at beginning) + # 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 From 06f46065df69a40d2da5fe7f2c8bf8cfc82c8118 Mon Sep 17 00:00:00 2001 From: ohad Date: Wed, 26 Feb 2025 13:44:05 -0700 Subject: [PATCH 27/29] Triage rest of files, add to annotations --- .../src/test/resources/create-drop.yamsql | 17 +- yaml-tests/src/test/resources/enum.yamsql | 2 +- .../src/test/resources/functions.yamsql | 28 +-- .../src/test/resources/groupby-tests.yamsql | 20 +- .../src/test/resources/insert-enum.yamsql | 2 +- .../resources/inserts-updates-deletes.yamsql | 4 +- .../src/test/resources/join-tests.yamsql | 4 +- yaml-tests/src/test/resources/like.yamsql | 192 ++++++++++-------- .../src/test/resources/select-a-star.yamsql | 6 +- .../src/test/resources/subquery-tests.yamsql | 8 +- yaml-tests/src/test/resources/union.yamsql | 12 +- 11 files changed, 159 insertions(+), 136 deletions(-) diff --git a/yaml-tests/src/test/resources/create-drop.yamsql b/yaml-tests/src/test/resources/create-drop.yamsql index 9842607711..5602266553 100644 --- a/yaml-tests/src/test/resources/create-drop.yamsql +++ b/yaml-tests/src/test/resources/create-drop.yamsql @@ -148,7 +148,7 @@ setup: connect: "jdbc:embed:/__SYS?schema=CATALOG" steps: - query: drop database if exists /frl/db -# 4.1 triage: Fails with force continuations (but not for snapshot) +# 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: @@ -158,13 +158,14 @@ setup: # 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}] +test_block: + 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" diff --git a/yaml-tests/src/test/resources/enum.yamsql b/yaml-tests/src/test/resources/enum.yamsql index ac06880ef6..895907d89c 100644 --- a/yaml-tests/src/test/resources/enum.yamsql +++ b/yaml-tests/src/test/resources/enum.yamsql @@ -17,7 +17,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# 4.1-triage: enum support was not added to client until 4.1.6.0, none of these queries pass, all with: +# 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: diff --git a/yaml-tests/src/test/resources/functions.yamsql b/yaml-tests/src/test/resources/functions.yamsql index 9b6e65b818..b5b8993ce6 100644 --- a/yaml-tests/src/test/resources/functions.yamsql +++ b/yaml-tests/src/test/resources/functions.yamsql @@ -92,11 +92,11 @@ 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: 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 -# - result: [{_0: 5, _1: 1, _2: 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 - unorderedResult: [ @@ -125,15 +125,15 @@ test_block: {{ T1: 3, A: 'c', B: 3.0}}, {{ T1: 4, A: 'd', B: 4.0}}, {!null _}] - # 4.1 triage: 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 -# - 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}}] + # 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}}] --- 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 94611bbd20..049a759d36 100644 --- a/yaml-tests/src/test/resources/groupby-tests.yamsql +++ b/yaml-tests/src/test/resources/groupby-tests.yamsql @@ -142,19 +142,23 @@ test_block: # - # - 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: Test failed when run with forced continuations (Result mismatch) - # - - # - query: select AVG(x.col2) from (select col1,col2 from t1) as x group by x.col1; - # - result: [{3.0}, {9.5}] + # 4.1 Triage: [Investigate further] 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}] # 4.1 Triage: 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: Test failed when run with forced continuations (Result mismatch) - # - + # 4.1 Triage: [Investigate further] 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; - # - result: [{!l 3, 3.0}, {!l 9, 9.5}] + - 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; - error: "42703" diff --git a/yaml-tests/src/test/resources/insert-enum.yamsql b/yaml-tests/src/test/resources/insert-enum.yamsql index b000ae8f16..ac61e5067d 100644 --- a/yaml-tests/src/test/resources/insert-enum.yamsql +++ b/yaml-tests/src/test/resources/insert-enum.yamsql @@ -16,7 +16,7 @@ # 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: Enum support wasn't added until 4.1.6.0 All tests fail to insert enums with: +# 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: diff --git a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql index 12ff4733ed..48444b726d 100644 --- a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql +++ b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql @@ -105,12 +105,12 @@ 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: failed when running against 4.0.559.6 (expecting '42601' error code, got 'XXXXX' instead) + # 4.1 Triage: [Initial version] 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); # - error: "42601" - # 4.1 Triage: Failed when initial version is 4.0.559.6 (expecting statement to throw an error, however it returned a count) + # 4.1 Triage: [Initial version] 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); diff --git a/yaml-tests/src/test/resources/join-tests.yamsql b/yaml-tests/src/test/resources/join-tests.yamsql index 5e6c9c0c25..d497c76851 100644 --- a/yaml-tests/src/test/resources/join-tests.yamsql +++ b/yaml-tests/src/test/resources/join-tests.yamsql @@ -67,7 +67,7 @@ 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: This runs into infinite loop + # 4.1 Triage: [Investigate further: Exists subquery] This runs into infinite loop - maxRows: 0 - unorderedResult: [{"Emily", "Martinez"}, {"Daniel", "Miller"}, @@ -78,7 +78,7 @@ 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: This runs into infinite loop + # 4.1 Triage: [Investigate further: Exists subquery] This runs into infinite loop - maxRows: 0 - unorderedResult: [{"Daniel", "Miller"}] - diff --git a/yaml-tests/src/test/resources/like.yamsql b/yaml-tests/src/test/resources/like.yamsql index d01d1f4a05..bc23cdd1bf 100644 --- a/yaml-tests/src/test/resources/like.yamsql +++ b/yaml-tests/src/test/resources/like.yamsql @@ -17,7 +17,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -# 4.1 triage: All queries that return any results, fail with force continuations, even against current version +# 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: @@ -52,45 +52,51 @@ test_block: - - query: select * from A WHERE A1 LIKE '%abc' - result: [] -# - -# - query: select * from A WHERE A1 LIKE '%abc%' -# - unorderedResult: [ -# {'abcdefghijklmnopqrstuvwxyz'}, -# {'___abcdef'}, -# {'%%abcdef'}, -# {'*abcdef'}, -# {'(abcdefghijk)'}, -# {'[abcdefghijk]'}, -# {'{abcdefghijk}'}] -# - -# - query: select * from A WHERE A1 LIKE '_abc%' -# - unorderedResult: [ -# {'(abcdefghijk)'}, -# {'[abcdefghijk]'}, -# {'{abcdefghijk}'}, -# {'*abcdef'}] -# - -# # TODO (Investigate `Missing binding for __const_CONSTANT` error with queries when using plan from cache) -# - query: select * from A WHERE A1 LIKE '%ABC%' -# - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] -# - -# - query: select * from A WHERE A1 LIKE '%ABC%X_Z' -# - unorderedResult: [{'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}] + - + - query: select * from A WHERE A1 LIKE '%abc%' + - maxRows: 0 + - unorderedResult: [ + {'abcdefghijklmnopqrstuvwxyz'}, + {'___abcdef'}, + {'%%abcdef'}, + {'*abcdef'}, + {'(abcdefghijk)'}, + {'[abcdefghijk]'}, + {'{abcdefghijk}'}] + - + - query: select * from A WHERE A1 LIKE '_abc%' + - maxRows: 0 + - unorderedResult: [ + {'(abcdefghijk)'}, + {'[abcdefghijk]'}, + {'{abcdefghijk}'}, + {'*abcdef'}] + - + # 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 '__' -# - unorderedResult: [ -# {'学校'}, -# {'^$'}] -# - -# - query: select * from A WHERE A1 LIKE '_____' -# - unorderedResult: [ -# {'école'}, -# {'ありがとう'}, -# {'مدرسة'}, -# {'\\||%'}] + - + - query: select * from A WHERE A1 LIKE '__' + - maxRows: 0 + - unorderedResult: [ + {'学校'}, + {'^$'}] + - + - query: select * from A WHERE A1 LIKE '_____' + - maxRows: 0 + - unorderedResult: [ + {'école'}, + {'ありがとう'}, + {'مدرسة'}, + {'\\||%'}] --- # TODO (Investigate `Missing binding for __const_CONSTANT` error with queries when using plan from cache) test_block: @@ -98,61 +104,71 @@ test_block: repetition: 1 check_cache: false tests: -# - -# - query: select * from A WHERE A1 LIKE '|_|_%' ESCAPE '|' -# - result: [{'___abcdef'}] -# - -# - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '\' -# - result: [{'___abcdef'}] -# - -# - query: select * from A WHERE A1 LIKE '\_%' ESCAPE '|' -# - result: [{'\\||%'}] -# - -# - query: select * from A WHERE A1 LIKE '\_%' -# - result: [{'\\||%'}] -# - -# - query: select * from A WHERE A1 LIKE '\_\_\_abcdef' ESCAPE '\' -# - result: [{'___abcdef'}] -# - -# - query: select * from A WHERE A1 LIKE '\_\_\_______' ESCAPE '\' -# - result: [{'___abcdef'}] -# - -# - query: select * from A WHERE A1 LIKE '\__\_______' ESCAPE '\' -# - 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 '|' + - 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 '\' -# - result: [{'\\||%'}] -# - -# - query: select * from A WHERE A1 NOT LIKE '|_|_%' ESCAPE '|' -# - unorderedResult: [ -# {'abcdefghijklmnopqrstuvwxyz'}, -# {'%%abcdef'}, -# {'*abcdef'}, -# {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, -# {'école'}, -# {'ありがとう'}, -# {'学校'}, -# {'مدرسة'}, -# {'(abcdefghijk)'}, -# {'[abcdefghijk]'}, -# {'{abcdefghijk}'}, -# {'^$'}, -# {'\\||%'} -# ] + - + - 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'}, + {'*abcdef'}, + {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, + {'école'}, + {'ありがとう'}, + {'学校'}, + {'مدرسة'}, + {'(abcdefghijk)'}, + {'[abcdefghijk]'}, + {'{abcdefghijk}'}, + {'^$'}, + {'\\||%'} + ] - - query: select * from A WHERE A1 NOT LIKE '%' - unorderedResult: [] -# - -# - query: select * from A WHERE A1 NOT LIKE '%abcde%' -# - unorderedResult: [ -# {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, -# {'école'}, -# {'ありがとう'}, -# {'学校'}, -# {'مدرسة'}, -# {'^$'}, -# {'\\||%'} ] + - + - query: select * from A WHERE A1 NOT LIKE '%abcde%' + - maxRows: 0 + - unorderedResult: [ + {'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, + {'école'}, + {'ありがとう'}, + {'学校'}, + {'مدرسة'}, + {'^$'}, + {'\\||%'} ] ... diff --git a/yaml-tests/src/test/resources/select-a-star.yamsql b/yaml-tests/src/test/resources/select-a-star.yamsql index f94013f5f8..c677b6b075 100644 --- a/yaml-tests/src/test/resources/select-a-star.yamsql +++ b/yaml-tests/src/test/resources/select-a-star.yamsql @@ -40,7 +40,7 @@ test_block: tests: - - query: select B1 from B where exists (select A.*, B1 from A group by A1,A2,A3); - # 4.1 Triage: Infinite loop + # 4.1 Triage: [Investigate further: Exists subquery] Infinite loop - maxRows: 0 - result: [{1}, {2}, {3}] - @@ -80,12 +80,12 @@ test_block: - error: "42803" - - query: select B1 from B where exists (select A.*, B1 from A group by A1,A2,A3); - # 4.1 Triage: Infinite loop + # 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: Infinite loop + # 4.1 Triage: [Investigate further: Exists subquery] Infinite loop - maxRows: 0 - result: [{1, 20, {4, 40}}, {2, 20, {5, 50}}, diff --git a/yaml-tests/src/test/resources/subquery-tests.yamsql b/yaml-tests/src/test/resources/subquery-tests.yamsql index d848e02ac0..2212ff6be0 100644 --- a/yaml-tests/src/test/resources/subquery-tests.yamsql +++ b/yaml-tests/src/test/resources/subquery-tests.yamsql @@ -62,25 +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: Verify Exception for continuation + # 4.1 Triage: 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: Contextual SQL Exception for continuation + # 4.1 Triage: 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: infinite loop for continuation + # 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: infinite loop for continuation + # 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 5e4ce0281b..e01512d8fe 100644 --- a/yaml-tests/src/test/resources/union.yamsql +++ b/yaml-tests/src/test/resources/union.yamsql @@ -58,7 +58,7 @@ 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: infinite loop + # 4.1 Triage: [Investigate further: aggregates on subquery] infinite loop - maxRows: 0 - unorderedResult: [{A: 74 , B: 13}] - @@ -157,19 +157,20 @@ 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: Infinite loop + # 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: Infinite loop + # 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: Invalid continuation + # 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}] - @@ -184,6 +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)" - # 4.1 Triage: Wrong result with forced continuation (NULL vs 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}] ... From 535a751b8a22d375c919be914bce106dd410a009 Mon Sep 17 00:00:00 2001 From: ohad Date: Thu, 27 Feb 2025 07:52:02 -0700 Subject: [PATCH 28/29] Fix formatting error --- yaml-tests/src/test/resources/create-drop.yamsql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml-tests/src/test/resources/create-drop.yamsql b/yaml-tests/src/test/resources/create-drop.yamsql index 5602266553..d4378c962b 100644 --- a/yaml-tests/src/test/resources/create-drop.yamsql +++ b/yaml-tests/src/test/resources/create-drop.yamsql @@ -157,7 +157,7 @@ setup: # 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 From 67b0b39565e4e4b955541ccfc747230fb2afad9e Mon Sep 17 00:00:00 2001 From: Arnaud Lacurie Date: Thu, 27 Feb 2025 17:17:38 +0000 Subject: [PATCH 29/29] Tag additional commits --- .../resources/aggregate-empty-table.yamsql | 134 +++++++++--------- .../aggregate-index-tests-count-empty.yamsql | 8 +- .../aggregate-index-tests-count.yamsql | 12 +- .../resources/aggregate-index-tests.yamsql | 12 +- .../src/test/resources/groupby-tests.yamsql | 26 ++-- .../resources/inserts-updates-deletes.yamsql | 4 +- .../test/resources/primary-key-tests.yamsql | 2 +- .../src/test/resources/subquery-tests.yamsql | 4 +- 8 files changed, 101 insertions(+), 101 deletions(-) diff --git a/yaml-tests/src/test/resources/aggregate-empty-table.yamsql b/yaml-tests/src/test/resources/aggregate-empty-table.yamsql index 4b882ec30f..71dbd3b150 100644 --- a/yaml-tests/src/test/resources/aggregate-empty-table.yamsql +++ b/yaml-tests/src/test/resources/aggregate-empty-table.yamsql @@ -34,7 +34,7 @@ schema_template: test_block: name: agg-empty-table-tests tests: - # 4.1 Triage: This test fails when running in multi-server mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" @@ -44,13 +44,13 @@ test_block: - - 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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}] - @@ -68,7 +68,7 @@ test_block: - - query: select count(*) from T1 where col1 > 0 group by col1; - error: "0AF00" - # 4.1 Triage: 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) + # 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)" @@ -76,12 +76,12 @@ test_block: - - 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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; @@ -98,17 +98,17 @@ 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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; @@ -125,17 +125,17 @@ 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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; @@ -155,17 +155,17 @@ 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)" - # 4.1 Triage: 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) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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; @@ -182,17 +182,17 @@ 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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; @@ -209,54 +209,54 @@ test_block: - - query: select sum(col1) from T1; - explain: "SCAN(<,>) | TFILTER T1 | MAP (_ AS _0) | AGG (sum_l(_._0.COL1) AS _0) | ON EMPTY NULL | MAP (_._0._0 AS _0)" - # 4.1 Triage: 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) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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)" - # 4.1 Triage: 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) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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; @@ -271,32 +271,32 @@ 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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)" - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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; @@ -340,15 +340,15 @@ test_block: test_block: name: agg-empty-table-tests-after-modifications tests: - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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}] @@ -367,15 +367,15 @@ test_block: - - query: select count(*) from T1 where col1 > 0 group by col1; - error: "0AF00" - # 4.1 Triage: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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}] @@ -390,15 +390,15 @@ 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: [] - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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}] @@ -411,15 +411,15 @@ test_block: - - query: select count(*) from T3 where col1 > 0 group by col1; - result: [] - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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}] @@ -438,15 +438,15 @@ test_block: - - query: select count(col2) from T1 where col1 > 0 group by col1; - error: "0AF00" - # 4.1 Triage: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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}] @@ -461,15 +461,15 @@ 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: [] - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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}] @@ -482,27 +482,27 @@ test_block: - - query: select count(col2) from T3 where col1 > 0 group by col1; - result: [] - # 4.1 Triage: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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 @@ -511,19 +511,19 @@ test_block: # - 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}] - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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 _}] @@ -540,23 +540,23 @@ 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: [] - # 4.1 Triage: This test fails when running in forced-continuations mode against 4.0.559.6 (result has more than maxRows rows) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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: this test fails when running with forced continuations current version on two JVMs (Received continuation shouldn't be at beginning) + # 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 _}] 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 95379e4492..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,7 @@ 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)" - # 4.1 Triage: [No Fix Necessary] failing when running against 4.0.559.6 (result mismatch) + # 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}] - @@ -43,7 +43,7 @@ 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)" - # 4.1 Triage: failing when running against 4.0.559.6 (result mismatch) + # 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 @@ -55,7 +55,7 @@ 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)" - # 4.1 Triage: failing when running against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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 @@ -64,7 +64,7 @@ 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)" - # 4.1 Triage: failing when running against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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 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 092607cf73..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,7 @@ 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)" - # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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 @@ -56,7 +56,7 @@ 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)" - # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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 @@ -83,21 +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)" - # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: failed when running with forced continuations (Server-side exception) + # 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)" - # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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)" - # 4.1 Triage: failed when running with forced continuations (server-side error) + # 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 a5a4c3dd7a..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,7 @@ 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)" - # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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 @@ -149,14 +149,14 @@ 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)" - # 4.1 Triage: failed when running with forced continuations (result mismatch) + # 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)" - # 4.1 Triage: failed when running with forced continuations (result mismatch) + # 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; @@ -212,12 +212,12 @@ 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)" - # 4.1 Triage: failed when running with forced continuations (result mismatch) + # 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)" - # 4.1 Triage: failed when running with forced continuations (result mismatch) + # 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. @@ -233,7 +233,7 @@ test_block: - - query: select max_ever(col3) from T2 group by col1, col2; - result: [{!l 100}, {!l 200}, {!l 400}] - # 4.1 Triage: failed when running with forced continuations (Received continuation shouldn't be at beginning) + # 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}] diff --git a/yaml-tests/src/test/resources/groupby-tests.yamsql b/yaml-tests/src/test/resources/groupby-tests.yamsql index 049a759d36..03022198c1 100644 --- a/yaml-tests/src/test/resources/groupby-tests.yamsql +++ b/yaml-tests/src/test/resources/groupby-tests.yamsql @@ -57,18 +57,18 @@ setup: test_block: name: group-by-tests tests: - # 4.1 Triage: Test failed when run with forced continuations (used by: com.google.common.base.VerifyException) + # 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: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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}] - # 4.1 Triage: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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}] @@ -122,37 +122,37 @@ test_block: - - query: select col1 from (select col1 from t1) as x group by x.col1; - result: [{!l 10}, {!l 20}] - # 4.1 Triage: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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] Test failed when run with forced continuations (Result mismatch) + # 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}] - # 4.1 Triage: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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] Test failed when run with forced continuations (Result mismatch) + # 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. @@ -194,11 +194,11 @@ 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}] - # 4.1 Triage: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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: Test failed when run with forced continuations (Caused by: com.google.common.base.VerifyException) + # 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}] diff --git a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql index 48444b726d..8cf97b5799 100644 --- a/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql +++ b/yaml-tests/src/test/resources/inserts-updates-deletes.yamsql @@ -105,12 +105,12 @@ 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] 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") + # 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); # - error: "42601" - # 4.1 Triage: [Initial version] Failed when initial version is 4.0.559.6 (expecting statement to throw an error, however it returned a count) + # 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); diff --git a/yaml-tests/src/test/resources/primary-key-tests.yamsql b/yaml-tests/src/test/resources/primary-key-tests.yamsql index ebb101d7fb..9da0d54446 100644 --- a/yaml-tests/src/test/resources/primary-key-tests.yamsql +++ b/yaml-tests/src/test/resources/primary-key-tests.yamsql @@ -31,7 +31,7 @@ test_block: VALUES ((1, 2, 3, 4), 5), ((1, 2, 30, 40), 50) - error: "23505" - # 4.1 Triage: [Deferred: Client checks for End] failed when running with forced continuations against 4.0.559.6 (Received continuation shouldn't be at beginning) + # 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 diff --git a/yaml-tests/src/test/resources/subquery-tests.yamsql b/yaml-tests/src/test/resources/subquery-tests.yamsql index 2212ff6be0..e6b0fdb0d0 100644 --- a/yaml-tests/src/test/resources/subquery-tests.yamsql +++ b/yaml-tests/src/test/resources/subquery-tests.yamsql @@ -62,13 +62,13 @@ 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: fail with forced continuations (Verify Exception for continuation, Type$Record.fromProto(Type.java:2095)) + # 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: fail with forced continuations (Verify Exception for continuation, Type$Record.fromProto(Type.java:2095)) + # 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}] -