risingwave_expr::expr::build

Function build_batch_expr_from_prost

source
pub fn build_batch_expr_from_prost(prost: &ExprNode) -> Result<BoxedExpression>
Expand description

Build a strict or non-strict expression according to expr context.

When strict mode is off, the expression will not fail but leave a null value as result.

Unlike build_non_strict_from_prost, the returning value here can be either non-strict or strict. Thus, the caller is supposed to handle potential errors under strict mode.