Skip to content

Commit 2c674af

Browse files
committed
Fix
1 parent 64dc5eb commit 2c674af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

velox/functions/sparksql/aggregates/DecimalSumAggregate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class DecimalSumAggregate : public exec::Aggregate {
7474

7575
auto [resultPrecision, resultScale] =
7676
getDecimalPrecisionScale(*sumType_.get());
77-
overflow = !DecimalUtil::valueInRangeWithPrecision(sum, resultPrecision);
77+
overflow = !DecimalUtil::valueInPrecisionRange(sum, resultPrecision);
7878
return sum;
7979
}
8080

0 commit comments

Comments
 (0)