Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Mar 5, 2024
1 parent c6ee6e6 commit c99d60c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datafusion/expr/src/type_coercion/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ fn coerced_from<'a>(
Some(type_into.clone())
}

// cannot coerce
// More coerce rules.
// Note that not all rules in `comparison_coercion` can be reused here.
// For example, all numeric types can be coerced into Utf8 for comparison,
// but not for function arguments.
_ => comparison_binary_numeric_coercion(type_into, type_from),
}
}
Expand Down

0 comments on commit c99d60c

Please sign in to comment.