Skip to content

Commit

Permalink
Fix compilation "comparison_binary_numeric_coercion not found" (#10677)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored May 26, 2024
1 parent c095fee commit 40aabd6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions datafusion/expr/src/type_coercion/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down Expand Up @@ -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!(
Expand Down

0 comments on commit 40aabd6

Please sign in to comment.