You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2019/08/27 08:05:00 UTC

[jira] [Resolved] (CALCITE-3280) Cannot parse query REGEXP_REPLACE in Redshift

     [ https://issues.apache.org/jira/browse/CALCITE-3280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-3280.
----------------------------------
    Resolution: Fixed

Fixed in [b039b152|https://github.com/apache/calcite/commit/b039b152d8d2e91ab2ca0232ebddfc998f3bb331]; thanks for the PR, [~lishuming]!

> Cannot parse query REGEXP_REPLACE in Redshift
> ---------------------------------------------
>
>                 Key: CALCITE-3280
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3280
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Ryan Fu
>            Assignee: Julian Hyde
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.21.0
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> REGEXP_REPLACE error:
> {code:}
> No match found for function signature REGEXP_REPLACE(<CHARACTER>, <CHARACTER>, <CHARACTER>){code}
>  
> Example query:
> {code:sql}
> SELECT * , MD5(TRIM(BOTH ' ' FROM REGEXP_REPLACE(LOWER(name), '([[:space:]]|,)+([iInNcC]|[lLcC]).*$', ''))) AS company_id FROM public.account {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)