Skip to content

[CALCITE-6245] A ValidationError occurs when a named parameter is used on a ScalarFunction or AggregateFunction - #5340

Merged
xuzifu666 merged 1 commit into
apache:mainfrom
xuzifu666:calcite-6245
Oct 23, 2026
Merged

xuzifu666 merged 1 commit into
apache:mainfrom
xuzifu666:calcite-6245

Conversation

@xuzifu666

Copy link
Copy Markdown
Member

* @param argName argument name to look up
* @return index of the first matching parameter, or -1 if not found
*/
public static int lookupParamName(List<String> paramNames, String argName) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think caseInsensitive should be in the name of the function

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, renamed to lookupParamNameCaseInsensitive.

/** Looks up a parameter name in a list of formal parameter names,
* case-insensitively.
*
* <p>Argument names from the parser are subject to unquoted casing (for

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this paragraph only confuses things

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, removed. The javadoc now only describes the behavior; with the new method name, the rationale paragraph was redundant.

@sonarqubecloud

Copy link
Copy Markdown

@xuzifu666
xuzifu666 merged commit fe3450e into apache:main Oct 23, 2026
19 checks passed
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.

2 participants