Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion cpp/cmake_modules/DefineOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")

define_option(ARROW_JNI "Build the Arrow JNI lib" OFF)

define_option(ARROW_JNIUTIL "Build Arrow JNI utilities" ON)
define_option(ARROW_JNIUTIL "Build Arrow JNI utilities" OFF)

define_option(ARROW_JSON "Build Arrow with JSON support (requires RapidJSON)" OFF)

Expand Down
9 changes: 5 additions & 4 deletions cpp/src/arrow/adapters/orc/adapter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,9 @@ class ORCFileReader::Impl {
return Status::OK();
}

Status NextBatchReader(int64_t batch_size, const std::vector<std::string>& include_names,
std::shared_ptr<RecordBatchReader>* out) {
Status NextBatchReader(int64_t batch_size,
const std::vector<std::string>& include_names,
std::shared_ptr<RecordBatchReader>* out) {
liborc::RowReaderOptions opts;
if (!include_names.empty()) {
RETURN_NOT_OK(SelectNames(&opts, include_names));
Expand Down Expand Up @@ -559,8 +560,8 @@ Status ORCFileReader::NextStripeReader(int64_t batch_size,
}

Status ORCFileReader::NextBatchReader(int64_t batch_size,
const std::vector<std::string>& include_names,
std::shared_ptr<RecordBatchReader>* out) {
const std::vector<std::string>& include_names,
std::shared_ptr<RecordBatchReader>* out) {
return impl_->NextBatchReader(batch_size, include_names, out);
}

Expand Down
5 changes: 3 additions & 2 deletions cpp/src/arrow/adapters/orc/adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ class ARROW_EXPORT ORCFileReader {
///
/// \param[in] include_indices the selected field names to read
/// \param[out] out the returned stripe reader
Status NextBatchReader(int64_t batch_size, const std::vector<std::string>& include_names,
std::shared_ptr<RecordBatchReader>* out);
Status NextBatchReader(int64_t batch_size,
const std::vector<std::string>& include_names,
std::shared_ptr<RecordBatchReader>* out);

/// \brief The number of stripes in the file
int64_t NumberOfStripes();
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/arrow/adapters/tensorflow/convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

#include <memory>

#include "tensorflow/core/framework/op.h"

#include "arrow/type.h"
#include "tensorflow/core/framework/op.h"

// These utilities are supposed to be included in TensorFlow operators
// that need to be compiled separately from Arrow because of ABI issues.
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/arrow/array/array_binary_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
// specific language governing permissions and limitations
// under the License.

#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>

#include <cstdint>
#include <cstring>
#include <memory>
#include <string>
#include <vector>

#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>

#include "arrow/array.h"
#include "arrow/array/builder_binary.h"
#include "arrow/buffer.h"
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/array/array_dict_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
// specific language governing permissions and limitations
// under the License.

#include <gtest/gtest.h>

#include <array>
#include <cstdint>
#include <memory>
#include <ostream>
#include <string>
#include <vector>

#include <gtest/gtest.h>

#include "arrow/array.h"
#include "arrow/array/builder_decimal.h"
#include "arrow/array/builder_dict.h"
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/arrow/array/array_list_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
// specific language governing permissions and limitations
// under the License.

#include <gmock/gmock.h>
#include <gtest/gtest.h>

#include <cstdint>
#include <cstring>
#include <memory>
#include <vector>

#include <gmock/gmock.h>
#include <gtest/gtest.h>

#include "arrow/array.h"
#include "arrow/array/builder_nested.h"
#include "arrow/buffer.h"
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/arrow/array/array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
// specific language governing permissions and limitations
// under the License.

#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>

#include <algorithm>
#include <cmath>
#include <cstdint>
Expand All @@ -27,9 +30,6 @@
#include <utility>
#include <vector>

#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>

#include "arrow/array/array_base.h"
#include "arrow/array/array_binary.h"
#include "arrow/array/array_decimal.h"
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/array/array_union_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
// specific language governing permissions and limitations
// under the License.

#include <string>

#include <gtest/gtest.h>

#include <string>

#include "arrow/array.h"
#include "arrow/array/builder_nested.h"
#include "arrow/array/builder_union.h"
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/array/array_view_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
// specific language governing permissions and limitations
// under the License.

#include <gtest/gtest.h>

#include <memory>
#include <string>

#include <gtest/gtest.h>

#include "arrow/array/array_base.h"
#include "arrow/array/array_dict.h"
#include "arrow/array/array_nested.h"
Expand Down
7 changes: 4 additions & 3 deletions cpp/src/arrow/array/concatenate_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/array/concatenate.h"

#include <gtest/gtest.h>

#include <algorithm>
#include <array>
#include <cstdint>
Expand All @@ -28,11 +32,8 @@
#include <utility>
#include <vector>

#include <gtest/gtest.h>

#include "arrow/array.h"
#include "arrow/array/builder_binary.h"
#include "arrow/array/concatenate.h"
#include "arrow/buffer.h"
#include "arrow/status.h"
#include "arrow/testing/gtest_common.h"
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/arrow/array/dict_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#pragma once

#include "arrow/array/builder_dict.h"

#include <cstdint>
#include <limits>
#include <memory>
Expand All @@ -27,6 +25,7 @@
#include <vector>

#include "arrow/array.h"
#include "arrow/array/builder_dict.h"
#include "arrow/buffer.h"
#include "arrow/status.h"
#include "arrow/type.h"
Expand Down
7 changes: 4 additions & 3 deletions cpp/src/arrow/array/diff_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/array/diff.h"

#include <gtest/gtest.h>

#include <algorithm>
#include <cstdint>
#include <cstring>
Expand All @@ -25,10 +29,7 @@
#include <type_traits>
#include <vector>

#include <gtest/gtest.h>

#include "arrow/array.h"
#include "arrow/array/diff.h"
#include "arrow/compute/api.h"
#include "arrow/status.h"
#include "arrow/testing/gtest_common.h"
Expand Down
7 changes: 4 additions & 3 deletions cpp/src/arrow/buffer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/buffer.h"

#include <gtest/gtest.h>

#include <algorithm>
#include <cstdint>
#include <cstring>
Expand All @@ -24,9 +28,6 @@
#include <utility>
#include <vector>

#include <gtest/gtest.h>

#include "arrow/buffer.h"
#include "arrow/buffer_builder.h"
#include "arrow/device.h"
#include "arrow/io/interfaces.h"
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/arrow/builder_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
#include <string>
#include <vector>

#include "benchmark/benchmark.h"

#include "arrow/builder.h"
#include "arrow/memory_pool.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/util/bit_util.h"
#include "arrow/util/decimal.h"
#include "arrow/util/string_view.h"
#include "benchmark/benchmark.h"

namespace arrow {

Expand Down
3 changes: 1 addition & 2 deletions cpp/src/arrow/c/bridge_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#include <cstdint>

#include "benchmark/benchmark.h"

#include "arrow/array.h"
#include "arrow/c/bridge.h"
#include "arrow/c/helpers.h"
Expand All @@ -27,6 +25,7 @@
#include "arrow/testing/gtest_util.h"
#include "arrow/type.h"
#include "arrow/util/key_value_metadata.h"
#include "benchmark/benchmark.h"

namespace arrow {

Expand Down
9 changes: 5 additions & 4 deletions cpp/src/arrow/c/bridge_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/c/bridge.h"

#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>

#include <cerrno>
#include <deque>
#include <functional>
Expand All @@ -23,10 +28,6 @@
#include <utility>
#include <vector>

#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>

#include "arrow/c/bridge.h"
#include "arrow/c/helpers.h"
#include "arrow/c/util_internal.h"
#include "arrow/ipc/json_simple.h"
Expand Down
7 changes: 4 additions & 3 deletions cpp/src/arrow/chunked_array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/chunked_array.h"

#include <gtest/gtest.h>

#include <cstdint>
#include <memory>
#include <vector>

#include <gtest/gtest.h>

#include "arrow/chunked_array.h"
#include "arrow/status.h"
#include "arrow/testing/gtest_common.h"
#include "arrow/testing/gtest_util.h"
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/arrow/compare_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
#include <string>
#include <vector>

#include "benchmark/benchmark.h"

#include "arrow/array.h"
#include "arrow/compare.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
#include "arrow/util/benchmark_util.h"
#include "arrow/util/logging.h"
#include "arrow/util/macros.h"
#include "benchmark/benchmark.h"

namespace arrow {

Expand Down
12 changes: 6 additions & 6 deletions cpp/src/arrow/compute/exec_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@
// specific language governing permissions and limitations
// under the License.

#include <cstring>
#include <memory>
#include <vector>
#include "arrow/compute/exec.h"

#include <gtest/gtest.h>

#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
#include <cstring>
#include <memory>
#include <vector>

#include "arrow/array/array_base.h"
#include "arrow/array/data.h"
#include "arrow/buffer.h"
#include "arrow/chunked_array.h"
#include "arrow/compute/exec.h"
#include "arrow/compute/exec_internal.h"
#include "arrow/compute/function.h"
#include "arrow/compute/kernel.h"
#include "arrow/compute/registry.h"
#include "arrow/memory_pool.h"
#include "arrow/scalar.h"
#include "arrow/status.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
#include "arrow/type.h"
#include "arrow/util/bit_util.h"
#include "arrow/util/bitmap_ops.h"
Expand Down
3 changes: 1 addition & 2 deletions cpp/src/arrow/compute/function_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
// specific language governing permissions and limitations
// under the License.

#include "benchmark/benchmark.h"

#include "arrow/array/array_base.h"
#include "arrow/compute/api.h"
#include "arrow/memory_pool.h"
#include "arrow/scalar.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
#include "arrow/util/benchmark_util.h"
#include "benchmark/benchmark.h"

namespace arrow {

Expand Down
7 changes: 4 additions & 3 deletions cpp/src/arrow/compute/function_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
// specific language governing permissions and limitations
// under the License.

#include "arrow/compute/function.h"

#include <gtest/gtest.h>

#include <memory>
#include <string>
#include <vector>

#include <gtest/gtest.h>

#include "arrow/compute/function.h"
#include "arrow/compute/kernel.h"
#include "arrow/datum.h"
#include "arrow/status.h"
Expand Down
Loading