NobiGo commented on code in PR #3806:
URL: https://github.com/apache/calcite/pull/3806#discussion_r1623691617


##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -974,12 +974,12 @@ static RelDataType deriveTypeSplit(SqlOperatorBinding 
operatorBinding,
       new SqlLikeOperator("NOT ILIKE", SqlKind.LIKE, true, false);
 
   /** The regex variant of the LIKE operator. */
-  @LibraryOperator(libraries = {SPARK, HIVE})
+  @LibraryOperator(libraries = {SPARK, HIVE, MYSQL})
   public static final SqlSpecialOperator RLIKE =
       new SqlLikeOperator("RLIKE", SqlKind.RLIKE, false, true);
 
   /** The regex variant of the NOT LIKE operator. */
-  @LibraryOperator(libraries = {SPARK, HIVE})
+  @LibraryOperator(libraries = {SPARK, HIVE, MYSQL})

Review Comment:
   @YiwenWu @caicancai In MySQL, Use 0 or 1 to replace the TRUE or false.
   In MySQL Example:
   `SELECT 1 = 1 FROM Product;`
   will return 1 to replace the true.
   And For example:
   `SELECT * FROM Product where Name not rlike '.apper Plus';`
   the NOT RLIKE can be used TRUE or False, So I think we don't add another 
operator for this.
   Same as `REGEXP_LIKE` function in SqlLibraryOperators.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to