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

wip: converting rank builtin function to UDWF #12718

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jatin510
Copy link

@jatin510 jatin510 commented Oct 2, 2024

Which issue does this PR close?

#12648

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@jatin510 jatin510 marked this pull request as draft October 2, 2024 12:43
@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Physical Expressions core Core DataFusion crate proto Related to proto crate labels Oct 2, 2024
@@ -508,6 +508,9 @@ message ScalarUDFExprNode {
enum BuiltInWindowFunction {
UNSPECIFIED = 0; // https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum
// ROW_NUMBER = 0;
// TODO
// if i will remove this
// should i renumber all variables?
RANK = 1;
Copy link
Author

Choose a reason for hiding this comment

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

@jcsherin how to handle this ?
I want to remove rank, percent_rank and dense_rank from here ?

Copy link
Contributor

Choose a reason for hiding this comment

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

You just need to comment out the lines (not remove them):

enum BuiltInWindowFunction {
  UNSPECIFIED = 0; // https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum
  // ROW_NUMBER = 0;
  // RANK = 1;
  // DENSE_RANK = 2;
  // PERCENT_RANK = 3;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions physical-expr Physical Expressions proto Related to proto crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants