Repository navigation
Document how the query plan serialization version is bumped - #123241
Conversation
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Workflow [PR], commit [6117338] Summary: ✅
AI ReviewSummaryThis PR documents the bump policy for Findings
Final Verdict
LLVM Coverage Report |
…last-bumped release line Co-Authored-By: Claude Fable 5.1 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units261 translation units recompiled, 2419 s compile time in total, 261 of them have a recent master baseline. |
|
📊 Cloud Performance Report ✅ AI verdict: no significant changes detected. K_source=6 K_base=30 flagged=0/65 clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
…bump_rule # Conflicts: # src/Core/ProtocolDefines.h
… release 26.10 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…vers Co-Authored-By: Claude Fable 5.1 <[email protected]>
| /// Rules for this version: | ||
| /// - Bump it at most once per release: the first change in a release that needs it bumps it, later changes | ||
| /// in the same release reuse the value. Whoever bumps it also updates the "Last bumped for release" line below. | ||
| /// - What needs it: a new step name, or a new plan setting name written by `serializeSettings`. An older |
There was a problem hiding this comment.
The new rule still reads as exhaustive, but DBMS_QUERY_PLAN_SERIALIZATION_VERSION also gates plan-level bytes that are outside both step names and serializeSettings. For example, QueryPlan::serialize only writes max_threads / concurrency_control from DBMS_MIN_QUERY_PLAN_SERIALIZATION_VERSION_WITH_EXECUTION_LIMITS onward (src/Processors/QueryPlan/Serialization.cpp:75-116). A future contributor following this comment could add another top-level field and skip the global bump because it is neither a step name nor a plan-setting name. Please broaden the rule to cover any bytes that are not versioned by a step-local step_version, or mention top-level plan framing explicitly.
Master moved to per-step serialization versions (#119535) and documented that a change to a step's bytes must bump the step's own version rather than the global `DBMS_QUERY_PLAN_SERIALIZATION_VERSION` (#123241). Flag bit 128 of `AggregatingStep` is now taken by `only_merge`. Resolve accordingly: drop the global version bump and the bit-128 top-K flag, and carry the top-K parameters as a trailing presence byte plus payload in version 1 of the `Aggregating` step, introduced at plan version 20 (the 26.10 value). Towards a peer that reads step version 0 the parameters are omitted, as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #119535
DBMS_QUERY_PLAN_SERIALIZATION_VERSIONhas been bumped for every serialization change. This adds a comment above the constant with the rules for moving it: at most once per release, and not for a change to the bytes of one step, which bumps its own serialization version instead (#119535).The comment records the release of the last bump. The next change then sees whether the current release already has its bump, and reuses the value, or whether the last bump was in an earlier release, and increments it.
No code change.
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123241]
Version info
26.10.1.1301-master(included in26.10and later)