Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9425

[Rust][DataFusion] Make ExecutionContext sharable between threads

Details

    Description

      I have been playing with pyo3 to ship and call this library directly from Python, and the current ExecutionContext can't be used within Python with threads due to the usage of `Box<dyn TableProvider>` on `datasources`, i.e. no `Sync` nor `Send`.

      This issue likely affects integration of DataFusion with other libraries.

      I propose that we allow ExecutionContext to be sharable between threads, e.g. using Box<dyn TableProvider + Send + Sync>.

      Attachments

        Issue Links

          Activity

            People

              jorgecarleitao Jorge Leitão
              jorgecarleitao Jorge Leitão
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h

                  Slack

                    Issue deployment