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

Rename BuiltInWindow* to StandardWindow* #13536

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

irenjj
Copy link
Contributor

@irenjj irenjj commented Nov 23, 2024

Which issue does this PR close?

Part of #13473

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 physical-expr Physical Expressions proto Related to proto crate labels Nov 23, 2024
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.

Thank you @irenjj -- this is looking close. I have a few suggestions. Let me know what you think

pub use sliding_aggregate::SlidingAggregateWindowExpr;
pub use udf::UDFWindowExpr;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add a "backwards compatible typedef" here to help people upgrading who might have code that refers to BuiltInWindowExpr and BuiltInWindowFunctionExpr?

For example

#[deprecated(since = "43.0.0", note = "use &LexOrdering instead")]
pub type LexOrderingRef<'a> = &'a [PhysicalSortExpr];

Something like

 #[deprecated(since = "44.0.0", note = "use UDFWindowExpr")] 
 pub type BuiltInWindowExpr = UDFWindowExpr;

 #[deprecated(since = "44.0.0", note = "use UDFWindowFunctionExpr")] 
 pub type BuiltInWindowFunctionExpr = UDFWindowFunctionExpr;

mod sliding_aggregate;
mod udf;
Copy link
Contributor

Choose a reason for hiding this comment

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

It is somewhat strange that we now have "UD ..." for user defined window functions as everything is a user defined window function.

Maybe we could use the names StandardWindowExpr and StandardWindowFunctionExpr instead

I think WindowExpr can be either an aggregate (like sum) or one of these standard window exprs (first_value, etc)

@alamb alamb changed the title Rename BuiltInWindow* to UDFWindow* Rename BuiltInWindow* to StandardWindow* Nov 24, 2024
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.

Looks great to me -- thank you @irenjj

@alamb alamb merged commit 7553b3b into apache:main Nov 25, 2024
26 checks passed
@irenjj irenjj deleted the simplify_buildin_window branch November 26, 2024 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions proto Related to proto crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants