-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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/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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we could use this idea even for objects which are not databases:
user2="user2_02884_${CLICKHOUSE_DATABASE}_$RANDOM"
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