Repository navigation
Conversation
|
Workflow [PR], commit [a5dd52d] Summary: ✅
AI ReviewSummaryThe Findings
Final VerdictRequest changes: the LLVM Coverage ReportMeasured on commit a5dd52d.
Changed lines: Changed C/C++ lines covered: 9/11 (81.82%) · Uncovered code |
…torage serialize/deserialize path
|
Addressed the AI review concern: I've extended
Before the fix: After the fix: serialized as Updated the |
…tory 26.7 The setting was added to Settings.cpp on master but the SettingsChangesHistory entry was not yet in this branch, causing the upgrade check to fail.
The join_runtime_filter_min_probe_rows history entry was added in a prior
commit and is byte-identical to master, but the Upgrade check reused a
cached amd_release binary built before that entry existed, so it still
reported the setting as unreflected in the settings changes history.
Rewording the description busts the build digest to trigger a fresh
amd_release build without altering the validated {name, prev, new} tuple.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
| {"skip_unavailable_shards_mode", "unavailable_or_table_missing", "unavailable_or_table_missing", "New setting to control which exceptions from a remote shard are ignored when `skip_unavailable_shards` is enabled. The default matches the historical behavior: a shard whose table is missing is treated as unavailable."}, | ||
| {"use_text_index_tokens_cache", false, true, "Enabled the text index tokens cache globally."}, | ||
| {"use_text_index_header_cache", false, true, "Enabled the text index header cache globally."}, | ||
| {"join_runtime_filter_min_probe_rows", 0, 1000, "New setting to control the minimum probe-side size for installing JOIN runtime filters. Previously there was no such threshold, so the previous value is 0, meaning runtime filters were always installed."}, |
There was a problem hiding this comment.
system.settings_changes now claims that join_runtime_filter_min_probe_rows was introduced in both 26.7 and 26.8. That 26.7 entry was deliberately moved out in #111671 once master rolled to 26.8, so re-adding it here recreates duplicate history for the same setting change. Please drop the 26.7 copy and keep this setting only in the 26.8 block.
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 8/10 (80.00%) · Uncovered code |
…-none-quoting Resolve the conflict with the move of the settings changes history into the setting declarations (ee6b44f): the history records this PR added to `SettingsChangesHistory.cpp` now live as trailing arguments of the `DECLARE` of each setting. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Closes: #111403
Changelog category (leave one):
Changelog entry:
Fixed a bug where a user's default database was silently lost after a serialization round trip when the database was literally named
NONE. The formatter now always back-quotes the database name inDEFAULT DATABASEclauses, preventing the parser from misreading the name as the "no default database" sentinel.What this fixes
ASTDatabaseOrNone::formatImplcalledbackQuoteIfNeed(database_name). SinceNONEis a lexically valid identifier, it was emitted unquoted — serialized asDEFAULT DATABASE NONE. On read-back,ParserDatabaseOrNone::parseImplmatches the keywordNONEbefore trying to parse an identifier, so the name was consumed as the sentinel (meaning "no default database") and the user's default database was silently dropped.The fix
Replace
backQuoteIfNeedwithbackQuote(unconditional) inASTDatabaseOrNone::formatImpl. This ensures the database name is always backtick-quoted in the serialized output (e.g.DEFAULT DATABASE `NONE`). The parser'sparseIdentifierOrStringLiteralcorrectly handles backtick-quoted identifiers, so the round trip is now safe forNONEand for any future keyword that might collide.Why unconditional quoting (not a targeted NONE check)
NONEis not the only possible collision: any database name that matches a keyword the surrounding grammar could intercept is a latent risk. Unconditional quoting of persisted identifiers is the defensive and idiomatic approach, matching how many other ClickHouse AST nodes serialize names that must round-trip.Test
Updated
tests/queries/0_stateless/01939_user_with_default_database— the reference output now showsDEFAULT DATABASE `NONE`(backtick-quoted) instead ofDEFAULT DATABASE NONE(unquoted). No other test reference files containDEFAULT DATABASE, so there are no other affected tests.Workflow [PR]
Sync PR [sync-upstream/pr/111527]