diff --git a/test/JDBC/expected/BABEL-2998.out b/test/JDBC/expected/BABEL-2998.out index de030d1724b..510d323d546 100644 --- a/test/JDBC/expected/BABEL-2998.out +++ b/test/JDBC/expected/BABEL-2998.out @@ -3,11 +3,12 @@ SELECT CAST('1' AS CHAR(10)) AS Col1 UNION SELECT NULL AS Col1 +ORDER BY Col1 GO ~~START~~ char -1 +1 ~~END~~ @@ -15,11 +16,12 @@ SELECT CAST('1' AS CHAR(10)) AS Col1 UNION ALL SELECT NULL AS Col1 GROUP BY Col1 +ORDER BY Col1 GO ~~START~~ char -1 +1 ~~END~~ @@ -27,11 +29,12 @@ char SELECT CAST('1' AS CHAR(10)) AS Col1 UNION SELECT CAST(NULL AS CHAR(10)) AS Col1 +ORDER BY Col1 GO ~~START~~ char -1 +1 ~~END~~ @@ -39,11 +42,12 @@ SELECT CAST('1' AS CHAR(10)) AS Col1 UNION ALL SELECT CONVERT(CHAR(10), NULL) AS Col1 GROUP BY Col1 +ORDER BY Col1 GO ~~START~~ char -1 +1 ~~END~~ @@ -51,22 +55,24 @@ SELECT CAST('1' AS CHAR(10)) AS Col1 UNION ALL SELECT CAST(NULL AS CHAR(10)) AS Col1 GROUP BY Col1 +ORDER BY Col1 GO ~~START~~ char -1 +1 ~~END~~ SELECT CAST('1' AS CHAR(10)) AS Col1 UNION SELECT CONVERT(CHAR(10), NULL) AS Col1 +ORDER BY Col1 GO ~~START~~ char -1 +1 ~~END~~ diff --git a/test/JDBC/expected/BABEL-LIKE2ILIKE.out b/test/JDBC/expected/BABEL-LIKE2ILIKE.out index 57aad91e4d2..f0edb0b3b15 100644 --- a/test/JDBC/expected/BABEL-LIKE2ILIKE.out +++ b/test/JDBC/expected/BABEL-LIKE2ILIKE.out @@ -177,6 +177,7 @@ int with p1 as (select c1 from like_tesing1 where c1 LIKE '__Ć_'), p2 as (select c3 from like_tesing1 where c3 LIKE 'äƀ__') select * from p1 union all select * from p2 +order by 1 GO ~~START~~ nvarchar diff --git a/test/JDBC/expected/db_collation/BABEL-LIKE2ILIKE.out b/test/JDBC/expected/db_collation/BABEL-LIKE2ILIKE.out index 910a558b8a2..015f78559d0 100644 --- a/test/JDBC/expected/db_collation/BABEL-LIKE2ILIKE.out +++ b/test/JDBC/expected/db_collation/BABEL-LIKE2ILIKE.out @@ -182,6 +182,7 @@ int with p1 as (select c1 from like_tesing1 where c1 LIKE '__Ć_'), p2 as (select c3 from like_tesing1 where c3 LIKE 'äƀ__') select * from p1 union all select * from p2 +order by 1 GO ~~START~~ nvarchar diff --git a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out index f70b4e5e9db..f8ef156946d 100644 --- a/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out +++ b/test/JDBC/expected/non_default_server_collation/chinese_prc_ci_as/BABEL-LIKE2ILIKE.out @@ -178,6 +178,7 @@ int with p1 as (select c1 from like_tesing1 where c1 LIKE '__Ć_'), p2 as (select c3 from like_tesing1 where c3 LIKE 'äƀ__') select * from p1 union all select * from p2 +order by 1 GO ~~START~~ nvarchar diff --git a/test/JDBC/expected/parallel_query/BABEL-2843.out b/test/JDBC/expected/parallel_query/BABEL-2843.out index 6d51d111700..917ef6dc025 100644 --- a/test/JDBC/expected/parallel_query/BABEL-2843.out +++ b/test/JDBC/expected/parallel_query/BABEL-2843.out @@ -35,7 +35,7 @@ text Query Text: select 1 Gather (cost=0.00..0.01 rows=1 width=4) (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Result (cost=0.00..0.01 rows=1 width=4) (actual rows=1 loops=1) ~~END~~ @@ -51,8 +51,8 @@ text Query Text: select * from babel_2843_t1 where b1 = 1 Gather (cost=0.00..19.11 rows=11 width=8) (actual rows=0 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..19.11 rows=4 width=8) (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..19.11 rows=4 width=8) (actual rows=0 loops=1) Filter: (b1 = 1) ~~END~~ @@ -78,7 +78,7 @@ int#!#int ~~START~~ xml - select * from babel_2843_t1 where b1 = 1 Gather false false 0.00 19.11 11 8 0 1 3 3 false Seq Scan Outer true false babel_2843_t1 babel_2843_t1 0.00 19.11 4 8 0 4 (b1 = 1) 0 + select * from babel_2843_t1 where b1 = 1 Gather false false 0.00 19.11 11 8 0 1 3 0 false Seq Scan Outer true false babel_2843_t1 babel_2843_t1 0.00 19.11 4 8 0 1 (b1 = 1) 0 ~~END~~ @@ -103,7 +103,7 @@ int#!#int ~~START~~ text -{ "Query Text": "select * from babel_2843_t1 where b1 = 1", "Plan": { "Node Type": "Gather", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.00, "Total Cost": 19.11, "Plan Rows": 11, "Plan Width": 8, "Actual Rows": 0, "Actual Loops": 1, "Workers Planned": 3, "Workers Launched": 3, "Single Copy": false, "Plans": [ { "Node Type": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": true, "Async Capable": false, "Relation Name": "babel_2843_t1", "Alias": "babel_2843_t1", "Startup Cost": 0.00, "Total Cost": 19.11, "Plan Rows": 4, "Plan Width": 8, "Actual Rows": 0, "Actual Loops": 4, "Filter": "(b1 = 1)", "Rows Removed by Filter": 0, "Workers": [ ] } ] }, "Triggers": [ ]} +{ "Query Text": "select * from babel_2843_t1 where b1 = 1", "Plan": { "Node Type": "Gather", "Parallel Aware": false, "Async Capable": false, "Startup Cost": 0.00, "Total Cost": 19.11, "Plan Rows": 11, "Plan Width": 8, "Actual Rows": 0, "Actual Loops": 1, "Workers Planned": 3, "Workers Launched": 0, "Single Copy": false, "Plans": [ { "Node Type": "Seq Scan", "Parent Relationship": "Outer", "Parallel Aware": true, "Async Capable": false, "Relation Name": "babel_2843_t1", "Alias": "babel_2843_t1", "Startup Cost": 0.00, "Total Cost": 19.11, "Plan Rows": 4, "Plan Width": 8, "Actual Rows": 0, "Actual Loops": 1, "Filter": "(b1 = 1)", "Rows Removed by Filter": 0 } ] }, "Triggers": [ ]} ~~END~~ @@ -128,7 +128,7 @@ int#!#int ~~START~~ text -Query Text: "select * from babel_2843_t1 where b1 = 1"Plan: Node Type: "Gather" Parallel Aware: false Async Capable: false Startup Cost: 0.00 Total Cost: 19.11 Plan Rows: 11 Plan Width: 8 Actual Rows: 0 Actual Loops: 1 Workers Planned: 3 Workers Launched: 3 Single Copy: false Plans: - Node Type: "Seq Scan" Parent Relationship: "Outer" Parallel Aware: true Async Capable: false Relation Name: "babel_2843_t1" Alias: "babel_2843_t1" Startup Cost: 0.00 Total Cost: 19.11 Plan Rows: 4 Plan Width: 8 Actual Rows: 0 Actual Loops: 4 Filter: "(b1 = 1)" Rows Removed by Filter: 0 Workers: Triggers: +Query Text: "select * from babel_2843_t1 where b1 = 1"Plan: Node Type: "Gather" Parallel Aware: false Async Capable: false Startup Cost: 0.00 Total Cost: 19.11 Plan Rows: 11 Plan Width: 8 Actual Rows: 0 Actual Loops: 1 Workers Planned: 3 Workers Launched: 0 Single Copy: false Plans: - Node Type: "Seq Scan" Parent Relationship: "Outer" Parallel Aware: true Async Capable: false Relation Name: "babel_2843_t1" Alias: "babel_2843_t1" Startup Cost: 0.00 Total Cost: 19.11 Plan Rows: 4 Plan Width: 8 Actual Rows: 0 Actual Loops: 1 Filter: "(b1 = 1)" Rows Removed by Filter: 0Triggers: ~~END~~ @@ -193,8 +193,8 @@ text Query Text: select * from babel_2843_t1 Gather (cost=0.00..17.29 rows=2260 width=8) (actual rows=2 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..17.29 rows=729 width=8) (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..17.29 rows=729 width=8) (actual rows=2 loops=1) ~~END~~ ~~START~~ @@ -207,8 +207,8 @@ text Query Text: select * from babel_2843_t2 Gather (cost=0.00..17.29 rows=2260 width=8) (actual rows=1 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on babel_2843_t2 (cost=0.00..17.29 rows=729 width=8) (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on babel_2843_t2 (cost=0.00..17.29 rows=729 width=8) (actual rows=1 loops=1) ~~END~~ @@ -239,10 +239,10 @@ text Query Text: select * from babel_2843_t1 where a1 = "@param" Gather (cost=0.00..19.11 rows=11 width=8) (actual rows=1 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..19.11 rows=4 width=8) (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..19.11 rows=4 width=8) (actual rows=1 loops=1) Filter: (a1 = 1) - Rows Removed by Filter: 0 + Rows Removed by Filter: 2 ~~END~~ drop procedure babel_2843_proc; @@ -362,7 +362,7 @@ text Query Text: select 1 Gather (cost=0.00..0.01 rows=1 width=4) (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Result (cost=0.00..0.01 rows=1 width=4) (actual rows=1 loops=1) ~~END~~ @@ -388,10 +388,10 @@ text Query Text: select * from babel_2843_t1 where a1 = "@param" Gather (cost=0.00..19.11 rows=11 width=8) (actual rows=1 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..19.11 rows=4 width=8) (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on babel_2843_t1 (cost=0.00..19.11 rows=4 width=8) (actual rows=1 loops=1) Filter: (a1 = 2) - Rows Removed by Filter: 0 + Rows Removed by Filter: 2 ~~END~~ diff --git a/test/JDBC/expected/parallel_query/BABEL-3248.out b/test/JDBC/expected/parallel_query/BABEL-3248.out index b72dce87549..03426fdfd47 100644 --- a/test/JDBC/expected/parallel_query/BABEL-3248.out +++ b/test/JDBC/expected/parallel_query/BABEL-3248.out @@ -84,7 +84,7 @@ text Query Text: select 1 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Result (actual rows=1 loops=1) ~~END~~ diff --git a/test/JDBC/expected/parallel_query/BABEL_3571.out b/test/JDBC/expected/parallel_query/BABEL_3571.out index 736f7e4274b..ca56a8337e7 100644 --- a/test/JDBC/expected/parallel_query/BABEL_3571.out +++ b/test/JDBC/expected/parallel_query/BABEL_3571.out @@ -221,7 +221,7 @@ text Query Text: SELECT * FROM babel_3571_1 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_1_id1_key on babel_3571_1 (actual rows=5 loops=1) ~~END~~ @@ -242,7 +242,7 @@ text Query Text: SELECT * FROM babel_3571_2 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_2_id1_id2_key on babel_3571_2 (actual rows=5 loops=1) ~~END~~ @@ -263,7 +263,7 @@ text Query Text: SELECT * FROM babel_3571_3 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_3_unique_idxbabel_35df79da2a42216884edca5a4a798829ce on babel_3571_3 (actual rows=5 loops=1) ~~END~~ @@ -481,7 +481,7 @@ text Query Text: SELECT * FROM babel_3571_1 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_1_id1_key on babel_3571_1 (actual rows=5 loops=1) ~~END~~ @@ -502,7 +502,7 @@ text Query Text: SELECT * FROM babel_3571_2 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_2_id1_id2_key on babel_3571_2 (actual rows=5 loops=1) ~~END~~ @@ -524,7 +524,7 @@ text Query Text: SELECT * FROM babel_3571_3 ORDER BY id1 Gather (actual rows=6 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan Backward using babel_3571_3_unique_idx on babel_3571_3 (actual rows=6 loops=1) ~~END~~ @@ -790,7 +790,7 @@ text Query Text: SELECT * FROM babel_3571_1 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_1_id1_key on babel_3571_1 (actual rows=5 loops=1) ~~END~~ @@ -811,7 +811,7 @@ text Query Text: SELECT * FROM babel_3571_2 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_2_id1_key on babel_3571_2 (actual rows=5 loops=1) ~~END~~ @@ -832,7 +832,7 @@ text Query Text: SELECT * FROM babel_3571_3 ORDER BY id1 Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_3571_3_unique_idxbabel_35df79da2a42216884edca5a4a798829ce on babel_3571_3 (actual rows=5 loops=1) ~~END~~ diff --git a/test/JDBC/expected/parallel_query/BABEL_4940.out b/test/JDBC/expected/parallel_query/BABEL_4940.out index e2cc1eebb58..b3aed755a5e 100644 --- a/test/JDBC/expected/parallel_query/BABEL_4940.out +++ b/test/JDBC/expected/parallel_query/BABEL_4940.out @@ -117,7 +117,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t1 ORDER BY id Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan using babel_4940_t1_pkey on babel_4940_t1 (actual rows=10 loops=1) @@ -144,7 +144,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t1 ORDER BY id DESC Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan Backward using babel_4940_t1_pkey on babel_4940_t1 (actual rows=10 loops=1) @@ -171,7 +171,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t2 ORDER BY id Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan using babel_4940_t2_pkey on babel_4940_t2 (actual rows=10 loops=1) @@ -198,7 +198,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t2 ORDER BY id DESC Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan Backward using babel_4940_t2_pkey on babel_4940_t2 (actual rows=10 loops=1) @@ -225,7 +225,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t3 ORDER BY id, id1 Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan using babel_4940_t3_pkey on babel_4940_t3 (actual rows=10 loops=1) @@ -252,7 +252,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t3 ORDER BY id DESC, id1 DESC Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan Backward using babel_4940_t3_pkey on babel_4940_t3 (actual rows=10 loops=1) @@ -279,7 +279,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t4 ORDER BY id Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan using babel_4940_t4_pkey on babel_4940_t4 (actual rows=10 loops=1) @@ -306,7 +306,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t4 ORDER BY id DESC Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan Backward using babel_4940_t4_pkey on babel_4940_t4 (actual rows=10 loops=1) @@ -333,7 +333,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t5 ORDER BY id Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan using c on babel_4940_t5 (actual rows=10 loops=1) @@ -360,7 +360,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t5 ORDER BY id DESC Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan Backward using c on babel_4940_t5 (actual rows=10 loops=1) @@ -387,7 +387,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t6 ORDER BY id, id1 DESC Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan using c1 on babel_4940_t6 (actual rows=10 loops=1) @@ -414,7 +414,7 @@ text Query Text: SELECT TOP 10 * FROM babel_4940_t6 ORDER BY id DESC, id1 ASC Gather (actual rows=10 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=10 loops=1) -> Index Scan Backward using c1 on babel_4940_t6 (actual rows=10 loops=1) diff --git a/test/JDBC/expected/parallel_query/TestHalfvecDatatype.out b/test/JDBC/expected/parallel_query/TestHalfvecDatatype.out index 82d2db25c58..fd42d6f1397 100644 --- a/test/JDBC/expected/parallel_query/TestHalfvecDatatype.out +++ b/test/JDBC/expected/parallel_query/TestHalfvecDatatype.out @@ -966,7 +966,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -985,7 +985,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <-> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -1007,7 +1007,7 @@ text Query Text: SELECT COUNT(*) FROM halfvec_table Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Seq Scan on halfvec_table (actual rows=5 loops=1) @@ -1028,7 +1028,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=0 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -1091,7 +1091,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <#> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <#> '[3,3,3]'::halfvec) @@ -1110,7 +1110,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <#> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -1175,7 +1175,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <=> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) Order By: (val <=> '[3,3,3]'::halfvec) @@ -1194,7 +1194,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> CAST('[0,0,0]' AS halfvec) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) @@ -1214,7 +1214,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) @@ -1280,7 +1280,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <+> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <+> '[3,3,3]'::halfvec) @@ -1299,7 +1299,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <+> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -1365,7 +1365,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -1384,7 +1384,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <-> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -1406,7 +1406,7 @@ text Query Text: SELECT COUNT(*) FROM halfvec_table Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Seq Scan on halfvec_table (actual rows=5 loops=1) @@ -1427,7 +1427,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=0 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -1495,11 +1495,11 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <#> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Sort (actual rows=5 loops=1) Sort Key: ((val <#> '[3,3,3]'::halfvec)) - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB -> Seq Scan on halfvec_table (actual rows=5 loops=1) ~~END~~ @@ -1516,12 +1516,12 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <#> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Sort (actual rows=5 loops=1) Sort Key: ((halfvec_table.val <#> (InitPlan 1).col1)) - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB InitPlan 1 -> Result (actual rows=1 loops=1) -> Seq Scan on halfvec_table (actual rows=5 loops=1) @@ -1583,7 +1583,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <=> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) Order By: (val <=> '[3,3,3]'::halfvec) @@ -1602,7 +1602,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> CAST('[0,0,0]' AS halfvec) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) @@ -1622,7 +1622,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) @@ -2786,7 +2786,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -2805,7 +2805,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <-> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -2827,7 +2827,7 @@ text Query Text: SELECT COUNT(*) FROM halfvec_table Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Seq Scan on halfvec_table (actual rows=5 loops=1) @@ -2848,7 +2848,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=0 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -2911,7 +2911,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <#> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <#> '[3,3,3]'::halfvec) @@ -2930,7 +2930,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <#> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -2995,7 +2995,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <=> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) Order By: (val <=> '[3,3,3]'::halfvec) @@ -3014,7 +3014,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> CAST('[0,0,0]' AS halfvec) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) @@ -3034,7 +3034,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) @@ -3100,7 +3100,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <+> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <+> '[3,3,3]'::halfvec) @@ -3119,7 +3119,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <+> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -3185,7 +3185,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -3204,7 +3204,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <-> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=4 loops=1) @@ -3226,7 +3226,7 @@ text Query Text: SELECT COUNT(*) FROM halfvec_table Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Seq Scan on halfvec_table (actual rows=5 loops=1) @@ -3247,7 +3247,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <-> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=0 loops=1) Order By: (val <-> '[3,3,3]'::halfvec) @@ -3315,11 +3315,11 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <#> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=5 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Sort (actual rows=5 loops=1) Sort Key: ((val <#> '[3,3,3]'::halfvec)) - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB -> Seq Scan on halfvec_table (actual rows=5 loops=1) ~~END~~ @@ -3336,12 +3336,12 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <#> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Sort (actual rows=5 loops=1) Sort Key: ((halfvec_table.val <#> (InitPlan 1).col1)) - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB InitPlan 1 -> Result (actual rows=1 loops=1) -> Seq Scan on halfvec_table (actual rows=5 loops=1) @@ -3403,7 +3403,7 @@ text Query Text: SELECT * FROM halfvec_table ORDER BY val <=> CAST('[3,3,3]' AS halfvec) NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) Order By: (val <=> '[3,3,3]'::halfvec) @@ -3422,7 +3422,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> CAST('[0,0,0]' AS halfvec) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) @@ -3442,7 +3442,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM halfvec_table ORDER BY val <=> (SELECT CAST(NULL as halfvec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxhalfvec_table7f9bec28bc8902d45d905788d7aa59a1 on halfvec_table (actual rows=3 loops=1) diff --git a/test/JDBC/expected/parallel_query/TestSparsevecDatatype.out b/test/JDBC/expected/parallel_query/TestSparsevecDatatype.out index 35d8e7b133a..b8132870c58 100644 --- a/test/JDBC/expected/parallel_query/TestSparsevecDatatype.out +++ b/test/JDBC/expected/parallel_query/TestSparsevecDatatype.out @@ -1049,7 +1049,7 @@ text Query Text: SELECT * FROM sparsevec_table ORDER BY val <-> CAST('{1:3,2:3,3:3}/3' AS sparsevec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=4 loops=1) Order By: (val <-> '{1:3,2:3,3:3}/3'::sparsevec) @@ -1068,7 +1068,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM sparsevec_table ORDER BY val <-> (SELECT CAST(NULL as sparsevec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=4 loops=1) @@ -1090,7 +1090,7 @@ text Query Text: SELECT COUNT(*) FROM sparsevec_table Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Seq Scan on sparsevec_table (actual rows=5 loops=1) @@ -1111,7 +1111,7 @@ text Query Text: SELECT * FROM sparsevec_table ORDER BY val <-> CAST('{1:3,2:3,3:3}/3' AS sparsevec) NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=0 loops=1) Order By: (val <-> '{1:3,2:3,3:3}/3'::sparsevec) @@ -1174,7 +1174,7 @@ text Query Text: SELECT * FROM sparsevec_table ORDER BY val <#> CAST('{1:3,2:3,3:3}/3' AS sparsevec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=4 loops=1) Order By: (val <#> '{1:3,2:3,3:3}/3'::sparsevec) @@ -1193,7 +1193,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM sparsevec_table ORDER BY val <#> (SELECT CAST(NULL as sparsevec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=4 loops=1) @@ -1258,7 +1258,7 @@ text Query Text: SELECT * FROM sparsevec_table ORDER BY val <=> CAST('{1:3,2:3,3:3}/3' AS sparsevec) NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=3 loops=1) Order By: (val <=> '{1:3,2:3,3:3}/3'::sparsevec) @@ -1277,7 +1277,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM sparsevec_table ORDER BY val <=> CAST('{}/3' AS sparsevec) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=3 loops=1) @@ -1297,7 +1297,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM sparsevec_table ORDER BY val <=> (SELECT CAST(NULL as sparsevec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=3 loops=1) @@ -1363,7 +1363,7 @@ text Query Text: SELECT * FROM sparsevec_table ORDER BY val <+> CAST('{1:3,2:3,3:3}/3' AS sparsevec) NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=4 loops=1) Order By: (val <+> '{1:3,2:3,3:3}/3'::sparsevec) @@ -1382,7 +1382,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM sparsevec_table ORDER BY val <+> (SELECT CAST(NULL as sparsevec)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxsparsevec_table7f9bec28bc8902d45d905788d7aa59a1 on sparsevec_table (actual rows=4 loops=1) diff --git a/test/JDBC/expected/parallel_query/TestVectorDatatype.out b/test/JDBC/expected/parallel_query/TestVectorDatatype.out index 6f74160ba0f..ee396bd928d 100644 --- a/test/JDBC/expected/parallel_query/TestVectorDatatype.out +++ b/test/JDBC/expected/parallel_query/TestVectorDatatype.out @@ -401,7 +401,7 @@ text Query Text: SELECT * FROM vector_table WHERE val = '[1,2,3]' Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Only Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=1 loops=1) Index Cond: (val = '[1,2,3]'::vector) @@ -421,7 +421,7 @@ text Query Text: SELECT TOP 1 * FROM vector_table ORDER BY val Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=1 loops=1) -> Index Only Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=1 loops=1) @@ -478,7 +478,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <=> '[3,3,3]' NULLS LAST Gather (actual rows=2 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=2 loops=1) Order By: (val <=> '[3,3,3]'::vector) @@ -497,7 +497,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=2 loops=1) @@ -516,7 +516,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=2 loops=1) @@ -576,7 +576,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <#> '[3,3,3]' NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) Order By: (val <#> '[3,3,3]'::vector) @@ -595,7 +595,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -614,7 +614,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -674,7 +674,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <-> '[3,3,3]' NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) Order By: (val <-> '[3,3,3]'::vector) @@ -693,7 +693,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -712,7 +712,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -845,7 +845,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <=> '[3,3,3]' NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) Order By: (val <=> '[3,3,3]'::vector) @@ -864,7 +864,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -884,7 +884,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -950,7 +950,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <#> '[3,3,3]' NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idx2vector_table8408d573e4ed8cfc5bc30f15b5393f14 on vector_table (actual rows=4 loops=1) Order By: (val <#> '[3,3,3]'::vector) @@ -969,7 +969,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idx2vector_table8408d573e4ed8cfc5bc30f15b5393f14 on vector_table (actual rows=4 loops=1) @@ -989,7 +989,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idx2vector_table8408d573e4ed8cfc5bc30f15b5393f14 on vector_table (actual rows=4 loops=1) @@ -1055,7 +1055,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <-> '[3,3,3]' NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=4 loops=1) Order By: (val <-> '[3,3,3]'::vector) @@ -1074,7 +1074,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=4 loops=1) @@ -1094,7 +1094,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=4 loops=1) @@ -1375,7 +1375,7 @@ text Query Text: SELECT * FROM vector_table1 ORDER BY val <=> '[3,3,3]' NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table17f9bec28bc8902d45d905788d7aa59a1 on vector_table1 (actual rows=0 loops=1) Order By: (val <=> '[3,3,3]'::vector) @@ -1394,7 +1394,7 @@ text Query Text: SELECT t1.*, t2.* FROM vector_table1 as t1 JOIN vector_table2 as t2 ON t1.a = t2.a ORDER BY t1.val <=> '[0,0,0]' NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Nested Loop (actual rows=0 loops=1) Join Filter: (t1.a = t2.a) @@ -1417,19 +1417,15 @@ text Query Text: SELECT t1.* FROM vector_table1 as t1 JOIN vector_table2 as t2 ON t1.a = t2.a ORDER BY t1.val <=> '[0,0,0]', t2.val <=> '[1,1,1]' Gather Merge (actual rows=0 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Sort (actual rows=0 loops=4) + Workers Launched: 0 + -> Sort (actual rows=0 loops=1) Sort Key: ((t1.val <=> '[0,0,0]'::vector)) NULLS FIRST, ((t2.val <=> '[1,1,1]'::vector)) NULLS FIRST Sort Method: quicksort Memory: 25kB - Worker 0: Sort Method: quicksort Memory: 25kB - Worker 1: Sort Method: quicksort Memory: 25kB - Worker 2: Sort Method: quicksort Memory: 25kB - -> Parallel Hash Join (actual rows=0 loops=4) + -> Parallel Hash Join (actual rows=0 loops=1) Hash Cond: (t1.a = t2.a) - -> Parallel Seq Scan on vector_table1 t1 (never executed) - -> Parallel Hash (actual rows=0 loops=4) - Buckets: 2048 Batches: 1 Memory Usage: 0kB - -> Parallel Seq Scan on vector_table2 t2 (actual rows=0 loops=1) + -> Parallel Seq Scan on vector_table1 t1 (actual rows=0 loops=1) + -> Parallel Hash (never executed) + -> Parallel Seq Scan on vector_table2 t2 (never executed) ~~END~~ @@ -1444,7 +1440,7 @@ text Query Text: SELECT t1.* FROM vector_table1 as t1 JOIN table3 as t2 ON t1.a = t2.a ORDER BY val <=> '[0,0,0]' NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Nested Loop (actual rows=0 loops=1) Join Filter: (t1.a = t2.a) @@ -1466,16 +1462,16 @@ text Query Text: SELECT t1.* FROM vector_table1 as t1 JOIN table3 as t2 ON t1.a = t2.a ORDER BY val <=> '[0,0,0]', t2.a Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Sort (actual rows=0 loops=1) Sort Key: ((t1.val <=> '[0,0,0]'::vector)) NULLS FIRST, t1.a NULLS FIRST - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB -> Merge Join (actual rows=0 loops=1) Merge Cond: (t1.a = t2.a) -> Sort (actual rows=0 loops=1) Sort Key: t1.a - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB -> Seq Scan on vector_table1 t1 (actual rows=0 loops=1) -> Sort (never executed) Sort Key: t2.a @@ -2072,7 +2068,7 @@ text Query Text: SELECT * FROM vector_table WHERE val = '[1,2,3]' Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Only Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=1 loops=1) Index Cond: (val = '[1,2,3]'::vector) @@ -2092,7 +2088,7 @@ text Query Text: SELECT TOP 1 * FROM vector_table ORDER BY val Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Limit (actual rows=1 loops=1) -> Index Only Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=1 loops=1) @@ -2149,7 +2145,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <=> '[3,3,3]' NULLS LAST Gather (actual rows=2 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=2 loops=1) Order By: (val <=> '[3,3,3]'::vector) @@ -2168,7 +2164,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=2 loops=1) @@ -2187,7 +2183,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=2 loops=1) @@ -2247,7 +2243,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <#> '[3,3,3]' NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) Order By: (val <#> '[3,3,3]'::vector) @@ -2266,7 +2262,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -2285,7 +2281,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -2345,7 +2341,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <-> '[3,3,3]' NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) Order By: (val <-> '[3,3,3]'::vector) @@ -2364,7 +2360,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -2383,7 +2379,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -2516,7 +2512,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <=> '[3,3,3]' NULLS LAST Gather (actual rows=3 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) Order By: (val <=> '[3,3,3]'::vector) @@ -2535,7 +2531,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -2555,7 +2551,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <=> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=3 loops=1) @@ -2621,7 +2617,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <#> '[3,3,3]' NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idx2vector_table8408d573e4ed8cfc5bc30f15b5393f14 on vector_table (actual rows=4 loops=1) Order By: (val <#> '[3,3,3]'::vector) @@ -2640,7 +2636,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idx2vector_table8408d573e4ed8cfc5bc30f15b5393f14 on vector_table (actual rows=4 loops=1) @@ -2660,7 +2656,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <#> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idx2vector_table8408d573e4ed8cfc5bc30f15b5393f14 on vector_table (actual rows=4 loops=1) @@ -2726,7 +2722,7 @@ text Query Text: SELECT * FROM vector_table ORDER BY val <-> '[3,3,3]' NULLS LAST Gather (actual rows=4 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=4 loops=1) Order By: (val <-> '[3,3,3]'::vector) @@ -2745,7 +2741,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> '[0,0,0]' NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=4 loops=1) @@ -2765,7 +2761,7 @@ text Query Text: SELECT COUNT(*) FROM (SELECT * FROM vector_table ORDER BY val <-> (SELECT CAST(NULL as vector)) NULLS LAST) t2 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Aggregate (actual rows=1 loops=1) -> Index Scan using idxvector_table7f9bec28bc8902d45d905788d7aa59a1 on vector_table (actual rows=4 loops=1) @@ -3046,7 +3042,7 @@ text Query Text: SELECT * FROM vector_table1 ORDER BY val <=> '[3,3,3]' NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using idxvector_table17f9bec28bc8902d45d905788d7aa59a1 on vector_table1 (actual rows=0 loops=1) Order By: (val <=> '[3,3,3]'::vector) @@ -3065,7 +3061,7 @@ text Query Text: SELECT t1.*, t2.* FROM vector_table1 as t1 JOIN vector_table2 as t2 ON t1.a = t2.a ORDER BY t1.val <=> '[0,0,0]' NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Nested Loop (actual rows=0 loops=1) Join Filter: (t1.a = t2.a) @@ -3088,19 +3084,15 @@ text Query Text: SELECT t1.* FROM vector_table1 as t1 JOIN vector_table2 as t2 ON t1.a = t2.a ORDER BY t1.val <=> '[0,0,0]', t2.val <=> '[1,1,1]' Gather Merge (actual rows=0 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Sort (actual rows=0 loops=4) + Workers Launched: 0 + -> Sort (actual rows=0 loops=1) Sort Key: ((t1.val <=> '[0,0,0]'::vector)) NULLS FIRST, ((t2.val <=> '[1,1,1]'::vector)) NULLS FIRST Sort Method: quicksort Memory: 25kB - Worker 0: Sort Method: quicksort Memory: 25kB - Worker 1: Sort Method: quicksort Memory: 25kB - Worker 2: Sort Method: quicksort Memory: 25kB - -> Parallel Hash Join (actual rows=0 loops=4) + -> Parallel Hash Join (actual rows=0 loops=1) Hash Cond: (t1.a = t2.a) - -> Parallel Seq Scan on vector_table1 t1 (never executed) - -> Parallel Hash (actual rows=0 loops=4) - Buckets: 2048 Batches: 1 Memory Usage: 0kB - -> Parallel Seq Scan on vector_table2 t2 (actual rows=0 loops=1) + -> Parallel Seq Scan on vector_table1 t1 (actual rows=0 loops=1) + -> Parallel Hash (never executed) + -> Parallel Seq Scan on vector_table2 t2 (never executed) ~~END~~ @@ -3115,7 +3107,7 @@ text Query Text: SELECT t1.* FROM vector_table1 as t1 JOIN table3 as t2 ON t1.a = t2.a ORDER BY val <=> '[0,0,0]' NULLS LAST Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Nested Loop (actual rows=0 loops=1) Join Filter: (t1.a = t2.a) @@ -3137,16 +3129,16 @@ text Query Text: SELECT t1.* FROM vector_table1 as t1 JOIN table3 as t2 ON t1.a = t2.a ORDER BY val <=> '[0,0,0]', t2.a Gather (actual rows=0 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Sort (actual rows=0 loops=1) Sort Key: ((t1.val <=> '[0,0,0]'::vector)) NULLS FIRST, t1.a NULLS FIRST - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB -> Merge Join (actual rows=0 loops=1) Merge Cond: (t1.a = t2.a) -> Sort (actual rows=0 loops=1) Sort Key: t1.a - Worker 0: Sort Method: quicksort Memory: 25kB + Sort Method: quicksort Memory: 25kB -> Seq Scan on vector_table1 t1 (actual rows=0 loops=1) -> Sort (never executed) Sort Key: t2.a diff --git a/test/JDBC/expected/parallel_query/babel_collection.out b/test/JDBC/expected/parallel_query/babel_collection.out index 37712f8dde0..625126286ee 100644 --- a/test/JDBC/expected/parallel_query/babel_collection.out +++ b/test/JDBC/expected/parallel_query/babel_collection.out @@ -192,7 +192,7 @@ Gather (cost=11.40..24.02 rows=3 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 8.108 ms +Babelfish T-SQL Batch Parsing Time: 0.140 ms ~~END~~ @@ -210,7 +210,7 @@ Gather (cost=11.40..25.07 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.179 ms +Babelfish T-SQL Batch Parsing Time: 0.096 ms ~~END~~ @@ -228,7 +228,7 @@ Gather (cost=11.40..25.07 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.137 ms +Babelfish T-SQL Batch Parsing Time: 0.114 ms ~~END~~ @@ -246,7 +246,7 @@ Gather (cost=11.40..24.02 rows=5 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.131 ms +Babelfish T-SQL Batch Parsing Time: 0.092 ms ~~END~~ @@ -264,7 +264,7 @@ Gather (cost=11.41..24.03 rows=26 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.136 ms +Babelfish T-SQL Batch Parsing Time: 0.089 ms ~~END~~ @@ -283,7 +283,7 @@ Gather (cost=11.40..25.07 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.148 ms +Babelfish T-SQL Batch Parsing Time: 0.094 ms ~~END~~ select c1 from testing4 where c1 LIKE 'äb%'; @@ -300,7 +300,7 @@ Gather (cost=11.40..25.07 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.137 ms +Babelfish T-SQL Batch Parsing Time: 0.097 ms ~~END~~ select c1 from testing4 where c1 LIKE 'äḃĆ_'; @@ -317,7 +317,7 @@ Gather (cost=11.40..25.07 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.141 ms +Babelfish T-SQL Batch Parsing Time: 0.098 ms ~~END~~ @@ -336,7 +336,7 @@ Gather (cost=11.56..24.18 rows=647 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 1.528 ms +Babelfish T-SQL Batch Parsing Time: 0.100 ms ~~END~~ @@ -354,7 +354,7 @@ Gather (cost=11.56..25.23 rows=648 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.137 ms +Babelfish T-SQL Batch Parsing Time: 0.091 ms ~~END~~ @@ -372,7 +372,7 @@ Gather (cost=11.55..25.22 rows=592 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.141 ms +Babelfish T-SQL Batch Parsing Time: 0.131 ms ~~END~~ @@ -392,7 +392,7 @@ Gather (cost=11.40..25.07 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.151 ms +Babelfish T-SQL Batch Parsing Time: 0.098 ms ~~END~~ @@ -410,7 +410,7 @@ Gather (cost=11.40..25.07 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.128 ms +Babelfish T-SQL Batch Parsing Time: 0.092 ms ~~END~~ @@ -490,8 +490,8 @@ select * from p1 union all select * from p2; GO ~~START~~ nvarchar -äbĆD äƀCd +äbĆD ~~END~~ -- test case expression @@ -545,7 +545,7 @@ Gather (cost=10000000000.00..10000000027.00 rows=7 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.166 ms +Babelfish T-SQL Batch Parsing Time: 0.086 ms ~~END~~ SET babelfish_showplan_all OFF; @@ -589,7 +589,7 @@ Gather (cost=10000000000.00..10000000027.00 rows=7 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.148 ms +Babelfish T-SQL Batch Parsing Time: 0.082 ms ~~END~~ SET babelfish_showplan_all OFF; @@ -616,7 +616,7 @@ Gather (cost=0.00..0.00 rows=0 width=0) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.140 ms +Babelfish T-SQL Batch Parsing Time: 0.082 ms ~~END~~ SET babelfish_showplan_all OFF; @@ -646,7 +646,7 @@ Gather (cost=10000000000.00..10000000033.80 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.151 ms +Babelfish T-SQL Batch Parsing Time: 0.089 ms ~~END~~ SET babelfish_showplan_all OFF; @@ -675,7 +675,7 @@ Gather (cost=10000000000.00..10000000033.80 rows=1 width=32) ~~START~~ text -Babelfish T-SQL Batch Parsing Time: 0.163 ms +Babelfish T-SQL Batch Parsing Time: 0.089 ms ~~END~~ SET babelfish_showplan_all OFF; diff --git a/test/JDBC/expected/parallel_query/cast_eliminate-vu-verify.out b/test/JDBC/expected/parallel_query/cast_eliminate-vu-verify.out index 38b174bcbbc..d35812f6acb 100644 --- a/test/JDBC/expected/parallel_query/cast_eliminate-vu-verify.out +++ b/test/JDBC/expected/parallel_query/cast_eliminate-vu-verify.out @@ -340,12 +340,13 @@ text Query Text: SELECT * FROM cast_eliminate WHERE (CAST(CAST(ROID AS BIGINT) AS BIGINT) = 3 OR CAST(CAST(ROID AS INT) AS BIGINT) = 2147483647) AND CAST(CAST(s_int AS INT) AS BIGINT) != 32767 Gather (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Bitmap Heap Scan on cast_eliminate (actual rows=1 loops=1) Recheck Cond: ((roid = 3) OR (roid = 2147483647)) Filter: (((s_int)::integer)::bigint <> 32767) Rows Removed by Filter: 1 + Heap Blocks: exact=1 -> BitmapOr (actual rows=0 loops=1) -> Bitmap Index Scan on cast_eliminate_pkey (actual rows=1 loops=1) Index Cond: (roid = 3) @@ -366,10 +367,10 @@ text Query Text: SELECT * FROM cast_eliminate WHERE CAST(CAST(s_int AS INT) AS BIGINT) >= 2394 AND CAST(CAST(ROID AS BIGINT) AS SMALLINT) >= 3 Gather (actual rows=1 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on cast_eliminate (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on cast_eliminate (actual rows=1 loops=1) Filter: ((s_int >= 2394) AND (((roid)::bigint)::smallint >= 3)) - Rows Removed by Filter: 1 + Rows Removed by Filter: 4 ~~END~~ @@ -385,10 +386,10 @@ text Query Text: SELECT * FROM cast_eliminate WHERE -32768 = CAST(s_int AS INT) Gather (actual rows=1 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on cast_eliminate (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on cast_eliminate (actual rows=1 loops=1) Filter: ('-32768'::integer = s_int) - Rows Removed by Filter: 1 + Rows Removed by Filter: 4 ~~END~~ @@ -404,10 +405,10 @@ text Query Text: SELECT * FROM cast_eliminate WHERE -32768 = CAST(CAST(s_int AS INT) AS BIGINT) Gather (actual rows=1 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on cast_eliminate (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on cast_eliminate (actual rows=1 loops=1) Filter: ('-32768'::integer = s_int) - Rows Removed by Filter: 1 + Rows Removed by Filter: 4 ~~END~~ @@ -427,8 +428,8 @@ text Query Text: SELECT * FROM cast_eliminate WHERE -32768 < CAST(CAST(s_int AS INT) AS BIGINT) OR CAST(ROID AS BIGINT) = -2147483648 Gather (actual rows=5 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on cast_eliminate (actual rows=1 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on cast_eliminate (actual rows=5 loops=1) Filter: (('-32768'::integer < s_int) OR (roid = '-2147483648'::integer)) ~~END~~ @@ -444,10 +445,10 @@ text Query Text: SELECT * FROM cast_eliminate WHERE -9223372036854775808 = CAST(s_int AS BIGINT) Gather (actual rows=0 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on cast_eliminate (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on cast_eliminate (actual rows=0 loops=1) Filter: ('-9223372036854775808'::bigint = s_int) - Rows Removed by Filter: 1 + Rows Removed by Filter: 5 ~~END~~ diff --git a/test/JDBC/expected/parallel_query/charindex_replace_patindex-vu-verify.out b/test/JDBC/expected/parallel_query/charindex_replace_patindex-vu-verify.out index 1dbbd9f011b..a2c317fbba4 100644 --- a/test/JDBC/expected/parallel_query/charindex_replace_patindex-vu-verify.out +++ b/test/JDBC/expected/parallel_query/charindex_replace_patindex-vu-verify.out @@ -170,7 +170,7 @@ text Query Text: SELECT * FROM babel_5144_t1 WHERE [replaced] = sys.replace('abc?è?ÈdedEDEabcd', 'de', '##') Gather (actual rows=2 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_5144_idx1babel_5144_t145234637e3ecc830cb4dde1fe866640f on babel_5144_t1 (actual rows=2 loops=1) Index Cond: ((replaced)::"varchar" = 'abc?è?È######abcd'::"varchar") @@ -221,7 +221,7 @@ text Query Text: SELECT * FROM babel_5144_t3 WHERE [replaced] = sys.replace('abc?è?ÈdedEDEabcd', 'de', '##') Gather (actual rows=2 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Index Scan using babel_5144_idx3babel_5144_t313c3a4389779eae0c4b18abc08f95caa on babel_5144_t3 (actual rows=2 loops=1) Index Cond: ((replaced)::"varchar" = 'abc?è?È######abcd'::"varchar") diff --git a/test/JDBC/expected/parallel_query/test_dynamic_local_vars.out b/test/JDBC/expected/parallel_query/test_dynamic_local_vars.out index 1c3c7a78ab3..6eb4ca80338 100644 --- a/test/JDBC/expected/parallel_query/test_dynamic_local_vars.out +++ b/test/JDBC/expected/parallel_query/test_dynamic_local_vars.out @@ -1351,7 +1351,7 @@ text Query Text: select "@i", "@j" Gather (cost=0.00..0.01 rows=1 width=8) (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Result (cost=0.00..0.01 rows=1 width=8) (actual rows=1 loops=1) ~~END~~ @@ -1379,7 +1379,7 @@ text Query Text: select "@i" Gather (cost=0.00..0.01 rows=1 width=4) (actual rows=1 loops=1) Workers Planned: 1 - Workers Launched: 1 + Workers Launched: 0 Single Copy: true -> Result (cost=0.00..0.01 rows=1 width=4) (actual rows=1 loops=1) ~~END~~ @@ -1536,8 +1536,8 @@ text Query Text: select * from local_var_tst where id = "@a" Gather (cost=0.00..20.28 rows=13 width=4) (actual rows=1 loops=1) Workers Planned: 3 - Workers Launched: 3 - -> Parallel Seq Scan on local_var_tst (cost=0.00..20.28 rows=4 width=4) (actual rows=0 loops=4) + Workers Launched: 0 + -> Parallel Seq Scan on local_var_tst (cost=0.00..20.28 rows=4 width=4) (actual rows=1 loops=1) Filter: (id = 1) ~~END~~ diff --git a/test/JDBC/input/BABEL-2998.mix b/test/JDBC/input/BABEL-2998.mix index 9420ce93d2c..4c784fd0019 100644 --- a/test/JDBC/input/BABEL-2998.mix +++ b/test/JDBC/input/BABEL-2998.mix @@ -3,35 +3,41 @@ SELECT CAST('1' AS CHAR(10)) AS Col1 UNION SELECT NULL AS Col1 +ORDER BY Col1 GO SELECT CAST('1' AS CHAR(10)) AS Col1 UNION ALL SELECT NULL AS Col1 GROUP BY Col1 +ORDER BY Col1 GO -- taking suggestion from above error, added explicit CAST and CONVERT SELECT CAST('1' AS CHAR(10)) AS Col1 UNION SELECT CAST(NULL AS CHAR(10)) AS Col1 +ORDER BY Col1 GO SELECT CAST('1' AS CHAR(10)) AS Col1 UNION ALL SELECT CONVERT(CHAR(10), NULL) AS Col1 GROUP BY Col1 +ORDER BY Col1 GO SELECT CAST('1' AS CHAR(10)) AS Col1 UNION ALL SELECT CAST(NULL AS CHAR(10)) AS Col1 GROUP BY Col1 +ORDER BY Col1 GO SELECT CAST('1' AS CHAR(10)) AS Col1 UNION SELECT CONVERT(CHAR(10), NULL) AS Col1 +ORDER BY Col1 GO -- psql diff --git a/test/JDBC/input/BABEL-LIKE2ILIKE.sql b/test/JDBC/input/BABEL-LIKE2ILIKE.sql index fe6dd65418f..c59d7ad29f4 100644 --- a/test/JDBC/input/BABEL-LIKE2ILIKE.sql +++ b/test/JDBC/input/BABEL-LIKE2ILIKE.sql @@ -58,6 +58,7 @@ GO with p1 as (select c1 from like_tesing1 where c1 LIKE '__Ć_'), p2 as (select c3 from like_tesing1 where c3 LIKE 'äƀ__') select * from p1 union all select * from p2 +order by 1 GO -- test case expression select c1,(case when c1 LIKE 'j%' then 1 when c1 NOT LIKE 'j%' then 2 end) from like_tesing1 diff --git a/test/JDBC/upgrade/16_7/schedule b/test/JDBC/upgrade/16_7/schedule index b032220bb28..dea5841160c 100644 --- a/test/JDBC/upgrade/16_7/schedule +++ b/test/JDBC/upgrade/16_7/schedule @@ -602,4 +602,4 @@ db_owner BABEL-5031 test_conv_money_to_varchar fixeddecimal_modulo -test_conv_float_to_varchar_char_before_17_3 +test_conv_float_to_varchar_char