Skip to content

Backport #117979 to 26.3: Check table access when the analyzer resolves a table identifier - #118208

Merged
alexey-milovidov merged 4 commits into
26.3from
backport/26.3/117979
Sep 5, 2026
Merged

alexey-milovidov merged 4 commits into
26.3from
backport/26.3/117979

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #117979
Cherry-pick pull-request #118058

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.3.32.9

@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Sep 5, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [cd7cb7e]

Summary: ✅

…access check

On master this integration test was already rewritten as the functional
`04510_select_access_rights_rewrite.lib`, which #117979 updated, so the
backport had nothing to change there. On 26.7 the integration test still
exists and expected the column-level message
`SELECT for at least one column` for `SELECT count() FROM table1` without
any grant. With the analyzer checking table access while resolving the
identifier, the error is now `SELECT ON default.table1`, exactly as the
master test expects. Pin `enable_analyzer=1` for these assertions so the
result does not depend on the analyzer mode of the CI job.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118179&sha=b7bfce27db5ca4f47c17b1768587ef9de2ec3715&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%202%2F6%29
PR: #118179
(cherry picked from commit c7d1f4b)
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Pushed e27ad0f: the test_select_access_rights/test_main.py reds (test_select_count, test_select_with_row_policy) are the same adaptation as in the 26.6/26.7 siblings (#118169, #118179): with the analyzer checking table access while resolving the identifier, the message is SELECT ON default.table1 rather than SELECT for at least one column. Also merged 26.3.

The remaining red, 04408_lazy_materialization_part_offset_prewhere in Stateless tests (amd_asan, distributed plan, parallel, 2/2), is the branch-wide 26.3 flake tracked in #113946 (26.3 lacks #96682) and is unrelated to this backport.

@alexey-milovidov
alexey-milovidov merged commit c0fd30c into 26.3 Sep 5, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.3/117979 branch September 5, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants