/// Hydrates a dictionary to its underlying type
///
/// An IPC response, streaming or otherwise, defines its schema up front
/// which defines the mapping from dictionary IDs. It then sends these
/// dictionaries over the wire.
///
/// This requires identifying the different dictionaries in use, assigning
/// them IDs, and sending new dictionaries, delta or otherwise, when needed
///
/// This is tracked by #1318
///
/// For now we just hydrate the dictionaries to their underlying type
Hydrates a dictionary to its underlying type
An IPC response, streaming or otherwise, defines its schema up front
which defines the mapping from dictionary IDs. It then sends these
dictionaries over the wire.

This requires identifying the different dictionaries in use, assigning
them IDs, and sending new dictionaries, delta or otherwise, when needed

This is tracked by #1318

For now we just hydrate the dictionaries to their underlying type
Hydrates a dictionary to its underlying type An IPC response streaming or otherwise defines its schema up front which defines the mapping from dictionary IDs . It then sends these dictionaries over the wire . This requires identifying the different dictionaries in use assigning them IDs and sending new dictionaries delta or otherwise when needed This is tracked by #1318 For now we just hydrate the dictionaries to their underlying type
fn hydrate_dictionary(array: &ArrayRef) -> Result<ArrayRef> {
    match array.data_type() {
        DataType::Dictionary(_, value) => arrow::compute::cast(array, value),
        _ => unreachable!("not a dictionary"),
    }
}
fn hydrate_dictionary ( array : & ArrayRef ) -> Result < ArrayRef > { match array . data_type ( ) { DataType :: Dictionary ( _ , value ) => arrow :: compute :: cast ( array , value ) , _ => unreachable ! ( " " ) , } }
Hydrates a dictionary to its underlying type
An IPC response, streaming or otherwise, defines its schema up front
which defines the mapping from dictionary IDs.
Hydrates a dictionary to its underlying type An IPC response streaming or otherwise defines its schema up front which defines the mapping from dictionary IDs .
array
&ArrayRef