[
https://issues.apache.org/jira/browse/CALCITE-6936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu reassigned CALCITE-6936:
------------------------------------
Assignee: Mihai Budiu
> 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
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
>
> 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)