comphead commented on code in PR #2324:
URL: https://github.com/apache/arrow-datafusion/pull/2324#discussion_r857744248


##########
datafusion/expr/src/function.rs:
##########
@@ -217,6 +217,11 @@ pub fn return_type(
             }
         }),
 
+        BuiltinScalarFunction::Power => match &input_expr_types[0] {
+            DataType::Int32 | DataType::Int64 => Ok(DataType::Int64),

Review Comment:
   Now its changed to be like in 
[https://www.postgresql.org/docs/14/functions-math.html](https://github.com/apache/arrow-datafusion/pull/url)
   
   So the signature is either i64 or f64. 
   If user column is another col type with less size like i32, f32, i16, etc it 
will work, however the return type is i64 or f64.
   Let me know if this is ok



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to