jonathanc-n commented on code in PR #13209:
URL: https://github.com/apache/datafusion/pull/13209#discussion_r1825373557
##########
datafusion/functions-nested/src/resize.rs:
##########
@@ -134,6 +136,23 @@ pub(crate) fn array_resize_inner(arg: &[ArrayRef]) ->
Result<ArrayRef> {
return exec_err!("array_resize needs two or three arguments");
}
+ let array = &arg[0];
+
+ // Checks if entire array is null
+ if array.null_count() == array.len() {
Review Comment:
Thanks for pointing that out, I overlooked that.
--
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]