[
https://issues.apache.org/jira/browse/CALCITE-7686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18103055#comment-18103055
]
Sergey Nuyanzin commented on CALCITE-7686:
------------------------------------------
Merged as
[db20dbe056e485d28d5c7606f56236923382b246|https://github.com/apache/calcite/commit/db20dbe056e485d28d5c7606f56236923382b246]
> Named argument should not be resolved as a column
> -------------------------------------------------
>
> Key: CALCITE-7686
> URL: https://issues.apache.org/jira/browse/CALCITE-7686
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Sergey Nuyanzin
> Assignee: Sergey Nuyanzin
> Priority: Major
> Labels: pull-request-available
>
> When a function is called with named-argument notation ({{name => value}})
> inside a {{SELECT}} list over a table scope, it fails as:
> {noformat}
> Column '<name>' not found in any table
> {noformat}
> cases to reproduce
> {code:sql}
> SELECT my_udf(a => 1, b => 2) FROM t
> {code}
> another case with slightly different error
> {code:sql}
> SELECT my_udaf(v1 => col1, v2 => 250) FROM t
> {code}
> Passes validation, then fails during SqlToRelConverter with while
> converting 'v1' => 't'.'col1' → Column 'v1' not found in any table.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)