Function snapshot_physical_expr

Source
pub fn snapshot_physical_expr(
    expr: Arc<dyn PhysicalExpr>,
) -> Result<Arc<dyn PhysicalExpr>>
Expand description

Take a snapshot of the given PhysicalExpr if it is dynamic.

Take a snapshot of this PhysicalExpr if it is dynamic. This is used to capture the current state of PhysicalExprs that may contain dynamic references to other operators in order to serialize it over the wire or treat it via downcast matching.

See the documentation of PhysicalExpr::snapshot for more details.

ยงReturns

Returns an Option<Arc<dyn PhysicalExpr>> which is the snapshot of the PhysicalExpr if it is dynamic. If the PhysicalExpr does not have any dynamic references or state, it returns None.