Module datafusion_physical_expr::expressions
source · Expand description
Defines physical expressions that can evaluated at runtime during query execution
Structs§
- Binary expression
- 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.
- CAST expression casts an expression to a specific data type and returns a runtime error on invalid cast
- Represents the column at a given index in a RecordBatch
- CumeDist calculates the cume_dist in the window function with order by
- InList
- IS NOT NULL expression
- IS NULL expression
- Represents a literal value
- Negative expression
- A place holder expression, can not be evaluated.
- Not expression
- nth_value expression
- Represents Sort operation for a column in a RecordBatch
- Rank calculates the rank in the window function with order by
- row_number expression
- TRY_CAST expression casts an expression to a specific data type and returns NULL on invalid cast
- window shift expression
Enums§
- Module with some convenient methods used in expression building TODO: Move this to functions-aggregate module Enum used for differentiating population and sample for statistical functions
Functions§
- 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.
- Create a CASE expression
- Return a PhysicalExpression representing
expr
casted tocast_type
, if any casting is needed. - Create a column expression
- Create a cume_dist window function
- Create a dense rank window function
- Build state name. State is the intermediate state of the aggregate function.
- Creates a unary expression InList
- Create an IS NOT NULL expression
- Create an IS NULL expression
- lag() window function
- lead() window function
- Create a like expression, erroring if the argument types are not compatible.
- Create a literal expression
- Creates a unary expression NEGATIVE
- Creates a unary expression NOT
- Create a percent rank window function
- Create a rank window function
- Return a PhysicalExpression representing
expr
casted tocast_type
, if any casting is needed.