Skip to content

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 into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr98377
May 2, 2026
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr98377

Conversation

@clickgapai

@clickgapai clickgapai commented May 1, 2026 •

Copy link
Copy Markdown
Contributor

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 null in checkTupleNames (src/DataTypes/DataTypeTuple.cpp) because it conflicts with the subcolumn name used for Nullable null maps and produced an exception in SerializationNullable::enumerateStreams. The change adds a third validation branch (BAD

1. checkTupleNames DUPLICATE_COLUMN branch (Tuple element names must be unique) is uncovered by entire test suite
src/DataTypes/DataTypeTuple.cpp:68, src/DataTypes/DataTypeTuple.cpp:69
Risk: Path: DataTypeTuple::DataTypeTuple(elems, names) at DataTypeTuple.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's 04000_nullable_tuple_null_subcolumn_ambiguity.sqlexercises the newnull-name branch at DataTypeTuple.cpp`:63-66 (BAD_ARGUMENTS for reserved name). My test exercises the neighboring duplicat

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.248

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label May 1, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 1, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d20e716]

Summary: ✅


AI Review

Summary

This PR adds a new 0_stateless test that covers the DUPLICATE_COLUMN validation path for duplicate Tuple element names in checkTupleNames. The change is test-only, aligned with the stated goal, and I did not find correctness or safety issues in the added test.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label May 1, 2026
@alexey-milovidov alexey-milovidov self-assigned this May 1, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue May 1, 2026
Merged via the queue into ClickHouse:master with commit 8cfc085 May 2, 2026
165 checks passed
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants