Skip to content

Stable 26.3 Backport of #123436 - 26.8: Fix ALIAS row policies on legacy distributed reads - #2653

Merged
mkmkme merged 2 commits into
stable-26.3from
backports/stable-26.3/123436
Oct 24, 2026
Merged

mkmkme merged 2 commits into
stable-26.3from
backports/stable-26.3/123436

Conversation

@zvonand

@zvonand zvonand commented Oct 23, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix a bug where using aliases and row policies with enable_analyzer=0 could error out (ClickHouse#123436 by @mkmkme)

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

clickhouse-gh Bot and others added 2 commits October 23, 2026 15:06
…-distributed-26.8

26.8: Fix `ALIAS` row policies on legacy distributed reads

Conflicts committed as-is; the next commit resolves them:
- src/Interpreters/InterpreterSelectQuery.cpp (both modified)
Kept the PR's `include_row_level_filter` flag but dropped references to `shouldPushRowLevelFilterToStorage()` and subcolumn PREWHERE support, which don't exist in stable-26.3.
@zvonand

zvonand commented Oct 23, 2026

Copy link
Copy Markdown
Member Author

Backporter: cherry-pick conflicts resolved by AI

Conflicted files:

  • src/Interpreters/InterpreterSelectQuery.cpp (both modified)

Commits:

  • 1e44991: cherry-pick with the conflicts committed as-is

  • 5fc90dd: resolution

  • First conflict, in get_prewhere_columns: upstream adds the new flag to a condition that also calls shouldPushRowLevelFilterToStorage(), which stable-26.3 doesn't have. I resolved it as if (row_level_filter && include_row_level_filter).

  • Second conflict, in the supportedPrewhereColumns block: upstream context had table_columns / include_subcolumns locals for subcolumn PREWHERE support, which stable-26.3 doesn't have. I kept stable-26.3's code and just passed get_prewhere_columns(/*include_row_level_filter=*/ true).

  • Alias handling: the alias-actions path calls get_prewhere_columns(false), as upstream does, so row-policy inputs stay separate from PREWHERE inputs.

@github-actions

Copy link
Copy Markdown

Workflow [PR], commit [5fc90dd]

@mkmkme mkmkme self-assigned this Oct 23, 2026
@mkmkme mkmkme added the verified Approved for release label Oct 24, 2026
@mkmkme
mkmkme merged commit 2a74897 into stable-26.3 Oct 24, 2026
257 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants