Skip to content

[Tech Request]: refactoring shuffle plan #20560

Open

Description

@badboynt1

Is there an existing issue for the same tech request?

  • I have checked the existing issues.

Does this tech request not affect user experience?

  • This tech request doesn't affect user experience.

What would you like to be added ?

重构shuffle执行计划,去掉pipeline break,去掉冗余的tcp连接。 支持runtime filter,支持scan算子做shuffle,以及优化tpch q18不用spill直接跑10T

Why is this needed ?

No response

Additional information

No response

Activity

  1. added
    kind/tech-request
    on Dec 4, 2024
  2. self-assigned this
    on Dec 4, 2024
  3. added
    priority/p0
    on Dec 20, 2024
  4. added theissue type on Apr 27, 2025
  5. added this to the 2506 milestone on Apr 27, 2025
  6. modified the milestones: MO-2506, MO-2508 on Jul 17, 2025
  7. modified the milestones: MO-2508, MO-202603 on Feb 3, 2026
  8. XuPeng-SH commented on Jul 24, 2026

    @XuPeng-SH
    Contributor

    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:

    1. preserve the canonical Q18 result and SEMI-join semantics;
    2. reduce peak memory of the 15M-group aggregate substantially at SF10;
    3. add SF100/SF1000 validation showing bounded memory/spill depth;
    4. evaluate streaming/sort-aware aggregation when input ordering permits, or a spillable partitioned aggregation path that does not retain all order groups concurrently.
  9. modified the milestones: MO-202603, MO-202607 on Jul 24, 2026
  10. added
    severity/s0
    on Jul 24, 2026
  11. assigned and unassigned on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/tech-requestpriority/p0severity/s0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions