[ 
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)

Reply via email to