Skip to content

Commit

Permalink
add doc and export
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilson committed Oct 10, 2024
1 parent 2cf89fe commit 89f1ae9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/src/arrow/compute/kernels/codegen_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,11 @@ Status CastBinaryDecimalArgs(DecimalPromotion promotion, std::vector<TypeHolder>
ARROW_EXPORT
Status CastDecimalArgs(TypeHolder* begin, size_t count);

/// Given a DataType, if it is a DecimalType, return a DecimalType with the same scale
/// and the maximum precision for that DecimalType.
///
/// If it is _not_ a DecimalType, return type
ARROW_EXPORT
Result<std::shared_ptr<DataType>> WidenDecimalToMaxPrecision(std::shared_ptr<DataType> type);

ARROW_EXPORT
Expand Down

0 comments on commit 89f1ae9

Please sign in to comment.