Skip to content

26.8: Fix ALIAS row policies on legacy distributed reads - #123436

Merged
clickhouse-gh[bot] merged 2 commits into
ClickHouse:26.8from
mkmkme:fix/row-policy-alias-distributed-26.8
Oct 3, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
ClickHouse:26.8from
mkmkme:fix/row-policy-alias-distributed-26.8

Conversation

@mkmkme

@mkmkme mkmkme commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Expand table aliases before building row-policy filter actions on shards. Keep row-policy inputs separate from PREWHERE inputs so columns needed by selected aliases remain available.

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 into CHANGELOG.md):

Fix a bug where using aliases and row policies with enable_analyzer=0 could error out

Version info

  • Merged into: 26.8.16.41

Expand table aliases before building row-policy filter actions on
shards. Keep row-policy inputs separate from `PREWHERE` inputs so
columns needed by selected aliases remain available.
@mkmkme mkmkme changed the title Fix ALIAS row policies on legacy distributed reads 26.8: Fix ALIAS row policies on legacy distributed reads Oct 2, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-rbac Authorization: roles, grants, quotas, row-level security, access checks. label Oct 2, 2026
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Oct 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [6249290]

Summary: ✅

@alexey-milovidov alexey-milovidov self-assigned this Oct 2, 2026
@clickhouse-gh clickhouse-gh Bot added the external Author is not a member of the ClickHouse organization label Oct 3, 2026
Run the analyzer control with `serialize_query_plan = 0` so shards
plan the SQL text and apply policies on the underlying table.
Keep the legacy regression cases under the CI-provided settings.
@mkmkme

mkmkme commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

The additional commit added serailize_query_plan=0 to the test. The cause of the test is known: #112891. This should be fixed when #114955 is merged

@clickhouse-gh
clickhouse-gh Bot merged commit 4ede482 into ClickHouse:26.8 Oct 3, 2026
41 checks passed
mkmkme added a commit to Altinity/ClickHouse that referenced this pull request Oct 9, 2026
Antalya 25.8 Backport of ClickHouse#123436 - Fix ALIAS row policies on legacy distributed reads
mkmkme added a commit to Altinity/ClickHouse that referenced this pull request Oct 9, 2026
Stable 25.8 Backport of ClickHouse#123436 - Fix ALIAS row policies on legacy distributed reads
mkmkme added a commit to Altinity/ClickHouse that referenced this pull request Oct 9, 2026
Stable 24.8 Backport of ClickHouse#123436 - Fix `ALIAS` row policies on legacy distributed reads
mkmkme added a commit to Altinity/ClickHouse that referenced this pull request Oct 24, 2026
Stable 25.3 Backport of ClickHouse#123436 - Fix `ALIAS` row policies on legacy distributed reads
mkmkme added a commit to Altinity/ClickHouse that referenced this pull request Oct 24, 2026
Stable 26.3 Backport of ClickHouse#123436 - 26.8: Fix `ALIAS` row policies on legacy distributed reads
mkmkme added a commit to Altinity/ClickHouse that referenced this pull request Oct 24, 2026
Antalya 26.3 Backport of ClickHouse#123436 - 26.8: Fix `ALIAS` row policies on legacy distributed reads
zvonand added a commit to Altinity/ClickHouse that referenced this pull request Oct 24, 2026
Antalya 26.6 Backport of ClickHouse#123436 - 26.8: Fix `ALIAS` row policies on legacy distributed reads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-rbac Authorization: roles, grants, quotas, row-level security, access checks. external Author is not a member of the ClickHouse organization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants