Alena0704 commented on code in PR #1719:
URL: https://github.com/apache/cloudberry/pull/1719#discussion_r3206583270


##########
src/test/regress/sql/shared_scan.sql:
##########
@@ -120,3 +120,28 @@ where
        (data_hour = date_trunc('day',data_hour) and stat.schema_name || '.' 
||stat.table_name not in (select table_nm_23 from tbls_daily_report_23))
        and (stat.schema_name || '.' ||stat.table_name not in (select 
table_nm_onl_act from tbls_w_onl_actl_data))
        or (stat.schema_name || '.' ||stat.table_name in (select 
table_nm_onl_act from tbls_w_onl_actl_data));
+
+-- ORCA should fallback when a CTE over a replicated table is referenced
+-- from multiple scalar subqueries.
+-- ss_t1 needs enough rows (40000) to push ORCA to the cross-slice plan;
+-- with fewer rows the bug does not manifest and the test would silently
+-- pass even without the fix.
+CREATE TABLE ss_t1 AS
+  SELECT generate_series(1, 40000) id
+  DISTRIBUTED BY (id);
+CREATE TABLE ss_t2 AS
+  SELECT * FROM (VALUES (1, 10), (2, 20)) AS v(id, v)
+  DISTRIBUTED REPLICATED;

Review Comment:
   Added it with ignore. see the last commit



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to