shehabgamin commented on code in PR #14440:
URL: https://github.com/apache/datafusion/pull/14440#discussion_r1951995420


##########
datafusion/expr-common/src/signature.rs:
##########
@@ -460,6 +521,44 @@ fn get_data_types(native_type: &NativeType) -> 
Vec<DataType> {
     }
 }
 
+#[derive(Debug, Clone, Eq, PartialOrd)]
+pub struct Coercion {

Review Comment:
   @jayzhan211 , I believe @alamb 's question (please correct me if I'm wrong) 
is about creating functionality for a downstream user to override the default 
signature of a UDF in order to provide their own coercion rules.
   
   For example, something like this:
   ```
   let scalar_expr = ScalarExprBuilder::new(AsciiFunc::new(), args)
                           .with_signature(Signature::any(1, 
Volatility::Immutable))
                           .build()
                           .map(Arc::new)?;
    ```
    
    This is the conversation we were having here as well:
    https://github.com/apache/datafusion/issues/14296#issuecomment-2614200125
    https://github.com/apache/datafusion/issues/14296#issuecomment-2614251635



-- 
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...@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to