Skip to content

Backport #117979 to 26.7: Check table access when the analyzer resolves a table identifier - #118179

Merged
clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/117979
Sep 5, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/117979

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

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

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.7.7.29

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

clickhouse-gh Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [c7d1f4b]

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
alexey-milovidov added a commit that referenced this pull request Sep 5, 2026
…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.6 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.

Same fix as c7d1f4b in the 26.7 backport (#118179).

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118169&sha=2bc6581ff7d9eb1d276ec947c28162e4108455c4&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%203%2F6%29
PR: #118169
@clickhouse-gh
clickhouse-gh Bot merged commit 5942ded into 26.7 Sep 5, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/117979 branch September 5, 2026 07:08
alexey-milovidov added a commit that referenced this pull request Sep 5, 2026
…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)
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.

3 participants