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 ๐ - test_
utils - Helper functions to construct prost [
ExprNode
] for test. - value ๐
- wrapper ๐
Structsยง
- Context
- An optional context that can be used in a function.
- Input
RefExpression - A reference to a column in input relation.
- Literal
Expression - A literal expression.
- LogReport
- Log the error to report an error during evaluation.
- NonStrict
Expression - 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ยง
- Value
Impl - The type-erased return value of an expression.
- Value
Ref - The generic reference type of
ValueImpl
. Used as the arguments of expressions.
Traitsยง
- Eval
Error Report - Report an error during evaluation.
- Expression
- Interface of an expression.
- Expression
BoxExt - Extension trait for boxing expressions.
Functionsยง
- build_
batch_ expr_ from_ prost - Build a strict or non-strict expression according to expr context.
- build_
from_ pretty - Build an expression from a string.
- build_
from_ prost - Build an expression from protobuf.
- build_
func - Build an expression in
FuncCall
variant. - build_
func_ non_ strict - Build an expression in
FuncCall
variant in non-strict mode. - build_
non_ strict_ from_ prost - Build an expression from protobuf in non-strict mode.
Type Aliasesยง
- Boxed
Expression - An owned dynamically typed
Expression
.