Skip to content

Apache DataFusion SQL Query Engine

Fix compilation "comparison_binary_numeric_coercion not found" (#10677)

Andrew Lamb40aabd68770d
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!(