-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Move PartitionSearchMode
into datafusion_physical_plan, rename to InputOrderMode
#8364
Conversation
/// (The vector stores the index of `a` in the respective PARTITION BY expression.) | ||
/// - A `PARTITION BY a, b` or a `PARTITION BY b, a` can use `Sorted` mode. | ||
/// | ||
/// ## Aggregations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought making the GROUP BY
correspondence made this example clearer, even though there is non trivial redundancy
/// Note these are the same examples as above, but with `GROUP BY` instead of | ||
/// `PARTITION BY` to make the examples easier to read. | ||
#[derive(Debug, Clone, PartialEq)] | ||
pub enum PartitionSearchMode { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to rename this to something related to ordering rather than Partitioning if possible. Maybe InputOrder
or InputOrderMode
🤔
Maybe @ozankabak has some thoughts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like InputOrderMode
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in 4f4120e
PartitionSearchMode
into datafusion_physical_planPartitionSearchMode
into datafusion_physical_plan, rename to InputOrderMode
PartitionSearchMode
into datafusion_physical_plan, rename to InputOrderMode
PartitionSearchMode
into datafusion_physical_plan, rename to InputOrderMode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
…InputOrderMode` (apache#8364) * Move PartitionSearchMode into datafusion_physical_plan * Improve comments * Rename to InputOrderMode * Update prost
Which issue does this PR close?
N/A
Rationale for this change
It has bothered since it was introduced in #8006 that the AggregateExec uses something from the window exec module
What is really happening is that they both are being told how the input is ordered relative to important columns (e.g. partitioning or grouping).
For example, the
ordering_mode
in this output:Is actually the result of the
PartitionSearchMode
What changes are included in this PR?
PartitionSearchMode
into its own moduleInputOrderMode
I would also like to propose renaming the structure to something that doesn't have the word Partitioning in it(Update: renamed toInputOrderMode
)Are these changes tested?
Are there any user-facing changes?
use
path forPartitionSearchMode