js8544 commented on code in PR #34069: URL: https://github.com/apache/arrow/pull/34069#discussion_r1098760253
########## cpp/src/gandiva/function_registry_math_ops.cc: ########## @@ -62,11 +73,16 @@ namespace gandiva { std::vector<NativeFunction> GetMathOpsFunctionRegistry() { static std::vector<NativeFunction> math_fn_registry_ = { MATH_UNARY_OPS(cbrt, {}), MATH_UNARY_OPS(exp, {}), MATH_UNARY_OPS(log, {}), - MATH_UNARY_OPS(log10, {}), + MATH_UNARY_OPS(log10, {}), MATH_UNARY_OPS(sqrt, {}), + + MATH_UNARY_OPS_FLOAT(sqrtf, {}), MATH_UNARY_OPS_FLOAT(cbrtf, {}), + MATH_UNARY_OPS_FLOAT(expf, {}), MATH_UNARY_OPS_FLOAT(logf, {}), + MATH_UNARY_OPS_FLOAT(log10f, {}), Review Comment: On second thought I think appending an "f" to function names makes sense. Since the new functions differ from existing ones only by their return types but not input types, I agree that they should not have the same names. Similar to the C++ overloading rules. -- 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