edponce commented on a change in pull request #11050: URL: https://github.com/apache/arrow/pull/11050#discussion_r701540310
########## File path: cpp/src/arrow/compute/kernels/scalar_cast_numeric.cc ########## @@ -264,10 +264,8 @@ Status CastIntegerToFloating(KernelContext* ctx, const ExecBatch& batch, Datum* struct BooleanToNumber { template <typename OutValue, typename Arg0Value> - static OutValue Call(KernelContext*, Arg0Value val, Status*) { - constexpr auto kOne = static_cast<OutValue>(1); - constexpr auto kZero = static_cast<OutValue>(0); - return val ? kOne : kZero; Review comment: Yes, that is fine. This was kind of an opinionated issue, so it is ok to ignore/remove. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org