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


##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -551,7 +551,7 @@ static RelDataType deriveTypeSplit(SqlOperatorBinding 
operatorBinding,
   public static final SqlFunction REGEXP_SUBSTR = 
REGEXP_EXTRACT.withName("REGEXP_SUBSTR");
 
   /** The "REGEXP(value, regexp)" function, equivalent to {@link #RLIKE}. */
-  @LibraryOperator(libraries = {SPARK})
+  @LibraryOperator(libraries = {SPARK, HIVE})

Review Comment:
   According to the official documentation, Hive does not support REGEXP(A, B).
   
   https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
   <img width="333" alt="image" 
src="https://github.com/apache/calcite/assets/7956306/2cf95634-a354-45e1-a2eb-bb4e8dd08f98";>
   



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