andygrove commented on issue #25981: URL: https://github.com/apache/datafusion/issues/25981#issuecomment-6698731954
Running `array_contains.slt` on Spark 4.2.0 with the runner in #27165 found one more difference. An untyped `NULL` argument returns NULL in DataFusion, but Spark rejects it during analysis: ```sql SELECT array_contains(NULL, 1) SELECT array_contains(array(1, 2, 3), NULL) -- [DATATYPE_MISMATCH.NULL_TYPE] Cannot resolve "array_contains(NULL, 1)" due to data type mismatch: Null typed values cannot be used as arguments of `array_contains`. SQLSTATE: 42K09 ``` Spark has rejected these in every version from 3.4 to 4.2, so this does not depend on the Spark version. -- 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]
