You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Dhirenda Gautam (Jira)" <ji...@apache.org> on 2020/01/02 07:32:00 UTC

[jira] [Commented] (CALCITE-3663) Support for TRIM function in Bigquery dialect

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

Dhirenda Gautam commented on CALCITE-3663:
------------------------------------------

Currently working on this and will raise the PR soon

> Support for TRIM function in Bigquery dialect
> ---------------------------------------------
>
>                 Key: CALCITE-3663
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3663
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Dhirenda Gautam
>            Priority: Major
>
> When we run query SELECT TRIM('ABC') for  big-query Dialect
> we expect SELECT TRIM('ABC'),but get SELECT TRIM(BOTH ' ' FROM 'ABC') which is not a valid query in Big-Query.
> Similary below query
> SELECT TRIM(BOTH 'a' from 'ABC') 
> SELECT TRIM(LEADING ' ' from 'ABC') 
> SELECT TRIM(TRAILING ' ' from 'ABC') are not getting converted into validate Query format.
> Unparse logic for the trim has been handle in Big-query dialect to convert the source Trim query into valid big-query query.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)