Trait TypePlanner

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

This trait allows users to customize the behavior of the data type planning

Provided Methods§

Source

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

Plan SQL type to DataFusion data type

Returns None if not possible

Implementors§