Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Add support for REGEXP_REPLACE function from BigQuery.
REGEXP_REPLACE(value, regexp, replacement)
Returns a STRING where all substrings of value that match regular expression regexp are replaced with replacement.
backslashed-escaped digits (\1 to \9) can be used within the replacement argument to insert text matching the corresponding parenthesized group in the regexp pattern.
Example (added one space between \ \ to override md formatting):
SELECT REGEXP_REPLACE("abc'", "b(.)", "X\ \1") as result;
result |
aXc |
Attachments
Issue Links
- is a child of
-
CALCITE-5858 Add REGEXP_CONTAINS, REGEXP_EXTRACT, REGEXP_EXTRACT_ALL, REGEXP_INSTR, REGEXP_REPLACE and REGEXP_SUBSTR functions (enabled in BigQuery library)
- Resolved
- is related to
-
CALCITE-3280 Cannot parse query REGEXP_REPLACE in Redshift
- Closed
- links to