Sergey Nuyanzin created CALCITE-7686:
----------------------------------------

             Summary: 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


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)

Reply via email to