alamb commented on a change in pull request #571:
URL: https://github.com/apache/arrow-datafusion/pull/571#discussion_r657993627



##########
File path: datafusion/src/physical_plan/planner.rs
##########
@@ -263,11 +264,56 @@ impl DefaultPhysicalPlanner {
                         "Impossibly got empty window expression".to_owned(),
                     ));
                 }
+                let get_sort_keys = |expr: &Expr| match expr {
+                    Expr::WindowFunction {
+                        ref partition_by,
+                        ref order_by,
+                        ..
+                    } => generate_sort_key(partition_by, order_by),
+                    _ => unreachable!(),
+                };
+
+                let sort_keys = get_sort_keys(&window_expr[0]);
+                if window_expr.len() > 1 {
+                    debug_assert!(

Review comment:
       👍 




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to