[ https://issues.apache.org/jira/browse/SPARK-27952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Takeshi Yamamuro updated SPARK-27952: ------------------------------------- Parent Issue: SPARK-30375 (was: SPARK-27764) > String Functions: regexp_replace is not compatible > -------------------------------------------------- > > Key: SPARK-27952 > URL: https://issues.apache.org/jira/browse/SPARK-27952 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 3.0.0 > Reporter: Zhu, Lipeng > Priority: Major > > PostgreSQL's {{regexp_replace}} has the syntax: {{regexp_replace(source, > pattern, replacement [, flags ])}}. This is not compatible with our syntax > {{regexp_replace(str, regexp, rep)}}. The _*flags*_ parameter is an optional > text string containing zero or more single-letter flags that change the > function's behavior. Flag {{i}} specifies case-insensitive matching, while > flag g specifies replacement of each matching substring rather than only the > first one. Some examples: > {noformat} > regexp_replace('foobarbaz', 'b..', 'X') > fooXbaz > regexp_replace('foobarbaz', 'b..', 'X', 'g') > fooXX > regexp_replace('foobarbaz', 'b(..)', 'X\1Y', 'g') > fooXarYXazY > {noformat} > More details: > https://www.postgresql.org/docs/11/functions-matching.html#FUNCTIONS-POSIX-REGEXP -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org