[
https://issues.apache.org/jira/browse/CALCITE-7565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Nuyanzin updated CALCITE-7565:
-------------------------------------
Description:
Before Calcite 1.39.0 the queries
{code:sql}
SELECT TRIM(BOTH ' a ');
SELECT TRIM(LEADING ' a ');
SELECT TRIM(TRAILING ' a ');
{code}
worked
after that it fails on parser and requires {{FROM}} like
{code:sql}
SELECT TRIM(BOTH FROM ' a ');
SELECT TRIM(LEADING FROM ' a ');
SELECT TRIM(TRAILING FROM ' a ');
{code}
probably the regression after CALCITE-6709.
was:
Before Calcite 1.39.0 the query
{code:sql}
SELECT TRIM(BOTH ' a ');
{code}
worked
after that it fails on parser and requires {{FROM}} like
{code:sql}
SELECT TRIM(BOTH FROM ' a ');
{code}
probably the regression after CALCITE-6709.
> TRIM without FROM fails at parsing time
> ---------------------------------------
>
> Key: CALCITE-7565
> URL: https://issues.apache.org/jira/browse/CALCITE-7565
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.39.0
> Reporter: Sergey Nuyanzin
> Assignee: Sergey Nuyanzin
> Priority: Major
>
> Before Calcite 1.39.0 the queries
> {code:sql}
> SELECT TRIM(BOTH ' a ');
> SELECT TRIM(LEADING ' a ');
> SELECT TRIM(TRAILING ' a ');
> {code}
> worked
> after that it fails on parser and requires {{FROM}} like
> {code:sql}
> SELECT TRIM(BOTH FROM ' a ');
> SELECT TRIM(LEADING FROM ' a ');
> SELECT TRIM(TRAILING FROM ' a ');
> {code}
> probably the regression after CALCITE-6709.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)