Skip to content

Add test: __actionName useDefaultImplementationForLowCardinalityColumns() = false override is untested - #104006

Merged
nihalzp merged 1 commit into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr62287
May 5, 2026
Merged

nihalzp merged 1 commit into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr62287

Conversation

@clickgapai

@clickgapai clickgapai commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

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 __actionName internal function to safely reject direct user calls with unexpected arguments. Three changes: (1) src/Functions/identity.h adds useDefaultImplementationForNulls/Nothing/LowCardinalityColumns() = false plus a getReturnTypeImpl loop that throws BAD_ARGUMENTS for any no

1. __actionName useDefaultImplementationForLowCardinalityColumns() = false override is untested
src/Functions/identity.h:91, src/Functions/identity.h:97
Risk: Call chain: SELECT __actionName(toLowCardinality('foo'), 'bar') → FunctionActionName::executeImpl (preceded by getReturnTypeImpl). With useDefaultImplementationForLowCardinalityColumns() = 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 the u
Try it on ClickHouse Fiddle

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.277

@vdimir vdimir added the can be tested Allows running workflows for external contributors label May 4, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [bcd9a96]

Summary: ✅


AI Review

Summary

This PR adds a new stateless test pair for __actionName argument validation, specifically covering LowCardinality(String) and FixedString rejection paths plus a distinct-value happy path check. The change is test-only, targeted, and consistent with the intended behavior; I did not find correctness, safety, performance, or compliance issues that require changes.

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 4, 2026
@nihalzp
nihalzp added this pull request to the merge queue May 5, 2026
Merged via the queue into ClickHouse:master with commit e4549ca May 5, 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 5, 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.

4 participants