Repository navigation
Resolve a shared data path's subcolumn from the path's own root - #120039
Conversation
The shared data stores each path as a separate column, so the names of its substreams count `Array` wrappers from the `Dynamic`, while the serialization the reader was given had been resolved inside the types enclosing the `Object` and counts them from the column. Reading a `sizeN` subcolumn of a path in shared data then asked the substreams list for a name it does not hold and threw `LOGICAL_ERROR`, on every part using the `advanced` serialization version - the default for merged parts. Resolve the subcolumn against the `Dynamic` type instead, which is the root the data was written with. The dynamic path branch keeps the serialization it was given: there the enclosing wrappers are part of the reader's substream path, so the number it carries is the right one. Closes: #119726 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [884f5b5] Summary: ✅
AI ReviewSummaryThis PR fixes direct reads of Final Verdict✅ No blocking or major issues found. LLVM Coverage ReportMeasured on commit 884f5b5.
Changed lines: Changed C/C++ lines covered: 10/10 (100.00%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units9 translation units recompiled, 21 s compile time in total, 9 of them have a recent master baseline. |
Closes: #119726
Related: #113752
The shared data stores each
JSONpath as a separate column, so the names of its substreams countArraywrappers from theDynamic, while the serialization the reader was given had been resolved inside the types enclosing theObjectand counts them from the column. Reading asizeNsubcolumn of a path that lives in shared data then asked the substreams list for a name it does not hold:This affects every part written with the
advancedshared data serialization version, which is the default for merged parts, so the read starts failing as soon as a part is merged. Selecting the whole path alongside the subcolumn hid it, because that reads the path and extracts the subcolumn in memory instead of reading its substreams.The subcolumn is now resolved against the
Dynamictype, the root the data was written with. The dynamic path branch keeps the serialization it was given: there the enclosing wrappers are part of the reader's substream path, so the number it carries is the right one.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
LOGICAL_ERRORwhen reading asizeNsubcolumn of aJSONpath stored in shared data, for examplejd.zz.:`Array(Array(Nullable(Int64)))`.size1. It affected parts written with theadvancedshared data serialization version, which is the default for merged parts.Workflow [PR]
Sync PR [sync-upstream/pr/120039]