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
kind/tech-requestNew feature or requestpriority/p0Critical feature that should be implemented in this versionseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Fresh Q18 evidence from a local standalone SF10 run on commit 9c2e84ad5c (2026-07-24):
canonical Q18 completes successfully and is fast in hot cache (~0.43-0.54 s), so this is not currently a correctness failure at SF10;
the subquery aggregate scans all 59,986,052 lineitem rows;
it groups by l_orderkey into 15,000,000 groups before HAVING sum(l_quantity) > 300 reduces the result to 84 orders;
EXPLAIN ANALYZE reports about 4.0-5.0 s cumulative aggregate operator time and approximately 1.09 GiB aggregate memory at SF10;
downstream work is already efficient: runtime filters reduce the orders side to 84 rows and the second lineitem access to 588 rows.
This local plan confirms that the main remaining Q18 scalability risk is the high-cardinality GROUP BY l_orderkey, not the downstream SEMI join. At SF100/SF1000 the group cardinality and hash state grow proportionally, consistent with the historical Q18 spill/OOM reports (#24836, #24327).
Suggested acceptance criteria for the shuffle-plan/aggregation work:
preserve the canonical Q18 result and SEMI-join semantics;
reduce peak memory of the 15M-group aggregate substantially at SF10;
evaluate streaming/sort-aware aggregation when input ordering permits, or a spillable partitioned aggregation path that does not retain all order groups concurrently.
kind/tech-requestNew feature or requestpriority/p0Critical feature that should be implemented in this versionseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Activity
XuPeng-SH commentedon Jul 24, 2026
Fresh Q18 evidence from a local standalone SF10 run on commit
9c2e84ad5c(2026-07-24):lineitemrows;l_orderkeyinto 15,000,000 groups beforeHAVING sum(l_quantity) > 300reduces the result to 84 orders;EXPLAIN ANALYZEreports about 4.0-5.0 s cumulative aggregate operator time and approximately 1.09 GiB aggregate memory at SF10;This local plan confirms that the main remaining Q18 scalability risk is the high-cardinality
GROUP BY l_orderkey, not the downstream SEMI join. At SF100/SF1000 the group cardinality and hash state grow proportionally, consistent with the historical Q18 spill/OOM reports (#24836, #24327).Suggested acceptance criteria for the shuffle-plan/aggregation work: