fn from(struct_array: &StructArray) -> Self {
        if let DataType::Struct(fields) = struct_array.data_type() {
            let schema = Schema::new(fields.clone());
            let columns = struct_array.values().to_vec();
            RecordBatch { schema, columns }
        } else {
            unreachable!("unable to get datatype as struct")
        }
    }
/// Create a record batch from struct array.
///
/// This currently does not flatten and nested struct types
Create a record batch from struct array.
This currently does not flatten and nested struct types
Create a record batch from struct array . This currently does not flatten and nested struct types
fn from(struct_array: &StructArray) -> Self {
        if let DataType::Struct(fields) = struct_array.data_type() {
            let schema = Schema::new(fields.clone());
            let columns = struct_array.values().to_vec();
            RecordBatch { schema, columns }
        } else {
            unreachable!("unable to get datatype as struct")
        }
    }
fn from ( struct_array : & StructArray ) -> Self { if let DataType :: Struct ( fields ) = struct_array . data_type ( ) { let schema = Schema :: new ( fields . clone ( ) ) ; let columns = struct_array . values ( ) . to_vec ( ) ; RecordBatch { schema , columns } } else { unreachable ! ( " " ) } }
Create a record batch from struct array.
Create a record batch from struct array .
struct_array
&StructArray
struct_array
&StructArray