You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2025/04/02 21:30:00 UTC

[jira] [Created] (CALCITE-6936) Table function parameter matching should always be case-insensitive

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)