viirya opened a new issue, #7968:
URL: https://github.com/apache/arrow-datafusion/issues/7968

   ### Describe the bug
   
   For NULL value in ListArray, `try_from_array` produces 
`ScalarValue::List(new_null_array(&DataType::Null, 0))` which isn't consistent 
with the case when invoking `try_from_array` on valid value of `ListArray`.
   
   Fro valid value, `try_from_array` produces a `ListArray` containing single 
element of the specified value in provided `ListArray`. For example, if input 
array is `ListArray[[1, 2, 3], [4, 5, 6]]]`, `try_from_array(arr, 0)` will 
produce `ListArray[[1, 2, 3]]`.
   
   For NULL value, `try_from_array` currently produces a null array 
of`DataType::Null` type. Not only it is not a `ListArray`, the data type is not 
the element type of provided `ListArray` too.
   
   
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


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

Reply via email to