pub fn extract_union_data<T>( field: &str, map: &HashMap<String, usize>, children: &[Arc<dyn Array>], ) -> Result<T, Report>where T: ArrowMessage,
Helper function to extract data from a union array.