drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Barclay (Drill) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-3696) REGEXP_REPLACE doc. doesn't document that replacement is pattern (not plain string)
Date Sun, 23 Aug 2015 23:33:45 GMT

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

Daniel Barclay (Drill) updated DRILL-3696:
------------------------------------------
    Description: 
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 (in place of) the source_--it's substituted in place of _matches_
within the source.





  was:
In the {{REGEXP_REPLACE}} function documentation currently at [https://drill.apache.org/docs/string-manipulation/#regexp_replace],
there doesn't seem to be anything documenting that the "replarement" parameter's value is
a replacement _pattern_ string, specifying what to substitute (no


there doesn't seem to be anything documentation the (apparen

says that the "replacement" parameter 



is "the string to substitute for th


is a replacement pattern string as opposed to a direct






> 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)
>
> 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 (in place of) the source_--it's substituted in place
of _matches_ within the source.



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

Mime
View raw message