We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323e155 commit a579ebfCopy full SHA for a579ebf
cpp/src/gandiva/function_registry_arithmetic.cc
@@ -40,6 +40,7 @@ std::vector<NativeFunction> GetArithmeticFunctionRegistry() {
40
UNARY_SAFE_NULL_IF_NULL(castBIGINT, {}, float32, int64),
41
UNARY_SAFE_NULL_IF_NULL(castBIGINT, {}, float64, int64),
42
UNARY_SAFE_NULL_IF_NULL(castBIGINT, {}, date64, int64),
43
+ UNARY_SAFE_NULL_IF_NULL(castINT, {}, int8, int32),
44
UNARY_SAFE_NULL_IF_NULL(castINT, {}, int64, int32),
45
UNARY_SAFE_NULL_IF_NULL(castINT, {}, date32, int32),
46
UNARY_SAFE_NULL_IF_NULL(castINT, {}, float32, int32),
cpp/src/gandiva/precompiled/arithmetic_ops.cc
@@ -118,6 +118,7 @@ CAST_UNARY(castBIGINT, int32, int64)
118
CAST_UNARY(castBIGINT, date64, int64)
119
CAST_UNARY(castBIGINT, float32, int64)
120
CAST_UNARY(castBIGINT, float64, int64)
121
+CAST_UNARY(castINT, int8, int32)
122
CAST_UNARY(castINT, int64, int32)
123
CAST_UNARY(castINT, date32, int32)
124
CAST_UNARY(castINT, float32, int32)
@@ -309,10 +310,10 @@ SHIFT_LEFT_INT(int64, int32)
309
310
311
#undef SHIFT_RIGHT_INT
312
-#define SHIFT_RIGHT_INT(LTYPE, RTYPE) \
313
- FORCE_INLINE \
314
- gdv_##LTYPE shift_right_##LTYPE##_##RTYPE(gdv_##LTYPE in1, gdv_##RTYPE in2) { \
315
- return static_cast<gdv_##LTYPE>(in1 >> in2); \
+#define SHIFT_RIGHT_INT(LTYPE, RTYPE) \
+ FORCE_INLINE \
+ gdv_##LTYPE shift_right_##LTYPE##_##RTYPE(gdv_##LTYPE in1, gdv_##RTYPE in2) { \
316
+ return static_cast<gdv_##LTYPE>(in1 >> in2); \
317
}
318
319
SHIFT_RIGHT_INT(int32, int32)
0 commit comments