pub fn timestamp_array_to_primitive( ts_array: &ArrayRef, ) -> Option<(PrimitiveArray<Int64Type>, TimeUnit)>