caicancai commented on code in PR #3806:
URL: https://github.com/apache/calcite/pull/3806#discussion_r1624450724
##########
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:
I have no other comments. I think it can be improved by adding comments to
explain this approach.
--
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]