Expand description
Expressions in RisingWave.
All expressions are implemented under the Expression
trait.
ยงConstruction
Expressions can be constructed by build_func()
function, which returns a
BoxedExpression
.
They can also be transformed from the prost ExprNode
using the build_from_prost()
function.
ยงEvaluation
Expressions can be evaluated using the eval
function.
Re-exportsยง
Modulesยง
- and_or ๐For expression that only accept two nullable arguments as input.
- build ๐
- expr_
input_ ๐ref - expr_
literal ๐ - expr_
some_ ๐all - expr_
udf ๐ - Helper functions to construct prost
ExprNode
for test. - value ๐
- wrapper ๐
Structsยง
- An optional context that can be used in a function.
- A reference to a column in input relation.
- A literal expression.
- Log the error to report an error during evaluation.
- An type-safe wrapper that indicates the inner expression can be evaluated in a non-strict manner, i.e., developers can directly call
eval_infallible
andeval_row_infallible
without checking the result.
Enumsยง
- The type-erased return value of an expression.
- The generic reference type of
ValueImpl
. Used as the arguments of expressions.
Traitsยง
- Report an error during evaluation.
- Interface of an expression.
- Extension trait for boxing expressions.
Functionsยง
- Build an expression from a string.
- Build an expression from protobuf.
- Build an expression in
FuncCall
variant. - Build an expression in
FuncCall
variant in non-strict mode. - Build an expression from protobuf in non-strict mode.
Type Aliasesยง
- An owned dynamically typed
Expression
.