Skip to content

Commit

Permalink
fix: Add arrow ticket reference
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Jan 31, 2023
1 parent b54dc5a commit f310f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/optimizer/src/type_coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,10 @@ fn coerce_arguments_for_signature(
.collect::<Result<Vec<_>>>()
}

/// Cast expr to the specified type, if possible
/// Cast `expr` to the specified type, if possible
fn cast_expr(expr: &Expr, to_type: &DataType, schema: &DFSchema) -> Result<Expr> {
// Special case until Interval coercion is handled in arrow-rs
// TODO FILE A TICKET
// https://github.com/apache/arrow-rs/issues/3643
match (expr, to_type) {
(Expr::Literal(ScalarValue::Utf8(Some(s))), DataType::Interval(_)) => {
parse_interval("millisecond", s.as_str()).map(Expr::Literal)
Expand Down

0 comments on commit f310f41

Please sign in to comment.