kumarUjjawal commented on code in PR #19463:
URL: https://github.com/apache/datafusion/pull/19463#discussion_r2643673442


##########
datafusion/functions-aggregate/src/correlation.rs:
##########
@@ -85,8 +86,11 @@ impl Correlation {
     /// Create a new CORR aggregate function
     pub fn new() -> Self {
         Self {
-            signature: Signature::exact(
-                vec![DataType::Float64, DataType::Float64],
+            signature: Signature::coercible(
+                vec![
+                    Coercion::new_exact(TypeSignatureClass::Numeric),
+                    Coercion::new_exact(TypeSignatureClass::Numeric),
+                ],

Review Comment:
   Should I reduce this PR to just variance/stddev as a starting point and move 
the cast to the signature level instead of doing it internally? We can change 
others in the follow up PRs? If you have other directions in mind, let me know.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to