Skip to content

Commit

Permalink
Allow coercion between timestamp and int64 types
Browse files Browse the repository at this point in the history
  • Loading branch information
maxburke committed Jun 20, 2024
1 parent 0f80b92 commit cf29029
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datafusion/expr/src/type_coercion/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,8 @@ fn temporal_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Option<DataTyp

Some(Timestamp(unit, tz))
}
(Timestamp(_, _), Int64) => Some(lhs_type.clone()),
(Int64, Timestamp(_, _)) => Some(rhs_type.clone()),
_ => None,
}
}
Expand Down

0 comments on commit cf29029

Please sign in to comment.