Dandandan commented on code in PR #17528: URL: https://github.com/apache/datafusion/pull/17528#discussion_r2346847161
########## datafusion/expr/src/window_state.rs: ########## @@ -90,7 +90,12 @@ impl WindowAggState { partition_batch_state: &PartitionBatchState, ) -> Result<()> { self.last_calculated_index += out_col.len(); - self.out_col = concat(&[&self.out_col, &out_col])?; + // no need to use concat if the current `out_col` is empty Review Comment: Is this not something already done in `concat`? (At least it would make sense to have this optimization there if not already). -- 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...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org