Skip to content
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

test: add more test cases to demonstrate handling of heterogeneous constants #14923

Closed

Conversation

wiedld
Copy link
Contributor

@wiedld wiedld commented Feb 28, 2025

Which issue does this PR close?

Based upon a discussion we were having in another PR, about how the output ordering is handled from heterogeneous constants. In summary, it's not about the partitioning of the input, instead its about whatever in the sort input considers constant.

Additionally, the EquivalenceProperties::with_reorder always treats all constants (regardless of heterogeneous or uniform) as to be removed from the sort order. This means that if a physical plan node uses this method to construct the ordering, (as does the sort exec), it will remove both types of constants. I added a test case to make this explicit that this is desired behavior.

Rationale for this change

Since there was some discussion on the other PR, perhaps we should add more test cases to make the desired behavior explicit?

What changes are included in this PR?

Added test cases.

Are these changes tested?

yes

Are there any user-facing changes?

no

@wiedld
Copy link
Contributor Author

wiedld commented Feb 28, 2025

Closing. This was about my learning, and demonstrating for a convo on another PR.

@wiedld wiedld closed this Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Changes to the physical-expr crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant