Trait TypePlanner

Source
pub trait TypePlanner:
    Debug
    + Send
    + Sync {
    // Provided method
    fn plan_type(
        &self,
        _sql_type: &DataType,
    ) -> Result<Option<DataType>, DataFusionError> { ... }
}
Expand description

Customize planning SQL types to DataFusion (Arrow) types.

Provided Methods§

Source

fn plan_type( &self, _sql_type: &DataType, ) -> Result<Option<DataType>, DataFusionError>

Plan SQL ast::DataType to DataFusion DataType

Returns None if not possible

Implementors§