You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/13 11:11:45 UTC

[GitHub] [arrow] projjal commented on a diff in pull request #13565: ARROW-17035: [C++][Gandiva] Add Ceil Function

projjal commented on code in PR #13565:
URL: https://github.com/apache/arrow/pull/13565#discussion_r919954092


##########
cpp/src/gandiva/precompiled/arithmetic_ops.cc:
##########
@@ -469,6 +469,16 @@ BITWISE_NOT(int64)
 #undef DATE_TYPES
 #undef NUMERIC_BOOL_DATE_TYPES
 #undef NUMERIC_DATE_TYPES
+
+#define CEILING(TYPE) \
+  FORCE_INLINE        \
+  gdv_int64 ceiling_##TYPE(gdv_##TYPE in1) { return static_cast<gdv_##TYPE>(ceil(in1)); }

Review Comment:
   should be cast to int64



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org