Skip to content

Commit

Permalink
fix tpcds query q47
Browse files Browse the repository at this point in the history
  • Loading branch information
zhejiangxiaomai committed Jul 31, 2023
1 parent 2e0f4bd commit a42da5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/type/DecimalUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ class DecimalUtil {
uint8_t /*bRescale*/) {
VELOX_CHECK_NE(b, 0, "Division by zero");
int resultSign = 1;
A unsignedDividendRescaled(a);
R unsignedDividendRescaled(a);
if (a < 0) {
resultSign = -1;
unsignedDividendRescaled *= -1;
}
B unsignedDivisor(b);
R unsignedDivisor(b);
if (b < 0) {
resultSign *= -1;
unsignedDivisor *= -1;
Expand Down

0 comments on commit a42da5f

Please sign in to comment.