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

Function physical_plan_from_bytes

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

Deserialize a PhysicalPlan from bytes

(
    bytes: &[u8],
    ctx: &TaskContext,
)

Source from the content-addressed store, hash-verified

242
243/// Deserialize a PhysicalPlan from bytes
244pub fn physical_plan_from_bytes(
245 bytes: &[u8],
246 ctx: &TaskContext,
247) -> Result<Arc<dyn ExecutionPlan>> {
248 let extension_codec = DefaultPhysicalExtensionCodec {};
249 let proto_converter = DefaultPhysicalProtoConverter {};
250 physical_plan_from_bytes_with_proto_converter(
251 bytes,
252 ctx,
253 &extension_codec,
254 &proto_converter,
255 )
256}
257
258/// Deserialize a PhysicalPlan from bytes
259pub fn physical_plan_from_bytes_with_extension_codec(

Used in the wild real call sites across dependent graphs

searching dependent graphs…