hsiang-c commented on code in PR #4580:
URL: https://github.com/apache/datafusion-comet/pull/4580#discussion_r3382221070


##########
native/spark-expr/src/array_funcs/size.rs:
##########
@@ -198,6 +198,14 @@ fn spark_size_scalar(scalar: &ScalarValue) -> 
Result<ScalarValue, DataFusionErro
                 Ok(ScalarValue::Int32(Some(len)))
             }
         }
+        ScalarValue::Map(array) => {
+            if array.is_null(0) {
+                Ok(ScalarValue::Int32(Some(-1)))

Review Comment:
   Does the  ` spark.sql.legacy.sizeOfNull` config change the return value here?



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