Skip to content

Commit 40aabd6

Browse files
authored
Fix compilation "comparison_binary_numeric_coercion not found" (#10677)
1 parent c095fee commit 40aabd6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

datafusion/expr/src/type_coercion/functions.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use datafusion_common::{
3030
exec_err, internal_datafusion_err, internal_err, plan_err, Result,
3131
};
3232

33-
use super::binary::comparison_coercion;
33+
use super::binary::{binary_numeric_coercion, comparison_coercion};
3434

3535
/// Performs type coercion for scalar function arguments.
3636
///
@@ -332,9 +332,7 @@ fn get_valid_types(
332332

333333
let mut valid_type = current_types.first().unwrap().clone();
334334
for t in current_types.iter().skip(1) {
335-
if let Some(coerced_type) =
336-
comparison_binary_numeric_coercion(&valid_type, t)
337-
{
335+
if let Some(coerced_type) = binary_numeric_coercion(&valid_type, t) {
338336
valid_type = coerced_type;
339337
} else {
340338
return plan_err!(

0 commit comments

Comments
 (0)