Repository navigation
Fix abort in Protobuf schema inference for a map with an unsupported value - #126906
Merged
alexey-milovidov merged 1 commit intoOct 22, 2026
Merged
alexey-milovidov merged 1 commit into
alexey-milovidov merged 1 commit into
Conversation
…ted value With `input_format_protobuf_skip_fields_with_unsupported_types_in_schema_inference = 1`, an unsupported key or value of a map entry was skipped, leaving a one-element tuple, and `DataTypeMap` was built from it with an out-of-bounds access. Now the whole `map` field is skipped. Closes: ClickHouse#126836
Contributor
|
Workflow [PR], commit [1676afe] Summary: ✅
AI ReviewSummaryPR #126906 skips incomplete Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; regression execution remains pending CI. |
alexey-milovidov
approved these changes
Oct 22, 2026
This was referenced Oct 22, 2026
clickhouse-gh Bot
added a commit
that referenced
this pull request
Oct 23, 2026
Backport #126906 to 26.9: Fix abort in `Protobuf` schema inference for a `map` with an unsupported value
clickhouse-gh Bot
added a commit
that referenced
this pull request
Oct 23, 2026
Backport #126906 to 26.10: Fix abort in `Protobuf` schema inference for a `map` with an unsupported value
clickhouse-gh Bot
added a commit
that referenced
this pull request
Oct 23, 2026
Backport #126906 to 26.8: Fix abort in `Protobuf` schema inference for a `map` with an unsupported value
clickhouse-gh Bot
added a commit
that referenced
this pull request
Oct 23, 2026
Backport #126906 to 26.7: Fix abort in `Protobuf` schema inference for a `map` with an unsupported value
alexey-milovidov
added a commit
that referenced
this pull request
Oct 23, 2026
Backport #126906 to 26.3: Fix abort in `Protobuf` schema inference for a `map` with an unsupported value
leshikus
pushed a commit
that referenced
this pull request
Nov 13, 2026
…r a `map` with an unsupported value
VighneshPath
pushed a commit
to VighneshPath/ClickHouse
that referenced
this pull request
Nov 23, 2026
…ference for a `map` with an unsupported value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Schema inference for the
Protobufformat aborted the server when amapfield had a value (or key) of an unsupported type, such as an empty message, a recursive message or an enum that does not fitEnum16, andinput_format_protobuf_skip_fields_with_unsupported_types_in_schema_inference = 1. The unsupported value was skipped, leaving a one-element tuple, andDataTypeMapwas built from it with an out-of-bounds access. Now the wholemapfield is skipped, as for other unsupported fields.Closes: #126836
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix a server abort during
Protobufschema inference withinput_format_protobuf_skip_fields_with_unsupported_types_in_schema_inference = 1when amapfield has a value of an unsupported type. Suchmapfields are now skipped.Workflow [PR]
Sync PR [sync-upstream/pr/126906]
Version info
26.11.1.594-master(included in26.11and later)26.10.2.87,26.9.26.4,26.8.35.5,26.7.38.10,26.3.61.5