-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Describe the bug
-
try_from_arrayproduces inconsistentScalarValue::Listfor valid and non-valid (NULL) valuesFor NULL value in ListArray,
try_from_arrayproducesScalarValue::List(new_null_array(&DataType::Null, 0))which isn't consistent with the case when invokingtry_from_arrayon valid value ofListArray.Fro valid value,
try_from_arrayproduces aListArraycontaining single element of the specified value in providedListArray. For example, if input array isListArray[[1, 2, 3], [4, 5, 6]]],try_from_array(arr, 0)will produceListArray[[1, 2, 3]].For NULL value,
try_from_arraycurrently produces a null array ofDataType::Nulltype. Not only it is not aListArray, the data type is not the element type of providedListArraytoo. -
ScalarValue::Listhas same value and datatype forListArrayand nestedListArray's NULL values
NULL values fromListArrayand nestedListArrayare the sameScalarValue::List(new_null_array(&DataType::Null, 0)). So their datatypes are the same. This is also incorrect.
To Reproduce
No response
Expected behavior
No response
Additional context
No response