rluvaton commented on code in PR #23923:
URL: https://github.com/apache/datafusion/pull/23923#discussion_r3658622043


##########
datafusion/functions-nested/src/empty.rs:
##########
@@ -122,9 +122,17 @@ fn array_empty_inner(args: &[ArrayRef]) -> 
Result<ArrayRef> {
 }
 
 fn general_array_empty<O: OffsetSizeTrait>(array: &ArrayRef) -> 
Result<ArrayRef> {
-    let result = as_generic_list_array::<O>(array)?
-        .iter()

Review Comment:
   calling `iter` on `ListArray` is slow since it slice each list values which 
every slice recompute the null count and more
   



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