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

Jacques Nadeau updated DRILL-3696:
----------------------------------
    Assignee: Daniel Barclay (Drill)

> REGEXP_REPLACE doc. doesn't document that replacement is pattern (not plain 
> string)
> -----------------------------------------------------------------------------------
>
>                 Key: DRILL-3696
>                 URL: https://issues.apache.org/jira/browse/DRILL-3696
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Daniel Barclay (Drill)
>            Assignee: Daniel Barclay (Drill)
>
> In the {{REGEXP_REPLACE}} function documentation subsection currently at 
> [https://drill.apache.org/docs/string-manipulation/#regexp_replace-syntax], 
> there doesn't seem to be anything documenting that the {{replacement}} 
> parameter's value is a replacement _pattern_ string rather than a direct 
> replacement string.
> Note how the documentation currently says:
> bq. _{{replacement}}_ is the string to substitute for the source.
> (It's not the string to substitute; it's a pattern specifying the string to 
> substitute, which can contain copies of parts of what was matched by the 
> pattern string.
> Also, it's not substituted _for the source_ (in place of the whole 
> source)--it's substituted in place of _matches_ within the source.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to