MCPcopy Create free account
hub / github.com/apache/datafusion / physical_plan_to_bytes

Function physical_plan_to_bytes

datafusion/proto/src/bytes/mod.rs:187–191  ·  view source on GitHub ↗

Serialize a PhysicalPlan as bytes

(plan: Arc<dyn ExecutionPlan>)

Source from the content-addressed store, hash-verified

185
186/// Serialize a PhysicalPlan as bytes
187pub fn physical_plan_to_bytes(plan: Arc<dyn ExecutionPlan>) -> Result<Bytes> {
188 let extension_codec = DefaultPhysicalExtensionCodec {};
189 let proto_converter = DefaultPhysicalProtoConverter {};
190 physical_plan_to_bytes_with_proto_converter(plan, &extension_codec, &proto_converter)
191}
192
193/// Serialize a PhysicalPlan as JSON
194#[cfg(feature = "json")]

Used in the wild real call sites across dependent graphs

searching dependent graphs…