Jefffrey commented on issue #9042: URL: https://github.com/apache/arrow-datafusion/issues/9042#issuecomment-1914224649
Hey there. This isn't exactly a DataFusion issue, moreover an issue with using Tokio the wrong way. It's a bit hard to see from your code as it isn't formatted properly, but it looks like you're spawning a new thread and then trying to execute an asynchronous function from there? You'll need to ensure that thread has access to a Runtime, maybe from the main thread (created by the `#[tokio::main]` macro), but it's hard to suggest a proper solution as I don't know your exact use case. Either way, here's some reference links on Tokio that might help you get familiar with asynchronous programming with it: - https://tokio.rs/tokio/tutorial/hello-tokio - https://docs.rs/tokio-macros/latest/tokio_macros/attr.main.html - https://docs.rs/tokio/latest/tokio/runtime/struct.Runtime.html -- 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]
