[
https://issues.apache.org/jira/browse/CALCITE-6709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6709.
----------------------------------
Fix Version/s: 1.39.0
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/6fbf0581c8f62da624ffcad0d05582aeba8f7b81
Thank you for the review, [~caicancai]
> Parser accepts a call to TRIM() with no arguments
> -------------------------------------------------
>
> Key: CALCITE-6709
> URL: https://issues.apache.org/jira/browse/CALCITE-6709
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.38.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.39.0
>
>
> Parser.jj accepts the following program SELECT TRIM(), although it should not.
> In this case it creates an instance of the SqlTrimFunction which has a null
> operand for trimChars.
> This is because the parsing of trimChars is optional.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)