Repository navigation
Add test: alterRefreshParams empty-database dependency resolution untested for temp-table-shadowed DEPENDS ON - #108037
Conversation
|
Pre-PR Validation Gate (per ClickGap pipeline): a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Reviewed by source inspection and comparison against the merged #107156 test
Branch note: On the |
|
Workflow [PR], commit [8f26c23] Summary: ✅ AI ReviewSummaryThis test-only PR adds focused stateless coverage for Final VerdictStatus: ✅ Approve |
Requested by @clickhouse-gh[bot] in ClickHouse#108037 (comment)
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 378 line(s), 53 function(s) across 128 file(s) · Details Top files
|
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
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 #107156.
That PR The PR fixes a server abort/crash-loop in refreshable materialized views: a
REFRESH ... DEPENDS ON <name>whose unqualified name is shadowed by a temporary table or CTE is left with an empty database byAddDefaultDatabaseVisitor, soStorageID::getFullTableNamethrowsUNKNOWN_DATABASEduring1.
alterRefreshParamsempty-database dependency resolution untested for temp-table-shadowedDEPENDS ONsrc/Storages/MaterializedView/RefreshTask.cpp:402Risk: InterpreterAlterQuery.cpp:475 runs
AddDefaultDatabaseVisitorover MODIFY REFRESH; withtshadowed by a temporary table the dependency stays unqualified and arrives atalterRefreshParams(RefreshTask.cpp:402-403) with empty database. Without resolution againstview->getStorageID().database_name,StorageID::getFullTableNamethrowsUNKNOWN_DATABASEon the first scheduling pass, re-raised asLOGICAL_ERROR(server abort in debug/sanitizer builds, persisted bad definition causing …What's unique vs PR tests: The PR's test 04329 covers only the
createcall site (CREATE MATERIALIZED VIEW ... DEPENDS ON t plus detach/attach). This test covers the second, independently-wiredalterRefreshParamscall site (RefreshTask.cpp:402-403) via ALTER ... MODIFY REFRESH ... DEPENDS ON with a temp-table shadow — a distinct mutation guard (the alter call site's default_database argument) that the create test does not protect.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.6.1.1083