Skip to content

Commit

Permalink
Update type_coercion.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb authored Oct 29, 2024
1 parent f3a476f commit 9511f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/optimizer/src/analyzer/type_coercion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,11 +690,11 @@ fn coerce_frame_bound(

fn extract_window_frame_target_type(col_type: &DataType) -> Result<DataType> {
if col_type.is_numeric()
|| is_utf8_or_large_utf8(&col_type)
|| is_utf8_or_large_utf8(col_type)
|| matches!(col_type, DataType::Null)
{
Ok(col_type.clone())
} else if is_datetime(&col_type) {
} else if is_datetime(col_type) {
Ok(DataType::Interval(IntervalUnit::MonthDayNano))
} else if let DataType::Dictionary(_, value_type) = col_type {
extract_window_frame_target_type(value_type)
Expand Down

0 comments on commit 9511f53

Please sign in to comment.