Mihai Budiu created CALCITE-6709:
------------------------------------
Summary: 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
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)