You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/07 05:57:19 UTC

[GitHub] [arrow-datafusion] JYInMyHeart opened a new issue, #2847: [Question]How to call an async function in `ExecutionPlan::exec` method?

JYInMyHeart opened a new issue, #2847:
URL: https://github.com/apache/arrow-datafusion/issues/2847

   I had customized some execution plan struct. In datafusion 7.1.0 the `ExecutionPlan::exec` method is async so I can directly call some async functions in it when I Implement some methods for `ExecutionPlan`. After upgrade datafusion to 9.0.0 the `ExecutionPlan::exec` becomes sync. So how can I call an async function in `ExecutionPlan::exec` method?
   I have seen that `SortExec` in datafusion-core use `futures::stream::once` to wrap async calls. But `futures::stream::once` is not public for me. So how can I make it? 


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] JYInMyHeart closed issue #2847: [Question]How to call an async function in `ExecutionPlan::exec` method?

Posted by GitBox <gi...@apache.org>.
JYInMyHeart closed issue #2847: [Question]How to call an async function in `ExecutionPlan::exec` method?
URL: https://github.com/apache/arrow-datafusion/issues/2847


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] tustvold commented on issue #2847: [Question]How to call an async function in `ExecutionPlan::exec` method?

Posted by GitBox <gi...@apache.org>.
tustvold commented on issue #2847:
URL: https://github.com/apache/arrow-datafusion/issues/2847#issuecomment-1177581973

   `futures::stream::once` is part of the [`futures`](https://docs.rs/futures/latest/futures/) crate, and so if you add this to your Cargo.toml you should be able to make use of it


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] JYInMyHeart commented on issue #2847: [Question]How to call an async function in `ExecutionPlan::exec` method?

Posted by GitBox <gi...@apache.org>.
JYInMyHeart commented on issue #2847:
URL: https://github.com/apache/arrow-datafusion/issues/2847#issuecomment-1178771289

   @tustvold I fixed it. Thanks for your reply.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] JYInMyHeart commented on issue #2847: [Question]How to call an async function in `ExecutionPlan::exec` method?

Posted by GitBox <gi...@apache.org>.
JYInMyHeart commented on issue #2847:
URL: https://github.com/apache/arrow-datafusion/issues/2847#issuecomment-1178594152

   > `futures::stream::once` is part of the [`futures`](https://docs.rs/futures/latest/futures/) crate, and so if you add this to your Cargo.toml you should be able to make use of it
    
   But I still don't know how to write the correct code even I add `futures` crate.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org