[ 
https://issues.apache.org/jira/browse/CALCITE-7565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090599#comment-18090599
 ] 

Sergey Nuyanzin commented on CALCITE-7565:
------------------------------------------

Thank you for the review [~caicancai], [~xuzifu666]

> 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
>              Labels: pull-request-available
>             Fix For: 1.43.0
>
>
> 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)

Reply via email to