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

Minor: Move include_rank into BuiltInWindowFunctionExpr #6620

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jun 9, 2023

Which issue does this PR close?

Related to #5781

Rationale for this change

BuiltInWindowFunctionExpr already contains several methods that describe how to call the corresponding PartitionEvaluator such as supports_bounded_execution.

The include_rank function similarly controls how the PartitionEvaluator is called, and therefore I think makes more sense to include on BuiltInWindowFunctionExpr as well

As we contemplate exposing BuiltInWindowFunctionExpr and PartitionEvaluator to implement window functions, making sure the interface is consistent I think is valuable

What changes are included in this PR?

  1. Move include_rank into BuiltInWindowFunctionExpr

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

@alamb alamb marked this pull request as draft June 9, 2023 20:11
@github-actions github-actions bot added the physical-expr Physical Expressions label Jun 9, 2023
@alamb alamb marked this pull request as ready for review June 9, 2023 21:49
@alamb alamb requested a review from mustafasrepo June 9, 2023 21:50
Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alamb . It is LGTM!.

@alamb alamb merged commit d584d55 into apache:main Jun 12, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants