This is an automated email from the ASF dual-hosted git repository.

changchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 198b1cc108 [GLUTEN-8375][CH][MINOR] Fix USE_EMBEDDED_COMPILER (#8441)
198b1cc108 is described below

commit 198b1cc1089a6a3c37db88570fce8ebba1785934
Author: Chang chen <[email protected]>
AuthorDate: Tue Jan 7 16:51:22 2025 +0800

    [GLUTEN-8375][CH][MINOR] Fix USE_EMBEDDED_COMPILER (#8441)
---
 .../Functions/SparkFunctionDecimalBinaryArithmetic.h         |  3 ++-
 .../Functions/SparkFunctionDecimalBinaryOperator.h           | 12 +++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git 
a/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryArithmetic.h 
b/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryArithmetic.h
index cec492e477..beef342e08 100644
--- a/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryArithmetic.h
+++ b/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryArithmetic.h
@@ -14,6 +14,8 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+#pragma once
+
 #include "SparkFunctionDecimalBinaryOperator.h"
 
 #include <Columns/ColumnDecimal.h>
@@ -27,7 +29,6 @@
 #include <Functions/IFunction.h>
 #include <Functions/castTypeToEither.h>
 #include <Common/CurrentThread.h>
-#include <Common/Stopwatch.h>
 
 #if USE_EMBEDDED_COMPILER
 #include <DataTypes/Native.h>
diff --git a/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h 
b/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h
index 73feccf2dd..fa846a51cf 100644
--- a/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h
+++ b/cpp-ch/local-engine/Functions/SparkFunctionDecimalBinaryOperator.h
@@ -15,9 +15,15 @@
  * limitations under the License.
  */
 #pragma once
+#include "config.h"
 
 #include <base/arithmeticOverflow.h>
 
+#if USE_EMBEDDED_COMPILER
+#include <DataTypes/Native.h>
+#include <llvm/IR/IRBuilder.h>
+#endif
+
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wbit-int-extension"
 
@@ -27,11 +33,11 @@ using BitUInt128 = unsigned _BitInt(128);
 using BitInt256 = signed _BitInt(256);
 using BitUInt256 = unsigned _BitInt(256);
 #else
-// up to version 18, clang supports large _Bitint sizes on x86 and x86-64; 
+// up to version 18, clang supports large _Bitint sizes on x86 and x86-64;
 // but on arm and aarch64, they are currently only supported up to 128 bits.
 // 
https://stackoverflow.com/questions/78614816/why-am-i-getting-a-256-bit-arithmetic-error-unsigined-bitint-of-bit-sizes-gre
- using BitInt256 = Int256;
- using BitUInt256 = UInt256;
+using BitInt256 = Int256;
+using BitUInt256 = UInt256;
 #endif
 
 namespace local_engine


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

Reply via email to