Skip to content

Commit

Permalink
Update datafusion/optimizer/src/analyzer/type_coercion.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
waynexia and alamb authored Jun 7, 2024
1 parent 2645bee commit f41263c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions datafusion/optimizer/src/analyzer/type_coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,10 +1085,7 @@ mod test {
fn binary_op_date32_op_interval() -> Result<()> {
// CAST(Utf8("1998-03-18") AS Date32) + IntervalDayTime("...")
let expr = cast(lit("1998-03-18"), DataType::Date32)
+ lit(ScalarValue::IntervalDayTime(Some(IntervalDayTime {
days: 123,
milliseconds: 456,
})));
+ lit(ScalarValue::new_interval_dt(123, 456))
let empty = empty();
let plan = LogicalPlan::Projection(Projection::try_new(vec![expr], empty)?);
let expected =
Expand Down

0 comments on commit f41263c

Please sign in to comment.