rluvaton commented on code in PR #22158:
URL: https://github.com/apache/datafusion/pull/22158#discussion_r3239436248
##########
datafusion/common/src/utils/mod.rs:
##########
@@ -1142,17 +1141,18 @@ fn truncate_list_nulls<O: OffsetSizeTrait>(
&Int64Array::new_scalar(0)
};
- let not_empty = neq(&lengths, zero)?;
- let null_and_non_empty = &!nulls.inner() & not_empty.values();
+ let empty = arrow::compute::kernels::cmp::eq(&lengths, zero)?;
+ let valid_or_empty = empty.values() | nulls.inner();
+ let valid_or_empty = BooleanArray::from(valid_or_empty);
Review Comment:
This is really premature optimization
--
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]