I need to translate a working python code into rust. This code receives a json payload (the event object in the following snippet), the entries are the following:
input_schema: a string containing the base64 encoded input schema in apache-arrow format.
output_schema: a string containing the base64 encoded output schema in apache-arrow format.
input_records: a string containing the base64 data (record batches)
That results in the following error, while running deserialize_schema, suggesting deserialize_schema is not working properly or I am making something wrong. If I am wrong, can you help me with the correct translation into Rust using arrow2 crate?
In <Message@84>::header(): Invalid vtable length (length = 8)
I need to translate a working python code into rust. This code receives a json payload (the
event
object in the following snippet), the entries are the following:input_schema
: a string containing the base64 encoded input schema in apache-arrow format.output_schema
: a string containing the base64 encoded output schema in apache-arrow format.input_records
: a string containing the base64 data (record batches)The working python snnippet is the following:
How could I convert this snniped to Rust? I am still having problems in the beggining of the process, on how to extract the schema:
That results in the following error, while running
deserialize_schema
, suggestingdeserialize_schema
is not working properly or I am making something wrong. If I am wrong, can you help me with the correct translation into Rust using arrow2 crate?