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

Implement trait based API for defining WindowUDF #8719

Merged
merged 4 commits into from
Jan 3, 2024
Merged

Conversation

guojidan
Copy link
Contributor

@guojidan guojidan commented Jan 2, 2024

Which issue does this PR close?

Closes #8711 .

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Jan 2, 2024
@guojidan guojidan marked this pull request as draft January 2, 2024 08:10
@guojidan guojidan marked this pull request as ready for review January 2, 2024 11:59
@github-actions github-actions bot added the core Core DataFusion crate label Jan 2, 2024
@guojidan
Copy link
Contributor Author

guojidan commented Jan 2, 2024

cc @alamb

@alamb
Copy link
Contributor

alamb commented Jan 2, 2024

Thank you @guojidan -- I plan to review this carefully later today

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Wow @guojidan -- 👏 this is a really nice inital PR

I had one very small suggestion related to naming

I'll also file follow on tickets for similar cleanups as we did for ScalarFunctions (namely implement WindowUDF in terms of the trait)

But again, thank you for this PR

datafusion/expr/src/udwf.rs Outdated Show resolved Hide resolved
datafusion-examples/examples/advanced_udwf.rs Outdated Show resolved Hide resolved
@guojidan
Copy link
Contributor Author

guojidan commented Jan 3, 2024

@alamb Thank you for your affirmation, it gives me confidence to continue contributing this repository : )

I have modified the code according to your suggestion.

@alamb
Copy link
Contributor

alamb commented Jan 3, 2024

Filed #8734 as a follow on

@alamb alamb merged commit 6b1e9c6 into apache:main Jan 3, 2024
23 checks passed
@guojidan guojidan deleted the udwf branch January 4, 2024 07:00
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement trait based API for defining WindowUDF
2 participants