Repository navigation
Commit a203cf2
committed
fix: keep volatile filters above aggregates
Evaluate volatile predicates once per group so filtering cannot change
the number of input rows counted within a group.
CLOSES apache#270741 parent a616831 commit a203cf2
2 files changed
Lines changed: 21 additions & 4 deletions
File tree
- datafusion
- optimizer/src
- sqllogictest/test_files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1136 | 1138 | | |
1137 | 1139 | | |
1138 | 1140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
720 | 738 | | |
721 | 739 | | |
722 | 740 | | |
723 | 741 | | |
724 | 742 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | 743 | | |
729 | 744 | | |
730 | 745 | | |
| |||
0 commit comments