cyb70289 commented on a change in pull request #11773:
URL: https://github.com/apache/arrow/pull/11773#discussion_r756576740



##########
File path: cpp/src/arrow/type.cc
##########
@@ -831,7 +831,9 @@ Decimal128Type::Decimal128Type(int32_t precision, int32_t 
scale)
 
 Result<std::shared_ptr<DataType>> Decimal128Type::Make(int32_t precision, 
int32_t scale) {
   if (precision < kMinPrecision || precision > kMaxPrecision) {
-    return Status::Invalid("Decimal precision out of range: ", precision);
+    const auto min = kMinPrecision, max = kMaxPrecision;
+    return Status::Invalid("Decimal precision out of range [", min, ", ", max,
+                           "]: ", precision);

Review comment:
       It's mysterious why direct referencing kMinPrecision in Status::Invalid 
function leads to "undefined symbol" link error.
   Maybe related to constexpr?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to