forked from apache/calcite
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CALCITE-6310] Add REGEXP_REPLACE function (enabled in PostgreSQL lib…
…rary) Reworked the overloading of REGEXP_REPLACE: * There is a two argument version that is only for Amazon Redshift, replacement string is the empty string * There is a three argument version that is for everything except PostgreSQL * PostgreSQL has its own 3 and 4 argument versions * PostgreSQL 3 argument version will only replace first occurrence * The g flag is now support for the 4 argument function in PostgreSQL * BigQuery only supports a 3 argument version REGEXP_REPLACE * BigQuery uses different syntax to refer to capture groups * There is a new REGEXP_REPLACE for BigQuery * No longer need to examine the ConformanceEnum to pick the correct implementation * MySQL and Amazon Redshift have two signatures with 5 arguments * Oracle only has one signature with 5 arguments
- Loading branch information
1 parent
ad66246
commit 0c6a3c1
Showing
17 changed files
with
365 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 0 additions & 75 deletions
75
core/src/main/java/org/apache/calcite/sql/fun/SqlRegexpReplaceFunction.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.