- Notifications
You must be signed in to change notification settings - Fork5
Commit6d85bb1
committed
Correctly set up aggregate FILTER expression in partial-aggregation plans.
The aggfilter expression should be removed from the parent (combining)Aggref, since it's not supposed to apply the filter, and indeed cannotbecause any Vars used in the filter would not be available after thelower-level aggregation step. Per report from Jeff Janes.(This has been broken since the introduction of partial aggregation,I think. The error became obvious after commit59a3795, when setrefs.cbegan processing the parent Aggref's fields normally and thus would detectsuch Vars. The special-case coding previously used in setrefs.c skippedover the parent's aggfilter field without processing it. That was brokenin its own way because no other setrefs.c processing got applied either;though since the executor would not execute the filter expression, onlyinitialize it, that oversight might not have had any visible symptoms atpresent.)Report: <CAMkU=1xfuPf2edAe4ZGXTmJpU7jxuKukKyvNtEXwu35B7dvejg@mail.gmail.com>1 parent9d7abca commit6d85bb1
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1752 | 1752 |
| |
1753 | 1753 |
| |
1754 | 1754 |
| |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1755 | 1759 |
| |
1756 | 1760 |
| |
1757 | 1761 |
| |
| |||
1762 | 1766 |
| |
1763 | 1767 |
| |
1764 | 1768 |
| |
1765 |
| - | |
1766 |
| - | |
1767 |
| - | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
1768 | 1774 |
| |
1769 | 1775 |
| |
| 1776 | + | |
1770 | 1777 |
| |
1771 | 1778 |
| |
| 1779 | + | |
1772 | 1780 |
| |
1773 | 1781 |
| |
1774 | 1782 |
| |
|
0 commit comments
Comments
(0)