alamb commented on code in PR #24118:
URL: https://github.com/apache/datafusion/pull/24118#discussion_r3770470094
##########
datafusion/physical-expr/src/window/window_expr.rs:
##########
@@ -610,9 +610,16 @@ pub(crate) fn get_orderby_values(order_by_columns:
Vec<SortColumn>) -> Vec<Array
order_by_columns.into_iter().map(|s| s.values).collect()
}
+/// State for incrementally evaluating a window function
+/// within a partition, created by [`WindowExpr::create_window_fn`].
#[derive(Debug)]
pub enum WindowFn {
+ /// A "normal" window function, such as `lead` or `lag`, evaluated via a
+ /// [`PartitionEvaluator`]. Despite the name, it is used for all window
+ /// function that is not an aggregate function.
Review Comment:
Great idea -- done in 00cfe5b83d809474c3619b1127755bb7174c004e
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]