Repository navigation
Add test: checkTupleNames DUPLICATE_COLUMN branch (Tuple element names must be unique) is uncovered by entire test suite - #103852
Merged
alexey-milovidov merged 1 commit intoMay 2, 2026
Conversation
1 task
Contributor
|
Workflow [PR], commit [d20e716] Summary: ✅ AI ReviewSummaryThis PR adds a new ClickHouse Rules
Final Verdict
|
alexey-milovidov
approved these changes
May 1, 2026
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.
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #98377.
That PR PR forbids the reserved Tuple element name
nullincheckTupleNames(src/DataTypes/DataTypeTuple.cpp) because it conflicts with the subcolumn name used forNullablenull maps and produced an exception inSerializationNullable::enumerateStreams. The change adds a third validation branch (BAD1.
checkTupleNamesDUPLICATE_COLUMN branch (Tuple element names must be unique) is uncovered by entire test suitesrc/DataTypes/DataTypeTuple.cpp:68,src/DataTypes/DataTypeTuple.cpp:69Risk: Path:
DataTypeTuple::DataTypeTuple(elems, names)atDataTypeTuple.cpp:76 →checkTupleNames(names)at line 82 →if (!names_set.insert(name).second)at line 68 →return Exception(ErrorCodes::DU **What's unique vs PR tests:** PR's04000_nullable_tuple_null_subcolumn_ambiguity.sqlexercises the newnull-name branch atDataTypeTuple.cpp`:63-66 (BAD_ARGUMENTS for reserved name). My test exercises the neighboring duplicatChangelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Version info
26.5.1.248