comphead commented on code in PR #15768: URL: https://github.com/apache/datafusion/pull/15768#discussion_r2063914703
########## datafusion/physical-plan/src/repartition/mod.rs: ########## @@ -260,33 +260,43 @@ impl BatchPartitioner { } => { let idx = *next_idx; *next_idx = (*next_idx + 1) % *num_partitions; - Box::new(std::iter::once(Ok((idx, batch)))) + assert_eq!(batches.len(), 1); Review Comment: Thanks @Dandandan what I mean do we really need a vector of batches as input if there is only 1 batch always ? -- 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