Skip to main content

Module proto_encode

Module proto_encode 

Source
Available on crate feature proto only.
Expand description

Encode-side context for PhysicalExpr::try_to_proto.

Expression authors only ever see proto_encode::PhysicalExprEncodeCtx: a concrete struct with stable methods. Internally it dispatches to a proto_encode::PhysicalExprEncode implementor that lives in datafusion-proto, which is what lets physical-expr-common stay free of datafusion-proto as a dep.

More specialized helpers (e.g. encoding UDFs/UDAFs/UDWFs through the extension codec) can be added to the context as expressions migrate; today they’re not required because the encoder forwards to the existing codec via the proto converter.

Structs§

PhysicalExprEncodeCtx
Encoder context handed to super::PhysicalExpr::try_to_proto.

Traits§

PhysicalExprEncode
Internal dispatch trait. Implementors live in datafusion-proto and wrap the existing PhysicalExtensionCodec + PhysicalProtoConverterExtension plumbing. Expression authors should use PhysicalExprEncodeCtx instead of calling this directly.