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

Function deserialize_bytes

datafusion/substrait/src/serializer.rs:77–81  ·  view source on GitHub ↗

Deserializes a plan from the bytes.

(proto_bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

75
76/// Deserializes a plan from the bytes.
77pub async fn deserialize_bytes(proto_bytes: Vec<u8>) -> Result<Box<Plan>> {
78 Ok(Box::new(Message::decode(&*proto_bytes).map_err(|e| {
79 DataFusionError::Substrait(format!("Failed to decode plan: {e}"))
80 })?))
81}

Callers 1

deserializeFunction · 0.85

Calls 1

newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…