Is your feature request related to a problem or challenge?
Related to #9846
In #9846 there is a couple of tasks to fix the correctness issues for SortMergeJoin with filter clause
As reported in apache/datafusion-comet#1211 (comment) the execution produces a lot of small/empty batches
Describe the solution you'd like
Concat small batches and produces batches equal or near equal to batch_size
Describe alternatives you've considered
No response
Additional context
No response