Repository navigation
Add test: ALTER TABLE <materialized view> MODIFY SQL SECURITY INVOKER runtime guard untested - #103892
Conversation
|
Workflow [PR], commit [5e44ef9] Summary: ❌
AI ReviewSummaryThis PR adds a focused stateless test for ClickHouse Rules
Final VerdictStatus: ✅ Approve |
|
CI check This PR is test-only; the bot will not retrigger CI or modify the test to chase a failure that appears unrelated. If you believe the failure is related to this test, please comment with details and the bot will re-evaluate. |
|
This PR has accumulated 5 CI failures that don't reference its test, so the bot has not attempted any fix. Closing — please re-run CI or comment if you'd like the bot to look again. |
bba5870
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
Retrospective finding from a historical scan of PR #60439 (merged 2024-02-28). Confirmed on current codebase — close with a note if already fixed.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #60439.
That PR PR adds DEFINER and SQL SECURITY clauses to CREATE/ALTER VIEW. New code paths: (1) parser for
[DEFINER = user|CURRENT_USER] [SQL SECURITY DEFINER|INVOKER|NONE]in CREATE VIEW / CREATE MATERIALIZED VIEW; (2)processSQLSecurityOptioninInterpreterCreateQueryresolves defaults from `default_norm1.
ALTER TABLE <materialized view> MODIFY SQL SECURITY INVOKERruntime guard untestedsrc/Storages/StorageMaterializedView.cpp:745Risk: Call chain:
InterpreterAlterQuery::executeToTable→IStorage::checkAlterIsPossible(virtual) →StorageMaterializedView::checkAlterIsPossibleatsrc/Storages/StorageMaterializedView.cpp:739, whWhat's unique vs PR tests: PR's own test 02884_create_view_with_sql_security_option.sh tests: (a) CREATE MATERIALIZED VIEW ... SQL SECURITY INVOKER throws at create-time (StorageMaterializedView.cpp:122-123 — different code pat
Try it on ClickHouse Fiddle
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Version info
26.5.1.416