Skip to main content

extension_expr_node

Function extension_expr_node 

Source
pub fn extension_expr_node<T: ExtensionExprFromProto>(
    ctx: &PhysicalExprEncodeCtx<'_>,
    payload: Vec<u8>,
    children: Vec<&Arc<dyn PhysicalExpr>>,
) -> Result<PhysicalExprNode>
Available on crate feature proto only.
Expand description

Build the PhysicalExprNode for an extension expression T: an Extension variant carrying payload, the encoded children, and T’s NAME.

The one supported way for an extension expression to write itself. It is a free function rather than a method on PhysicalExprEncodeCtx because the context lives in datafusion-physical-expr-common, below the crate that can name ExtensionExprFromProto.