Repository navigation
Add test: __actionName useDefaultImplementationForLowCardinalityColumns() = false override is untested - #104006
Merged
Conversation
Contributor
|
Workflow [PR], commit [bcd9a96] Summary: ✅ AI ReviewSummaryThis PR adds a new stateless test pair for ClickHouse Rules
Final Verdict
|
nihalzp
approved these changes
May 5, 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.
Retrospective finding from a historical scan of PR #62287 (merged 2024-04-17). 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 #62287.
That PR PR fixes
__actionNameinternal function to safely reject direct user calls with unexpected arguments. Three changes: (1)src/Functions/identity.haddsuseDefaultImplementationForNulls/Nothing/LowCardinalityColumns() = falseplus agetReturnTypeImplloop that throwsBAD_ARGUMENTSfor any no1.
__actionNameuseDefaultImplementationForLowCardinalityColumns() = falseoverride is untestedsrc/Functions/identity.h:91,src/Functions/identity.h:97Risk: Call chain:
SELECT __actionName(toLowCardinality('foo'), 'bar')→FunctionActionName::executeImpl(preceded bygetReturnTypeImpl). WithuseDefaultImplementationForLowCardinalityColumns() = fals **What's unique vs PR tests:** PR's test 03035_internal_functions_direct_call.sql covers Nullable args (via toNullable), non-constant args (via materialize), wrong arg counts, and empty-string second arg — but does NOT cover theuTry 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
Version info
26.5.1.277