Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dataset/src/main/cpp/jni_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "arrow/array/concatenate.h"
#include "arrow/c/bridge.h"
#include "arrow/c/helpers.h"
#include "arrow/compute/initialize.h"
#include "arrow/dataset/api.h"
#include "arrow/dataset/file_base.h"
#ifdef ARROW_CSV
Expand Down Expand Up @@ -807,6 +808,13 @@ JNIEXPORT void JNICALL Java_org_apache_arrow_dataset_jni_JniWrapper_ensureS3Fina
JNI_METHOD_END()
}

JNIEXPORT void JNICALL Java_org_apache_arrow_dataset_jni_JniWrapper_initialize(
JNIEnv* env, jobject) {
JNI_METHOD_START
JniAssertOkOrThrow(arrow::compute::Initialize());
JNI_METHOD_END()
}

/*
* Class: org_apache_arrow_dataset_file_JniWrapper
* Method: makeFileSystemDatasetFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void ensureLoaded() {
}
loadRemaining();
ensureS3FinalizedOnShutdown();
JniWrapper.get().initialize();
}

private synchronized void loadRemaining() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,7 @@ public native long createScanner(
* uninitialized, then this is a noop.
*/
public native void ensureS3Finalized();

/** Initialize Arrow Compute. */
public native void initialize();
}
2 changes: 1 addition & 1 deletion docs/source/substrait.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Substrait
=========

The ``arrow-dataset`` module can execute Substrait_ plans via the :external+arrow:doc:`Acero <cpp/streaming_execution>`
The ``arrow-dataset`` module can execute Substrait_ plans via the :external+arrow:doc:`Acero <cpp/acero>`
query engine.

Executing Queries Using Substrait Plans
Expand Down
Loading