24.8.14 Backport of #87303 - Fix condition not being moved to PREWHERE in case there is a row policy (version 2)#1080
Conversation
This commit is a manual backport of two PRs: 1. ClickHouse#87303 2. ClickHouse#88017 Additionally, the test from ClickHouse#88036 was added.
|
This is an automated comment for commit 0aed477 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
|
Guess that failed test Am I right that ClickHouse#8730 has some changes for some post-24.8 stuff, which are safely removed from PR (like FormatFactory, etc)? |
|
Thanks for the review!
Fixed in a follow-up commit.
Yes, it had quite a bit of stuff that was missing in this version, and that's why I decided to apply it manually. The extra stuff was safely removed, but I wanted to have more eyes looking into this code to spot a possible mistake. |
This commit is a manual backport of two PRs:
Additionally, the test from ClickHouse#88036 was added.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixed move-to-prewhere optimization, which did not work in the presence of row policy (ClickHouse#87303 by @KochetovNicolai)
CI/CD Options
Exclude tests:
Regression jobs to run: