Mihai Budiu created CALCITE-6936:
------------------------------------

             Summary: Table function parameter matching should always be 
case-insensitive
                 Key: CALCITE-6936
                 URL: https://issues.apache.org/jira/browse/CALCITE-6936
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.39.0
            Reporter: Mihai Budiu


Table functions use the nameMatcher from the validator.
But the parameters of table functions are named UPPERCASE.
So if you have a validator which converts unquotedCasing to lower, you get a 
ridiculous error message for the following SQL:

{code:sql}
SELECT * FROM TABLE(
                  TUMBLE(
                    DATA => TABLE ORDERS,
                    TIMECOL => DESCRIPTOR(ROWTIME),
                    SIZE => INTERVAL '1' MINUTE))
{code}

Error in SQL statement: Param 'data' not found in function 'TUMBLE'; did you 
mean 'DATA'?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to