jayzhan211 commented on issue #7353:
URL: 
https://github.com/apache/arrow-datafusion/issues/7353#issuecomment-1743985067

   > > I think the idea would be to use arrow-ipc
   > 
   > arrow-ipc converts data to `EncodedData` (Vec<u8>) and writes them to a 
file, it is quite different from the current proto/ implementation, which just 
turns them into bytes (Vec<u8>) but doesn't write to a file. If I understand 
correctly, prost::Message is the equivalent concept of arrow-ipc's 
`EncodedData`.
   > 
   > I think there are two approaches
   > 
   > If we remain from_proto / to_proto for ScalarValue::List , we can get the 
ipc-message from arrow-ipc and store those Vec in prost::Message. Not sure 
whether we can do this but since they are all Vec, so probably doable.
   > 
   > The other way is we introduce from_ipc / to_ipc for ScalarValue::List and 
no prost for ScalarValue::List, and use `write/read` to store `EncodedData` 
into a given filename, but I am not sure whether mixing prost and arrow-ipc 
makes sense while building logical plan and physical plan.
   > 
   > @tustvold How do you think about these two approaches?
   
   Maybe I could just convert ArrayRef to Vec<ScalarValue>, probably the 
easiest fix.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to