From a42da5ffbac346dac4c6bd77fbce2208e77914cb Mon Sep 17 00:00:00 2001 From: zhejiangxiaomai Date: Mon, 31 Jul 2023 23:06:56 +0800 Subject: [PATCH] fix tpcds query q47 --- velox/type/DecimalUtil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/velox/type/DecimalUtil.h b/velox/type/DecimalUtil.h index 264fb0ae515b..520eaabefcb1 100644 --- a/velox/type/DecimalUtil.h +++ b/velox/type/DecimalUtil.h @@ -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;