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

Rui Wang edited comment on CALCITE-3415 at 10/15/19 7:10 PM:
-------------------------------------------------------------

I am not aware of REGEXP_SUBSTR exist in BigQuery (check [1]). The closest one 
is [2].

Could you elaborate a bit on which BigQuery function you intent to use? 


[1]:  
https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators
[2]: 
https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#regexp_extract



was (Author: amaliujia):
I am not aware of REGEXP_SUBSTR exist in BigQuery (check [1]). The most closest 
one is [2].

Could you elaborate a bit on which BigQuery function you intent to use? 


[1]:  
https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators
[2]: 
https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#regexp_extract


> Cannot parse REGEXP_SUBSTR in BigQuery
> --------------------------------------
>
>                 Key: CALCITE-3415
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3415
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Pranay Parmar
>            Priority: Minor
>             Fix For: 1.22.0
>
>
> REGEXP_SUBSTR error :
> {code:java}
> No match found for function signature REGEXP_SUBSTR(<CHARACTER>, <CHARACTER>, 
> [<INT>, <CHARACTER>, <CHARACTER>]){code}
>  
> Example query:
> {code:sql}
> SELECT REGEXP_SUBSTR('chocolate Chip cookies', 'c+.{2}', 1, product_id, 'i')
> FROM public.account{code}



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

Reply via email to