Commit 65bd13d
authored
Coalesce batches inside FilterExec (#18604)
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes #123` indicates that this PR will close issue #123.
-->
- Closes: #18606
- Relates to: #7001
## Rationale for this change
Moe coalesce batches inside filter exec. We can use `BatchCoalescer
::push_batch_with_filter` which should give a speed up compared to
filtering individual batches + concatenating afterwards.
<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->
## What changes are included in this PR?
Changes the FilterExec to coalesce batches inside.
I did not make a change to remove CoalesceBatchesExec from all the
plans, I plan to create an issue and a PR after this is merged to do so.
Now it should be mostly a no-op with limited overhead as input batches
are already well-sized.
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
## Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->1 parent cbf3f50 commit 65bd13d
File tree
2 files changed
+77
-25
lines changed- datafusion
- core/src
- physical-plan/src
2 files changed
+77
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
853 | 853 | | |
854 | 854 | | |
855 | 855 | | |
| 856 | + | |
856 | 857 | | |
857 | 858 | | |
858 | 859 | | |
| |||
871 | 872 | | |
872 | 873 | | |
873 | 874 | | |
| 875 | + | |
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
158 | 175 | | |
159 | 176 | | |
160 | 177 | | |
| |||
392 | 409 | | |
393 | 410 | | |
394 | 411 | | |
| 412 | + | |
| 413 | + | |
395 | 414 | | |
396 | 415 | | |
397 | 416 | | |
| |||
549 | 568 | | |
550 | 569 | | |
551 | 570 | | |
| 571 | + | |
552 | 572 | | |
553 | 573 | | |
554 | 574 | | |
| |||
627 | 647 | | |
628 | 648 | | |
629 | 649 | | |
| 650 | + | |
| 651 | + | |
630 | 652 | | |
631 | 653 | | |
632 | 654 | | |
| |||
652 | 674 | | |
653 | 675 | | |
654 | 676 | | |
655 | | - | |
| 677 | + | |
656 | 678 | | |
657 | 679 | | |
658 | 680 | | |
659 | 681 | | |
660 | 682 | | |
661 | 683 | | |
662 | | - | |
663 | 684 | | |
664 | 685 | | |
665 | 686 | | |
| |||
669 | 690 | | |
670 | 691 | | |
671 | 692 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 693 | + | |
680 | 694 | | |
681 | 695 | | |
682 | 696 | | |
| |||
696 | 710 | | |
697 | 711 | | |
698 | 712 | | |
| 713 | + | |
699 | 714 | | |
700 | 715 | | |
701 | 716 | | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
710 | 745 | | |
711 | | - | |
712 | | - | |
| 746 | + | |
713 | 747 | | |
714 | | - | |
715 | | - | |
716 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
717 | 768 | | |
718 | | - | |
719 | 769 | | |
720 | 770 | | |
721 | 771 | | |
| |||
0 commit comments