Skip to content

Commit

Permalink
fixed clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin510 committed Oct 24, 2024
1 parent d4d1e5b commit da3c119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/functions-window/src/ntile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl WindowUDFImpl for Ntile {
}

let n = get_unsigned_integer(scalar_n)?;
if n <= 0 {
if n == 0 {
return exec_err!("NTILE requires a positive integer");
}

Expand Down

0 comments on commit da3c119

Please sign in to comment.