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§
- Physical
Expr Encode Ctx - Encoder context handed to
super::PhysicalExpr::try_to_proto.
Traits§
- Physical
Expr Encode - Internal dispatch trait. Implementors live in
datafusion-protoand wrap the existingPhysicalExtensionCodec+PhysicalProtoConverterExtensionplumbing. Expression authors should usePhysicalExprEncodeCtxinstead of calling this directly.