Repository navigation
Skip the expensive readLockParts() call in tryGetSerializationHints() - #100155
Conversation
unless serialization_hint is explicitly selected in system.columns.
|
Workflow [PR], commit [f4ee4cd] Summary: ❌
AI ReviewSummaryThis PR optimizes Missing context
ClickHouse Rules
Final Verdict
|
Algunenano
left a comment
There was a problem hiding this comment.
Please switch the changelog category to 'Improvement'. This isn't a CI related change.
Other than that it looks good
LLVM Coverage Report
PR changed lines: PR changed-lines coverage: 100.00% (12/12, 0 noise lines excluded) |
|
dd1d677
The regression was introduced by commit 4757219 (PR #73365) which added the
serialization_hintcolumn tosystem.columnsbut unconditionally calledgetSerializationHintsregardless of which columns were queried.Fix: guard
tryGetSerializationHintswithcolumns_mask[21], consistent withthe existing pattern used for
column_sizes(indices 7–9). The expensivereadLockPartscall is now skipped unlessserialization_hintis explicitlyselected.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The expensive check is skipped if
serialization_hintis not present in system.columns.Documentation entry for user-facing changes
Version info
26.4.1.245