Repository navigation
Revert "Enable sparse serialization independently for typed paths declared inside JSON columns." - #133486
Conversation
…parse-json-typed-paths" This reverts commit b6f0aca, reversing changes made to 711cfda. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review (click to expand)Pure revert of #111429: re-applying its diff ( |
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
|
cc @alexey-milovidov, could you review this? This reverts #111429, which crashes the server on a text-format INSERT into a JSON column whose typed path is stored as Sparse (issue #133480): the reproducer crashes at b6f0aca and not at 711cfda. |
|
@groeneai, after this is merged, submit a revert-of-revert PR, but with relevant fixes. |
fff0c72
|
Opened #133564: the revert-of-revert of #111429 plus a fix for #133480. The fix caps the version of |
…y-serialization Conflict resolution: - `master` reverted the sparse serialization of `JSON` typed paths (#133486 reverting #111429), which removed `SerializationInfoNamed` and `SerializationInfoObject`. The `checkKindStacks` and `checkKindStackForType` overrides move back to `SerializationInfoTuple`, the ones of `SerializationInfoObject` are dropped together with the class, and `MutateTask` uses `canUseSparseSerialization` again instead of the removed `shouldCollectSerializationInfo`. - `NativeWriter::getSerializationAndColumn`: keep the materialization of non-native `LowCardinality` columns for old peers on top of the reverted code. - `tryGetSerializationHints` now takes the metadata snapshot (#133300): pass it through in the overrides this branch adds for the wrapper storages. - `tests/parallel_replicas_plan_based_blacklist.txt`: `master` removed the whole `UNIQUE KEY` section, because plan-based parallel replicas now keep such reads local (#133744), so `05449_auto_low_cardinality_serialization_unique_key` is not listed anymore. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Reverts #111429
Related: #133480
Related: #111429
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
#111429 introduced a server crash (SIGSEGV on a text-format
INSERT, e.g. fromfile(..., JSONEachRow), into a MergeTreeJSONcolumn withserialization_info_version = 'with_subcolumns'once a part stores a typed path asSparse), reported in #133480. The reproducer crashes at the merge commit b6f0aca and not at its first parent 711cfda (amd_binarybuilds, 5/5 vs 0/10 runs) and still crashes on master 903285f. At 711cfdaCREATE TABLErejectswith_subcolumns, because #111429 adds it. The alternative is a forward fix that keeps sparse typed-path hints away from theJSONtext parser, as suggested in #133480.Proof
merge-attribution.py prove, CIamd_binarybuilds,clickhouse local, GIT_HASH verified for each build:Code: 36atCREATE TABLE)Too large size passed to allocator)Frames:
ColumnString::insertData<-StringNode::insertResultToColumn(JSONExtractTree.cpp:501) <-ObjectJSONNode::traverseAndInsert<-SerializationJSON::deserializeObject<-JSONEachRowRowInputFormat::readField. Withwith_missing_columnsthe same script gives the correct result on all three builds.On this revert (debug build): the reproducer stops at
CREATE TABLEwithCode: 36in 10/10 runs, thewith_missing_columnscontrol is correct 3/3, the three restored gtest files pass, and 16 related sparse/JSON stateless tests pass (03251_insert_sparse_all_formatsfails only itsAvroConfluentrow, identically on master before #111429: no schema registry on my box).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/133486]
Version info
26.12.1.170-master(included in26.12and later)