andygrove commented on code in PR #1700:
URL: https://github.com/apache/datafusion-comet/pull/1700#discussion_r2068997181


##########
spark/src/main/scala/org/apache/comet/serde/QueryPlanSerde.scala:
##########
@@ -1430,6 +1430,27 @@ object QueryPlanSerde extends Logging with CometExprShim 
{
         val optExpr = scalarFunctionExprToProto("ascii", childExpr)
         optExprWithInfo(optExpr, expr, castExpr)
 
+      case RegExpReplace(subject, pattern, replacement, startPosition) =>

Review Comment:
   `RLike` has this behavior:
   
   ```scala
         case RLike(left, right) =>
           // we currently only support scalar regex patterns
           right match {
             case Literal(pattern, DataTypes.StringType) =>
               if (!RegExp.isSupportedPattern(pattern.toString) &&
                 !CometConf.COMET_REGEXP_ALLOW_INCOMPATIBLE.get()) {
                 withInfo(
                   expr,
                   s"Regexp pattern $pattern is not compatible with Spark. " +
                     s"Set 
${CometConf.COMET_REGEXP_ALLOW_INCOMPATIBLE.key}=true " +
                     "to allow it anyway.")
                 return None
               }
   ```



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to