Skip to content

Commit

Permalink
Fix JNI
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia committed Apr 11, 2023
1 parent 4244f0c commit e9a7543
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/src/main/native/src/HashJoinJni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

#include <optional>

#include <cudf/join.hpp>

#include "cudf_jni_apis.hpp"
Expand All @@ -27,7 +29,7 @@ JNIEXPORT jlong JNICALL Java_ai_rapids_cudf_HashJoin_create(JNIEnv *env, jclass,
cudf::jni::auto_set_device(env);
auto tview = reinterpret_cast<cudf::table_view const *>(j_table);
auto nulleq = j_nulls_equal ? cudf::null_equality::EQUAL : cudf::null_equality::UNEQUAL;
auto hash_join_ptr = new cudf::hash_join(*tview, nulleq);
auto hash_join_ptr = new cudf::hash_join(*tview, std::nullopt, nulleq);
return reinterpret_cast<jlong>(hash_join_ptr);
}
CATCH_STD(env, 0);
Expand Down

0 comments on commit e9a7543

Please sign in to comment.