zhjwpku commented on code in PR #238:
URL: https://github.com/apache/iceberg-cpp/pull/238#discussion_r2440568743


##########
src/iceberg/util/decimal.cc:
##########
@@ -522,8 +552,8 @@ Result<Decimal> Decimal::Rescale(int32_t orig_scale, 
int32_t new_scale) const {
       RescaleWouldCauseDataLoss(*this, delta_scale, multiplier, &out);
 
   if (rescale_would_cause_data_loss) {
-    return Invalid("Rescale {} from {} to {} would cause data loss", 
ToIntegerString(),
-                   orig_scale, new_scale);
+    return RescaleDataLoss("Rescale {} from {} to {} would cause data loss",

Review Comment:
   Done.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to