Skip to content

Add statistics_by_partition API to ExecutionPlan #15495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #6672 ...
xudong963 opened this issue Mar 30, 2025 · 1 comment · Fixed by #15852
Closed
Tracked by #6672 ...

Add statistics_by_partition API to ExecutionPlan #15495

xudong963 opened this issue Mar 30, 2025 · 1 comment · Fixed by #15852
Assignees
Labels
enhancement New feature or request

Comments

@xudong963
Copy link
Member

xudong963 commented Mar 30, 2025

After #15432 is merged, we'll have partition-level statistics in DataSource.

To make it be used by query optimization, we should flow the info to other nodes, such as SPM, union, etc, so we can add the statistics_by_partition API to ExecutionPlan to implement the idea.

@alamb
Copy link
Contributor

alamb commented Apr 1, 2025

For anyone else following along, this is part of work to optimize ORDER by queries with pre-sorted data

Specifically I believe it is a pre-requisite for determining non overlapping key ranges;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants