alamb commented on code in PR #4043: URL: https://github.com/apache/arrow-datafusion/pull/4043#discussion_r1014228851
########## datafusion/core/src/physical_plan/windows/window_agg_exec.rs: ########## @@ -119,22 +129,25 @@ impl ExecutionPlan for WindowAggExec { true } - fn relies_on_input_order(&self) -> bool { - true + fn required_input_ordering(&self) -> Vec<Option<&[PhysicalSortExpr]>> { + let sort_keys = self.sort_keys.as_deref(); + vec![sort_keys] } - fn required_child_distribution(&self) -> Distribution { - if self - .window_expr() - .iter() - .all(|expr| expr.partition_by().is_empty()) - { - Distribution::SinglePartition + fn required_input_distribution(&self) -> Vec<Distribution> { + if self.partition_keys.is_empty() { + warn!("No partition defined for WindowAggExec!!!"); Review Comment: I would recommend removing the warning because it isn't clear to me what a user / administrator of the system would do in this case and so the warning will end up as spam in the logs I think. Perhaps we can just change it to `debug!` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org