Repository navigation
Backport #117979 to 26.7: Check table access when the analyzer resolves a table identifier - #118179
Merged
Merged
Conversation
…es a table identifier
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
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
26.7.7.29