From 67a11a0680e2d52886050cc4a084770fba347302 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Sun, 26 May 2024 06:21:22 -0400 Subject: [PATCH] Fix compilation "comparison_binary_numeric_coercion not found" --- 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 623fa25742600..4dd8d6371934f 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!(