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