andygrove opened a new issue, #3343:
URL: https://github.com/apache/datafusion-comet/issues/3343

   ## Description
   
   When Spark's `ConstantFolding` optimizer rule is disabled, an all-literal 
`RLIKE` expression reaches the native engine, which crashes with:
   
   ```
   non scalar regexp patterns are not supported.
   ```
   
   The error message is misleading — the issue is that both the input string 
and the pattern are scalar literals.
   
   ## How to Reproduce
   
   ```sql
   SET 
spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.ConstantFolding;
   SET spark.comet.regexp.allowIncompatible=true;
   SELECT 'hello' RLIKE '^[a-z]+$';
   ```
   
   ## Expected Behavior
   
   The native engine should handle all-scalar RLIKE inputs gracefully — either 
by computing the correct result or by falling back to Spark.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to