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-6444] Add a function library for Amazon Redshift
To use the Redshift library, add 'fun=redshift' to your connect string. The Redshift library contains all functions in the Postgres library by default, unless you add `excludeLibraries` in the annotation on the function definition, and of course you can add functions that are Redshift-only. * A SqlLibrary can now have parent. * SqlLibraries will inherit functions from the parent by default. * An SqlOperator can specify libraries that it should be excluded from; it is only needed when a library might inherit the function. * The new Amazon Redshift function library extends the PostgreSQL function library. PostgreSQL function library: * Removed ENDS_WITH function Amazon Redshift function library is as Postgres, except: * Added DECODE function * Added NVL function * Added NVL2 function * Added GREATEST function * Added LEAST function * Added REGEXP_REPLACE * Added CONCAT function (only 2 arguments) * Added TO_CHAR function (default implementation) * Removed STARTS_WITH function * Removed ARRAY_AGG function * Removed ARRAY_CONCAT_AGG function * Removed STRING_AGG function * Removed ILIKE function * Removed NOT_ILIKE function * Removed CONCAT_FUNCTION_WITH_NULL function * Removed CONCAT function (variable arguments) * Removed CONCAT_WS function * Removed TO_CHAR (PostgreSQL implementation) * Removed SHA256 function * Removed SHA512 function Close apache#3829
- Loading branch information
1 parent
d74b283
commit cdb6522
Showing
8 changed files
with
399 additions
and
267 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
Oops, something went wrong.