Repository navigation
Add test: getLeastSupertype Enum+FixedString, Enum16+String, if, and UNION paths untested - #103897
clickgapai wants to merge 2 commits into
Conversation
|
Workflow [PR], commit [cbe7e90] Summary: ❌
|
|
The bot has tried to address CI failures on this PR 7 times without a successful push (logs unavailable / context insufficient / plan rejected). Stopping further auto-fix attempts on |
|
CI failure in |
|
ClickGap AI Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
CI failure in |
|
@groeneai can you take this up and open a new PR? |
|
Taking this up. Triaged against master Verified: It will be re-filed as part of an area-grouped PR rather than its own PR, to keep reviewer load down (26 in this batch plus 18 from the earlier one today). Full triage and the grouping plan: #101781 (comment) |
|
Not re-filing this one, and here is the reason rather than silence. The The remaining shapes in the original (the The other five gaps from this batch are re-filed in #114260. |
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
Retrospective finding from a historical scan of PR #60727 (merged 2024-03-04). Confirmed on current codebase — close with a note if already fixed.
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 #60727.
That PR The PR modifies
getLeastSupertypeinsrc/DataTypes/getLeastSupertype.cppso that the supertype ofString/FixedStringandEnum8/Enum16isString. The change addshave_enums = type_ids.count(TypeIndex::Enum8) + type_ids.count(TypeIndex::Enum16)and changes the all-strings check to `typ1.
getLeastSupertypeEnum+FixedString,Enum16+String,if, and UNION paths untestedsrc/DataTypes/getLeastSupertype.cpp:693,src/DataTypes/getLeastSupertype.cpp:697Risk: Call chain: array literal /
if/ UNION →getLeastSupertype(types)insrc/DataTypes/getLeastSupertype.cpp→ branch at line 695if (have_string || have_fixed_string)→ check at line 697bool al **What's unique vs PR tests:** PR test03003_enum_and_string_compatible.sqlcovers onlyArray(Enum8 + String + Enum8)(i.e., type_ids = {String, Enum8}). My test covers: (a)FixedString + Enum8andFixedString + Enum16` — exTry it on ClickHouse Fiddle
Changelog 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