From 213b7f5d100d188d90e07e615da43e2e3baad10c Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Mon, 29 Mar 2021 13:29:24 -0500 Subject: [PATCH] Remove unused JVM array creation (#7748) The JNI method to build a column from Arrow creates a Java array but then doesn't use it. This removes the unnecessary JVM callback and object creation. Authors: - Jason Lowe (@jlowe) Approvers: - Robert (Bobby) Evans (@revans2) URL: https://github.com/rapidsai/cudf/pull/7748 --- java/src/main/native/src/ColumnVectorJni.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/java/src/main/native/src/ColumnVectorJni.cpp b/java/src/main/native/src/ColumnVectorJni.cpp index 737abea6f13..ba0e4f05714 100644 --- a/java/src/main/native/src/ColumnVectorJni.cpp +++ b/java/src/main/native/src/ColumnVectorJni.cpp @@ -85,7 +85,6 @@ JNIEXPORT jlong JNICALL Java_ai_rapids_cudf_ColumnVector_fromArrow(JNIEnv *env, auto null_buffer = arrow::Buffer::Wrap(static_cast(validity_address), static_cast(validity_length)); auto offsets_buffer = arrow::Buffer::Wrap(static_cast(offsets_address), static_cast(offsets_length)); - cudf::jni::native_jlongArray outcol_handles(env, 1); std::shared_ptr arrow_array; switch (n_type) { case cudf::type_id::DECIMAL32: