Module datafusion::physical_plan::expressions [−][src]
Defines physical expressions that can evaluated at runtime during query execution
Structs
Avg | AVG aggregate expression |
AvgAccumulator | An accumulator to compute the average |
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 and returns a runtime error on invalid cast |
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 NOT NULL expression |
IsNullExpr | IS NULL expression |
Literal | Represents a 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 |
TryCastExpr | TRY_CAST expression casts an expression to a specific data type and retuns NULL on invalid cast |
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 |
cast_with_options | 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 |
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. |
sum_return_type | function return type of a sum |
try_cast | Return a PhysicalExpression representing |