Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Jan 16, 2025
1 parent b29cb69 commit 1bf3034
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 9 deletions.
2 changes: 2 additions & 0 deletions cpp/src/arrow/acero/aggregate_node_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

namespace arrow {

using compute::ExecBatchFromJSON;

namespace acero {

Result<std::shared_ptr<Table>> TableGroupBy(
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/acero/asof_join_node_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ namespace arrow {

using compute::Cast;
using compute::Divide;
using compute::ExecBatchFromJSON;
using compute::Multiply;
using compute::Subtract;

Expand Down
3 changes: 3 additions & 0 deletions cpp/src/arrow/acero/hash_aggregate_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ using internal::checked_cast;
using internal::checked_pointer_cast;
using internal::ToChars;

using compute::ArgShape;
using compute::CallFunction;
using compute::CountOptions;
using compute::default_exec_context;
using compute::ExecBatchFromJSON;
using compute::ExecSpan;
using compute::FunctionOptions;
using compute::Grouper;
Expand All @@ -83,6 +85,7 @@ using compute::SortKey;
using compute::SortOrder;
using compute::Take;
using compute::TDigestOptions;
using compute::ValidateOutput;
using compute::VarianceOptions;

namespace acero {
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/acero/hash_join_node_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ using compute::and_;
using compute::call;
using compute::default_exec_context;
using compute::ExecBatchBuilder;
using compute::ExecBatchFromJSON;
using compute::ExecSpan;
using compute::field_ref;
using compute::SortIndices;
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/arrow/acero/plan_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ using testing::UnorderedElementsAreArray;

namespace arrow {

using compute::ArgShape;
using compute::call;
using compute::CountOptions;
using compute::ExecBatchFromJSON;
using compute::field_ref;
using compute::ScalarAggregateOptions;
using compute::SortKey;
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/acero/test_util_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ namespace arrow {
using arrow::internal::CpuInfo;
using arrow::internal::Executor;

using compute::ExecBatchFromJSON;
using compute::SortKey;
using compute::Take;

Expand Down
1 change: 0 additions & 1 deletion cpp/src/arrow/compute/kernels/scalar_compare_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <vector>

#include "arrow/compute/api_scalar.h"
#include "arrow/compute/function.h"
#include "arrow/compute/kernels/test_util_internal.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
Expand Down
1 change: 0 additions & 1 deletion cpp/src/arrow/compute/kernels/scalar_random_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "arrow/compute/api_scalar.h"
#include "arrow/compute/exec.h"
#include "arrow/compute/function.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/util/benchmark_util.h"

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/compute/kernels/scalar_string_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "arrow/array.h"
#include "arrow/chunked_array.h"
#include "arrow/compute/api_scalar.h"
#include "arrow/compute/function.h"
#include "arrow/compute/exec.h"
#include "arrow/datum.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/compute/kernels/vector_sort_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "arrow/array.h"
#include "arrow/chunked_array.h"
#include "arrow/compute/api_vector.h"
#include "arrow/compute/function.h"
#include "arrow/compute/exec.h"
#include "arrow/datum.h"
#include "arrow/table.h"
#include "arrow/testing/gtest_util.h"
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/compute/kernels/vector_topk_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "arrow/array.h"
#include "arrow/chunked_array.h"
#include "arrow/compute/api_vector.h"
#include "arrow/compute/function.h"
#include "arrow/compute/exec.h"
#include "arrow/datum.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/test_util_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "arrow/util/logging.h"
#include "arrow/util/vector.h"

namespace arrow {
namespace arrow::compute {

using compute::ExecBatch;
using internal::MapVector;
Expand Down Expand Up @@ -120,4 +120,4 @@ void ValidateOutput(const Datum& output) {
}
}

} // namespace arrow
} // namespace arrow::compute
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/test_util_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "arrow/compute/exec.h"
#include "arrow/type_fwd.h"

namespace arrow {
namespace arrow::compute {

using compute::ExecBatch;

Expand All @@ -39,4 +39,4 @@ ExecBatch ExecBatchFromJSON(const std::vector<TypeHolder>& types,

void ValidateOutput(const Datum& output);

} // namespace arrow
} // namespace arrow::compute
1 change: 1 addition & 0 deletions cpp/src/arrow/dataset/file_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ namespace cp = arrow::compute;

namespace arrow {

using compute::ExecBatchFromJSON;
using internal::TemporaryDir;

namespace dataset {
Expand Down

0 comments on commit 1bf3034

Please sign in to comment.