Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Consume Substrait Plans #34222

Open
davisusanibar opened this issue Feb 16, 2023 · 0 comments
Open

[Java] Consume Substrait Plans #34222

davisusanibar opened this issue Feb 16, 2023 · 0 comments

Comments

@davisusanibar
Copy link
Contributor

davisusanibar commented Feb 16, 2023

Describe the enhancement requested

The main purpose is to expose Java API to be able to Consume Substrait Plans as an input data.

High level proposal will be:

  1. Create Java JNI Wrappers to call C++ Substrait API:
  • Call Result<std::shared_ptr<RecordBatchReader>> ExecuteSerializedPlan from JNI Wrappers
  • Expose the result in a C-Data Interface objects contract
  1. Create Java API to read C-Data Interface:
  • Call Java JNI Wrapper to execute serialized Substrait Plan
  • Convert C-Data Interface ArrowArrayStream into ArrowReader: Data.importArrayStream(this.allocator, arrowArrayStream)

Parent issue, see subtasks

Component(s)

Documentation, Java, Packaging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant