caicancai commented on code in PR #3806:
URL: https://github.com/apache/calcite/pull/3806#discussion_r1623169057
##########
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 Thank you for your reminder. If we want to add RLIKE to MySQL, I
think we should write an Operator, just like the log function, to adapt to
different database dialects.
--
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]