Skip to content

[CALCITE-7685] Filter unresolved function overloads by argument count during early resolution - #5140

Open
dssysolyatin wants to merge 1 commit into
apache:mainfrom
dssysolyatin:feature/CALCITE-7685
Open

[CALCITE-7685] Filter unresolved function overloads by argument count during early resolution#5140
dssysolyatin wants to merge 1 commit into
apache:mainfrom
dssysolyatin:feature/CALCITE-7685

Conversation

@dssysolyatin

@dssysolyatin dssysolyatin commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Jira Link

CALCITE-7685

Changes Proposed

Filter unresolved function overloads by argument count during early resolution.

As part of this change, SqlUnresolvedFunction#argumentMustBeScalar must return false. With arity filtering, a wrong-arity call to a table function such as TUMBLE stays unresolved at the point where sub-queries are registered. The default value (true) would wrap its TABLE argument in an internal $SCALAR_QUERY call, and validation would then fail error ("Cannot apply '$SCALAR_QUERY' ...") instead of the expected arity error.

@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant