Uh oh!
There was an error while loading. Please reload this page.
Remove BuiltInWindowFunction (LogicalPlans) - #13393
Conversation
alamb
commented
Nov 13, 2024
There are actually several related "BuiltInWindowExpr" in physical-expr that need to be cleaned up as well (that are no longer related to BuiltInWindowExprs). We may also be able to remove a level of trait. |
e6bb4c5 to
a300ee5CompareBuiltInWindowFunctionBuiltInWindowFunction (LogicalPlans)jonathanc-n
commented
Nov 13, 2024
@alamb@buraksenn@Omega359 Pretty sure we can now clean up the old window docs, due to the nth_value migration being merged. Lemme see if I can do that really quick |
alamb
commented
Nov 13, 2024
Yes, we can -- I think that is tracked by |
| /// | ||
| /// In SQL, you can use: | ||
| /// - Actual window functions ([`WindowUDF`]) | ||
| /// - Noraml aggregate functions ([`AggregateUDF`]) |
jcsherin
commented
Nov 14, 2024
LGTM 👍. Thanks @alamb |
| /// Logical representation of a user-defined window function (UDWF) | ||
| /// A UDWF is different from a UDF in that it is stateful across batches. | ||
| /// Logical representation of a user-defined window function (UDWF). |
There was a problem hiding this comment.
I also threw in some drive by documentation improvements to sweeten the deal 🍯
| aggregate, | ||
| ) | ||
| } | ||
| // TODO: Ordering not supported for Window UDFs yet |
There was a problem hiding this comment.
ORDER BY is already supported as the order_by clause is passed to window_expr_from_aggregate_expr
| /// | ||
| /// In SQL, you can use: | ||
| /// - Actual window functions ([`WindowUDF`]) | ||
| /// - Noraml aggregate functions ([`AggregateUDF`]) |
alamb
commented
Nov 15, 2024
Thanks @crepererum and @jcsherin for the reviews |
* Remove BuiltInWindowFunction * fix docs * Fix typo (cherry picked from commit 75a27a8)
* Remove BuiltInWindowFunction * fix docs * Fix typo (cherry picked from commit 75a27a8)
Which issue does this PR close?
WindowFunctionInterface (remove built in list ofBuiltInWindowFunctions) #8709 🎉!!!nth_valuebuiltIn function to User Defined Window Function #13201Rationale for this change
@buraksen and @jcsherin ported the last window function over, so now we can remove the old BuiltInWindowFunction code
This was so tempting a cleanup that I had to give it a try (and I wanted to do some coding)
What changes are included in this PR?
Changes:
BuiltInWindowFunctionBuiltInWindowFunctionDefinition::BuiltInWindowFunctionAre these changes tested?
Yes, by existing CI