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§
Sourcefn data_type(&self, input_schema: &Schema) -> QuillSQLResult<DataType>
fn data_type(&self, input_schema: &Schema) -> QuillSQLResult<DataType>
Get the data type of this expression, given the schema of the input
Sourcefn nullable(&self, input_schema: &Schema) -> QuillSQLResult<bool>
fn nullable(&self, input_schema: &Schema) -> QuillSQLResult<bool>
Determine whether this expression is nullable, given the schema of the input
Sourcefn evaluate(&self, tuple: &Tuple) -> QuillSQLResult<ScalarValue>
fn evaluate(&self, tuple: &Tuple) -> QuillSQLResult<ScalarValue>
Evaluate an expression against a Tuple
Sourcefn to_column(&self, input_schema: &Schema) -> QuillSQLResult<Column>
fn to_column(&self, input_schema: &Schema) -> QuillSQLResult<Column>
convert to a column with respect to a schema