File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,10 @@ fn coerce_window_frame(
503503 let target_type = match window_frame. units {
504504 WindowFrameUnits :: Range => {
505505 if let Some ( col_type) = current_types. first ( ) {
506- if col_type. is_numeric ( ) || is_utf8_or_large_utf8 ( col_type) {
506+ if col_type. is_numeric ( )
507+ || is_utf8_or_large_utf8 ( col_type)
508+ || matches ! ( col_type, DataType :: Null )
509+ {
507510 col_type
508511 } else if is_datetime ( col_type) {
509512 & DataType :: Interval ( IntervalUnit :: MonthDayNano )
Original file line number Diff line number Diff line change @@ -3785,3 +3785,11 @@ select a,
37853785----
378637861 1
378737872 1
3788+
3789+ query II
3790+ select a,
3791+ rank() over (order by null RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) rnk
3792+ from (select 1 a union select 2 a) q ORDER BY a
3793+ ----
3794+ 1 1
3795+ 2 1
You can’t perform that action at this time.
0 commit comments