Skip to content

Commit 17bb6cb

Browse files
committed
Remove unused Python token from Substrait deserialization
AI Disclosure: This code was written in part by an AI agent.:
1 parent 9391a79 commit 17bb6cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/core/src/substrait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl PySubstraitSerializer {
109109
) -> PyDataFusionResult<PyPlan> {
110110
PySubstraitSerializer::serialize_bytes(sql, ctx, py).and_then(|proto_bytes| {
111111
let proto_bytes = proto_bytes.bind(py).cast::<PyBytes>().unwrap();
112-
PySubstraitSerializer::deserialize_bytes(proto_bytes.as_bytes().to_vec(), py)
112+
PySubstraitSerializer::deserialize_bytes(proto_bytes.as_bytes().to_vec())
113113
})
114114
}
115115

@@ -131,7 +131,7 @@ impl PySubstraitSerializer {
131131
}
132132

133133
#[staticmethod]
134-
pub fn deserialize_bytes(proto_bytes: Vec<u8>, _py: Python) -> PyDataFusionResult<PyPlan> {
134+
pub fn deserialize_bytes(proto_bytes: Vec<u8>) -> PyDataFusionResult<PyPlan> {
135135
let plan = serializer::deserialize_bytes(&proto_bytes)?;
136136
Ok(PyPlan { plan: *plan })
137137
}

0 commit comments

Comments
 (0)