andygrove opened a new issue, #3345: URL: https://github.com/apache/datafusion-comet/issues/3345
## Description When `array_contains()` is called with a literal `cast(NULL as array<int>)` argument, Comet returns a different result than Spark. This was discovered when testing literal argument combinations for array functions with constant folding disabled. ## How to Reproduce ```sql SET spark.sql.optimizer.excludedRules=org.apache.spark.sql.catalyst.optimizer.ConstantFolding; SELECT array_contains(cast(NULL as array<int>), 1); ``` ## Expected Behavior Comet should return the same result as Spark for `array_contains` with a NULL array input. -- 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]
