houqp commented on issue #1007:
URL: 
https://github.com/apache/arrow-datafusion/issues/1007#issuecomment-922420030


   I haven't put a lot of thought into this, so take it with a grain of salt ;)
   
   I think one possible solution would be creating a new wrapper struct that 
wraps the DFSchema type within the python crate, then annotate it with 
`pyclass` (https://pyo3.rs/master/class.html#defining-a-new-class) so the 
wrapper type can be returned directly to python. You won't be able to return a 
reference to python, so you need to clone the `&DFSchema` reference and store 
it inside the wrapper struct.


-- 
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