Skip to content

[Question]How to call an async function in ExecutionPlan::exec method? #2847

@JYInMyHeart

Description

@JYInMyHeart

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions