Skip to content

Commit

Permalink
Remove duplicated symbol, expose new required symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Feb 27, 2025
1 parent 2d26f3d commit de11ab2
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/aggregate_basic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// under the License.

#include "arrow/compute/api_aggregate.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernels/aggregate_basic_internal.h"
#include "arrow/compute/kernels/aggregate_internal.h"
#include "arrow/compute/kernels/common_internal.h"
Expand Down
16 changes: 8 additions & 8 deletions cpp/src/arrow/compute/kernels/codegen_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,6 @@ static void VisitTwoArrayValuesInline(const ArraySpan& arr0, const ArraySpan& ar

// ----------------------------------------------------------------------
// Reusable type resolvers

Result<TypeHolder> FirstType(KernelContext*, const std::vector<TypeHolder>& types);
Result<TypeHolder> LastType(KernelContext*, const std::vector<TypeHolder>& types);
Result<TypeHolder> ListValuesType(KernelContext* ctx,
const std::vector<TypeHolder>& types);
Expand Down Expand Up @@ -1398,16 +1396,17 @@ void ReplaceTypes(const TypeHolder& replacement, std::vector<TypeHolder>* types)

void ReplaceTypes(const TypeHolder& replacement, TypeHolder* types, size_t count);

void ReplaceTemporalTypes(TimeUnit::type unit, std::vector<TypeHolder>* types);
ARROW_COMPUTE_EXPORT void ReplaceTemporalTypes(TimeUnit::type unit,
std::vector<TypeHolder>* types);

TypeHolder CommonNumeric(const std::vector<TypeHolder>& types);

TypeHolder CommonNumeric(const TypeHolder* begin, size_t count);

TypeHolder CommonTemporal(const TypeHolder* begin, size_t count);
ARROW_COMPUTE_EXPORT TypeHolder CommonTemporal(const TypeHolder* begin, size_t count);

bool CommonTemporalResolution(const TypeHolder* begin, size_t count,
TimeUnit::type* finest_unit);
ARROW_COMPUTE_EXPORT bool CommonTemporalResolution(const TypeHolder* begin, size_t count,
TimeUnit::type* finest_unit);

TypeHolder CommonBinary(const TypeHolder* begin, size_t count);

Expand All @@ -1421,11 +1420,12 @@ enum class DecimalPromotion : uint8_t {
/// Given two arguments, at least one of which is decimal, promote all
/// to not necessarily identical types, but types which are compatible
/// for the given operator (add/multiply/divide).
Status CastBinaryDecimalArgs(DecimalPromotion promotion, std::vector<TypeHolder>* types);
ARROW_COMPUTE_EXPORT Status CastBinaryDecimalArgs(DecimalPromotion promotion,
std::vector<TypeHolder>* types);

/// Given one or more arguments, at least one of which is decimal,
/// promote all to an identical type.
Status CastDecimalArgs(TypeHolder* begin, size_t count);
ARROW_COMPUTE_EXPORT Status CastDecimalArgs(TypeHolder* begin, size_t count);

bool HasDecimal(const std::vector<TypeHolder>& types);

Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/hash_aggregate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "arrow/buffer_builder.h"
#include "arrow/compute/api_aggregate.h"
#include "arrow/compute/api_vector.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernel.h"
#include "arrow/compute/kernels/aggregate_internal.h"
#include "arrow/compute/kernels/aggregate_var_std_internal.h"
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/scalar_arithmetic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "arrow/compare.h"
#include "arrow/compute/api_scalar.h"
#include "arrow/compute/cast.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernels/base_arithmetic_internal.h"
#include "arrow/compute/kernels/codegen_internal.h"
#include "arrow/compute/kernels/common_internal.h"
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/scalar_if_else.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "arrow/array/builder_time.h"
#include "arrow/array/builder_union.h"
#include "arrow/compute/api.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernels/codegen_internal.h"
#include "arrow/compute/kernels/copy_data_internal.h"
#include "arrow/result.h"
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/scalar_round.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "arrow/compare.h"
#include "arrow/compute/api_scalar.h"
#include "arrow/compute/cast.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernel.h"
#include "arrow/compute/kernels/base_arithmetic_internal.h"
#include "arrow/compute/kernels/codegen_internal.h"
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/scalar_temporal_unary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "arrow/builder.h"
#include "arrow/compute/api_scalar.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernels/common_internal.h"
#include "arrow/compute/kernels/temporal_internal.h"
#include "arrow/util/checked_cast.h"
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/vector_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "arrow/buffer.h"
#include "arrow/compute/api_vector.h"
#include "arrow/compute/cast.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernels/common_internal.h"
#include "arrow/result.h"
#include "arrow/util/hashing.h"
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/vector_replace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// under the License.

#include "arrow/compute/api_scalar.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/kernels/common_internal.h"
#include "arrow/compute/kernels/copy_data_internal.h"
#include "arrow/compute/kernels/util_internal.h"
Expand Down
1 change: 1 addition & 0 deletions cpp/src/arrow/compute/kernels/vector_selection_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "arrow/buffer_builder.h"
#include "arrow/chunked_array.h"
#include "arrow/compute/api_vector.h"
#include "arrow/compute/codegen_internal.h"
#include "arrow/compute/function.h"
#include "arrow/compute/kernel.h"
#include "arrow/compute/kernels/codegen_internal.h"
Expand Down

0 comments on commit de11ab2

Please sign in to comment.