This is an automated email from the ASF dual-hosted git repository.

jonah pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 40aabd6877 Fix compilation "comparison_binary_numeric_coercion not 
found" (#10677)
40aabd6877 is described below

commit 40aabd68770d8959002564a8416e190945870da0
Author: Andrew Lamb <[email protected]>
AuthorDate: Sun May 26 07:01:26 2024 -0400

    Fix compilation "comparison_binary_numeric_coercion not found" (#10677)
---
 datafusion/expr/src/type_coercion/functions.rs | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/datafusion/expr/src/type_coercion/functions.rs 
b/datafusion/expr/src/type_coercion/functions.rs
index 623fa25742..4dd8d63719 100644
--- a/datafusion/expr/src/type_coercion/functions.rs
+++ b/datafusion/expr/src/type_coercion/functions.rs
@@ -30,7 +30,7 @@ use datafusion_common::{
     exec_err, internal_datafusion_err, internal_err, plan_err, Result,
 };
 
-use super::binary::comparison_coercion;
+use super::binary::{binary_numeric_coercion, comparison_coercion};
 
 /// Performs type coercion for scalar function arguments.
 ///
@@ -332,9 +332,7 @@ fn get_valid_types(
 
             let mut valid_type = current_types.first().unwrap().clone();
             for t in current_types.iter().skip(1) {
-                if let Some(coerced_type) =
-                    comparison_binary_numeric_coercion(&valid_type, t)
-                {
+                if let Some(coerced_type) = 
binary_numeric_coercion(&valid_type, t) {
                     valid_type = coerced_type;
                 } else {
                     return plan_err!(


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

Reply via email to