[−][src]Module datafusion::physical_plan::expressions
Defines physical expressions that can evaluated at runtime during query execution
Structs
Avg | AVG aggregate expression |
BinaryExpr | Binary expression |
CaseExpr | The CASE expression is similar to a series of nested if/else and there are two forms that can be used. The first form consists of a series of boolean "when" expressions with corresponding "then" expressions, and an optional "else" expression. |
CastExpr | CAST expression casts an expression to a specific data type |
Column | Represents the column at a given index in a RecordBatch |
Count | COUNT aggregate expression Returns the amount of non-null values of the given expression. |
InListExpr | InList |
IsNotNullExpr | IS NULL expression |
IsNullExpr | IS NULL expression |
Literal | Represents a non-null literal value |
Max | MAX aggregate expression |
Min | MIN aggregate expression |
NegativeExpr | Negative expression |
NotExpr | Not expression |
PhysicalSortExpr | Represents Sort operation for a column in a RecordBatch |
Sum | SUM aggregate expression |
Statics
SUPPORTED_NULLIF_TYPES | Currently supported types by the nullif function. The order of these types correspond to the order on which coercion applies This should thus be from least informative to most informative |
Functions
avg_return_type | function return type of an average |
binary | Create a binary expression whose arguments are correctly coerced. This function errors if it is not possible to coerce the arguments to computational types supported by the operator. |
binary_operator_data_type | Returns the return type of a binary operator or an error when the binary operator cannot perform the computation between the argument's types, even after type coercion. |
case | Create a CASE expression |
cast | Return a PhysicalExpression representing |
col | Create a column expression |
format_state_name | returns the name of the state |
in_list | Creates a unary expression InList |
is_not_null | Create an IS NOT NULL expression |
is_null | Create an IS NULL expression |
is_numeric | Determine if a DataType is numeric or not |
is_signed_numeric | Determine if a DataType is signed numeric or not |
lit | Create a literal expression |
negative | Creates a unary expression NEGATIVE |
not | Creates a unary expression NOT |
nullif_func | Implements NULLIF(expr1, expr2) Args: 0 - left expr is any array 1 - if the left is equal to this expr2, then the result is NULL, otherwise left value is passed. |
numerical_coercion | Coercion rule for numerical types: The type that both lhs and rhs can be casted to for numerical calculation, while maintaining maximum precision |
sum_return_type | function return type of a sum |