Module datafusion::physical_plan::expressions [−][src]
Expand description
Defines physical expressions that can evaluated at runtime during query execution
Modules
Module with some convenient methods used in expression building
Structs
APPROX_DISTINCT aggregate expression
AVG aggregate expression
An accumulator to compute the average
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
COUNT aggregate expression Returns the amount of non-null values of the given expression.
expression to get a field of a struct array.
InList
IS NOT NULL expression
IS NULL expression
Represents a literal value
MAX aggregate expression
MIN aggregate expression
Negative expression
Not expression
nth_value expression
Represents Sort operation for a column in a RecordBatch
row_number expression
SUM aggregate expression
TRY_CAST expression casts an expression to a specific data type and retuns NULL on invalid cast
Constants
provide Datafusion default cast options
Statics
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
function return type of an average
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.
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.
Create a CASE expression
Return a PhysicalExpression representing expr
casted to
cast_type
, if any casting is needed.
Internal cast function for casting ColumnarValue -> ColumnarValue for cast_type
Return a PhysicalExpression representing expr
casted to
cast_type
, if any casting is needed.
Create a column expression
Create a cume_dist window function
Create a dense rank window function
returns the name of the state
Creates a unary expression InList
Create an IS NOT NULL expression
Create an IS NULL expression
lag() window function
lead() window function
Create a literal expression
Creates a unary expression NEGATIVE
Creates a unary expression NOT
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.
Create a percent rank window function
Create a rank window function
function return type of a sum
Return a PhysicalExpression representing expr
casted to
cast_type
, if any casting is needed.