pub fn length(array: &dyn Array) -> Result<Arc<dyn Array>, ArrowError>
Expand description
Returns an array of Int32/Int64 denoting the length of each value in the array. For list array, length is the number of elements in each list. For string array and binary array, length is the number of bytes of each value.
- this only accepts ListArray/LargeListArray, StringArray/LargeStringArray, BinaryArray/LargeBinaryArray, and FixedSizeListArray, or DictionaryArray with above Arrays as values
- length of null is null.