Skip to content

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

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

mkmkme merged 2 commits into
antalya-26.3from
backports/antalya-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)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • 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:07
…-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 `include_row_level_filter` logic but dropped the call to `shouldPushRowLevelFilterToStorage()` (only in 26.8, missing in 26.3) and two 26.8-only local variables.
@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:

  • d364acc: cherry-pick with the conflicts committed as-is

  • ee078d6: resolution

  • InterpreterSelectQuery.cpp, get_prewhere_columns lambda: the conflict came from the 26.8 condition row_level_filter && include_row_level_filter && shouldPushRowLevelFilterToStorage(). That function doesn't exist in antalya-26.3, so the resolved condition is row_level_filter && include_row_level_filter.

  • Same file, supported-PREWHERE-columns check: kept get_prewhere_columns(/*include_row_level_filter=*/ true) and dropped table_columns and include_subcolumns. They are 26.8 context the code here doesn't use, and leaving them in would trigger unused-variable warnings.

  • The rest applied cleanly, including the ALIAS expansion in generateFilterActions and the alias path calling get_prewhere_columns(false).

@github-actions

Copy link
Copy Markdown

Workflow [PR], commit [ee078d6]

@mkmkme mkmkme self-assigned this Oct 23, 2026
@mkmkme mkmkme added the verified Approved for release label Oct 24, 2026
@mkmkme
mkmkme merged commit 0f93ed8 into antalya-26.3 Oct 24, 2026
287 checks passed
@blau-ai blau-ai mentioned this pull request Oct 28, 2026
9 of 30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants