ritesh-kapoor commented on a change in pull request #1847: [CALCITE-3647] MySQL 
COMPRESS function support
URL: https://github.com/apache/calcite/pull/1847#discussion_r390241758
 
 

 ##########
 File path: 
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java
 ##########
 @@ -172,6 +172,12 @@ private SqlLibraryOperators() {
   @LibraryOperator(libraries = {MYSQL, ORACLE})
   public static final SqlFunction REGEXP_REPLACE = new 
SqlRegexpReplaceFunction();
 
+  @LibraryOperator(libraries = {MYSQL})
+  public static final SqlFunction COMPRESS = new SqlFunction("COMPRESS", 
SqlKind.OTHER_FUNCTION,
+      ReturnTypes.cascade(ReturnTypes.explicit(SqlTypeName.VARBINARY),
+          SqlTypeTransforms.TO_NULLABLE), null, OperandTypes.STRING, 
SqlFunctionCategory.SYSTEM);
+
 
 Review comment:
   Thanks @danny0405. I have made the changes 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to