YiwenWu commented on code in PR #3806:
URL: https://github.com/apache/calcite/pull/3806#discussion_r1623715553
##########
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:
Regarding the question of whether the return value needs to be completely
consistent. I'm not sure, this is an ambiguous question.
If Calcite allows the return value to be different from the corresponding
engine, then it is okay to handle it this way.
--
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]