Ted-Jiang commented on a change in pull request #1459:
URL: https://github.com/apache/arrow-datafusion/pull/1459#discussion_r771559378
##########
File path: datafusion/src/physical_plan/repartition.rs
##########
@@ -326,6 +326,11 @@ impl RepartitionExec {
Partitioning::Hash(exprs, _) => {
let timer = r_metrics.repart_time.timer();
let input_batch = result?;
+ //avoid send empty batch to next plan
+ if input_batch.num_rows() == 0 {
Review comment:
it was my mistake. Thanks a lot for your advice! It's more reasonable
for add check in the generate side 😂
--
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]