diff --git a/java/dataset/src/main/cpp/jni_wrapper.cc b/java/dataset/src/main/cpp/jni_wrapper.cc index 2b70aa2ff02c5..e6462974d8a9d 100644 --- a/java/dataset/src/main/cpp/jni_wrapper.cc +++ b/java/dataset/src/main/cpp/jni_wrapper.cc @@ -157,7 +157,7 @@ arrow::Result> GetFileFormat( arrow::Result> GetFragmentScanOptions(jint file_format_id, - const std::unordered_map& configs) { + const std::unordered_map& configs) { switch (file_format_id) { #ifdef ARROW_CSV case 3: @@ -574,11 +574,11 @@ JNIEXPORT jlong JNICALL Java_org_apache_arrow_dataset_jni_JniWrapper_createScann JniAssertOkOrThrow(scanner_builder->Filter(*filter_expr)); } if (file_format_id != -1 && options != nullptr) { - std::unordered_map optionMap; + std::unordered_map option_map; std::shared_ptr buffer = LoadArrowBufferFromByteBuffer(env, options); - JniAssertOkOrThrow(arrow::engine::DeserializeMap(*buffer, optionMap)); + JniAssertOkOrThrow(arrow::engine::DeserializeMap(*buffer, option_map)); std::shared_ptr scan_options = - JniGetOrThrow(GetragmentScanOptions(file_format_id, optionsMap)); + JniGetOrThrow(GetFragmentScanOptions(file_format_id, option_map)); JniAssertOkOrThrow(scanner_builder->FragmentScanOptions(scan_options)); } JniAssertOkOrThrow(scanner_builder->BatchSize(batch_size)); @@ -701,11 +701,11 @@ Java_org_apache_arrow_dataset_file_JniWrapper_makeFileSystemDatasetFactory__Ljav std::shared_ptr file_format = JniGetOrThrow(GetFileFormat(file_format_id)); if (options != nullptr) { - std::unordered_map optionMap; + std::unordered_map option_map; std::shared_ptr buffer = LoadArrowBufferFromByteBuffer(env, options); - JniAssertOkOrThrow(arrow::engine::DeserializeMap(*buffer, optionMap)); + JniAssertOkOrThrow(arrow::engine::DeserializeMap(*buffer, option_map)); std::shared_ptr scan_options = - JniGetOrThrow(GetragmentScanOptions(file_format_id, optionsMap)); + JniGetOrThrow(GetFragmentScanOptions(file_format_id, option_map)); file_format->default_fragment_scan_options = scan_options; } arrow::dataset::FileSystemFactoryOptions options; @@ -729,11 +729,11 @@ Java_org_apache_arrow_dataset_file_JniWrapper_makeFileSystemDatasetFactory___3Lj std::shared_ptr file_format = JniGetOrThrow(GetFileFormat(file_format_id)); if (options != nullptr) { - std::unordered_map optionMap; + std::unordered_map option_map; std::shared_ptr buffer = LoadArrowBufferFromByteBuffer(env, options); - JniAssertOkOrThrow(arrow::engine::DeserializeMap(*buffer, optionMap)); + JniAssertOkOrThrow(arrow::engine::DeserializeMap(*buffer, option_map)); std::shared_ptr scan_options = - JniGetOrThrow(GetragmentScanOptions(file_format_id, optionsMap)); + JniGetOrThrow(GetFragmentScanOptions(file_format_id, option_map)); file_format->default_fragment_scan_options = scan_options; } arrow::dataset::FileSystemFactoryOptions options;