ExprTrait

Trait ExprTrait 

Source
pub trait ExprTrait {
    // Required methods
    fn data_type(&self, input_schema: &Schema) -> QuillSQLResult<DataType>;
    fn nullable(&self, input_schema: &Schema) -> QuillSQLResult<bool>;
    fn evaluate(&self, tuple: &Tuple) -> QuillSQLResult<ScalarValue>;
    fn to_column(&self, input_schema: &Schema) -> QuillSQLResult<Column>;
}

Required Methods§

Source

fn data_type(&self, input_schema: &Schema) -> QuillSQLResult<DataType>

Get the data type of this expression, given the schema of the input

Source

fn nullable(&self, input_schema: &Schema) -> QuillSQLResult<bool>

Determine whether this expression is nullable, given the schema of the input

Source

fn evaluate(&self, tuple: &Tuple) -> QuillSQLResult<ScalarValue>

Evaluate an expression against a Tuple

Source

fn to_column(&self, input_schema: &Schema) -> QuillSQLResult<Column>

convert to a column with respect to a schema

Implementors§