Skip to content

Commit

Permalink
Allow OVER(PARTITION BY NULL) (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval-bavli committed Dec 17, 2023
1 parent c5efcb9 commit d5ff054
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/function_window_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ func parseWindowOptions(args ...Value) ([]Value, *WindowFuncStatus, error) {
case WindowFuncOptionEnd:
opt.End = v.Value.(*WindowBoundary)
case WindowFuncOptionPartition:
opt.Partitions = append(opt.Partitions, v.Value.(Value))
if v.Value != nil {
opt.Partitions = append(opt.Partitions, v.Value.(Value))
}
case WindowFuncOptionRowID:
opt.RowID = v.Value.(int64)
case WindowFuncOptionOrderBy:
Expand Down

0 comments on commit d5ff054

Please sign in to comment.