pub fn length(array: &dyn Array) -> Result<ArrayRef>
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 and BinaryArray/LargeBinaryArray
  • length of null is null.