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

[Rust][DataFusion] Make ExecutionContext sharable between threads

    XMLWordPrintableJSON

    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

              • Assignee:
                jorgecarleitao Jorge Leitão
                Reporter:
                jorgecarleitao Jorge Leitão
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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