Repository navigation
Add definers for views (Attempt 2) - #60439
Conversation
# Conflicts: # docs/en/operations/settings/settings.md # src/Core/Settings.h
# Conflicts: # docs/en/operations/settings/settings.md # src/Core/Settings.h # src/Processors/Transforms/buildPushingToViewsChain.cpp
# Conflicts: # src/Processors/Transforms/buildPushingToViewsChain.cpp # src/Storages/StorageMaterializedView.cpp
# Conflicts: # docs/en/sql-reference/statements/create/view.md
# Conflicts: # docs/en/operations/settings/settings.md # src/Core/Settings.h # src/Parsers/ASTAlterQuery.cpp # src/Processors/Transforms/buildPushingToViewsChain.cpp
# Conflicts: # src/Core/SettingsChangesHistory.h # src/Processors/Transforms/buildPushingToViewsChain.cpp
|
This is an automated comment for commit e0891b9 with description of existing statuses. It's updated for the latest CI running ⏳ Click here to open a full report in a separate page Successful checks
|
# Conflicts: # src/Core/SettingsChangesHistory.h
|
@pufit, please pay attention to the CI status |
This reverts commit 330a206.
| user1="user02884_1_$RANDOM$RANDOM" | ||
| user2="user02884_2_$RANDOM$RANDOM" | ||
| user3="user02884_3_$RANDOM$RANDOM" | ||
| db="db02884_$RANDOM$RANDOM" |
There was a problem hiding this comment.
Why isn't this using the database that's created for each test? CLICKHOUSE_DATABASE.
Having it's custom database makes things harder to track and clean up (specially since the test is slow and might be killed in local envs).
There was a problem hiding this comment.
Also we could use this idea even for objects which are not databases:
user2="user2_02884_${CLICKHOUSE_DATABASE}_$RANDOM"
|
Hi @pufit @vitlibar — while reviewing this PR I found the following:
Could you review the test PR and add the |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Added new syntax which allows to specify definer user in View/Materialized View. This allows to execute selects/inserts from views without explicit grants for underlying tables.
Documentation entry for user-facing changes
Closes #19228
Original PR: #54901