Repository navigation
Cherry pick #125463 to 26.9: Revert "Push filters below WindowStep on PARTITION BY columns" - #125586
Conversation
This reverts commit 338b873 (#110114), reversing changes made to 662a0a0. A filter pushed below the window can reach the probe side of a hash join, which is read only after the build side, so an always-false filter such as IN over an empty subquery no longer stops the query before the build (#123875). Conflict resolution: #122975 later changed the reverted branch; the whole branch is removed, its other call sites and its test stay. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both queries of #123875 must stop before the LEFT JOIN below the window reads its right side, which throws if it is read. They fail on master (the filter is pushed below the window to the join's left input) and pass with the revert. The early stop holds only for a hash join that builds the right table, without parallel replicas and with query_plan_merge_filters = 1, so the test pins those. Measured on the revert binary: parallel_hash, grace_hash, full_sorting_merge, parallel replicas and query_plan_merge_filters = 0 all read the right side, as before #110114. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…on-filter-pushdown Revert "Push filters below WindowStep on PARTITION BY columns"
|
I pushed a resolution of this cherry-pick to my fork, branch The conflicts come from #122975 and #121390, which are not on 26.9: there the removed window branch calls I tested a Debug build of the resolved tree with clang-22, running the 26.9
@nihalzp, I have After that the robot merges this PR and opens the 26.9 backport PR itself. |
Original pull-request #125463
Do not merge this PR manually
This pull-request is a first step of an automated backporting.
It contains changes similar to calling
git cherry-picklocally.If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.
The check results does not matter at this step - you can safely ignore them.
Before you resolve anything
Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.
Troubleshooting
If the conflicts were resolved in a wrong way
If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:
pr-cherrypicklabel from the PRYou also need to check the Original pull-request for
pr-backports-createdlabel, and delete if it's presented thereThe PR source
The PR is created in the CI job