You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shared scan needs its locus type and parallel number to be
explicitly set when `gp_cte_sharing` is used, even without
parallelism. Failing to do so resulted in an incorrect NULL locus
appearing in the query plan.
Fix#1376
Authored-by: Zhang Mingli avamingli@gmail.com
Copy file name to clipboardExpand all lines: src/test/regress/expected/cbdb_parallel.out
+53-1Lines changed: 53 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3516,7 +3516,59 @@ WHERE e.salary > (
3516
3516
David
3517
3517
(2 rows)
3518
3518
3519
-
3519
+
--
3520
+
-- Test https://github.com/apache/cloudberry/issues/1376
3521
+
--
3522
+
create table t1(a int, b int);
3523
+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'a' as the Apache Cloudberry data distribution key for this table.
3524
+
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
3525
+
create table t2 (like t1);
3526
+
NOTICE: table doesn't have 'DISTRIBUTED BY' clause, defaulting to distribution columns from LIKE table
3527
+
set gp_cte_sharing = on;
3528
+
explain(locus, costs off) with x as
3529
+
(select a, count(*) as b from t1 group by a union all
0 commit comments