Skip to content

Commit

Permalink
fixed data type of the percent_rank udwf
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin510 committed Oct 8, 2024
1 parent f57c5d2 commit f1c7547
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datafusion/functions-window/src/percent_rank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl WindowUDFImpl for PercentRank {
}

fn field(&self, field_args: WindowUDFFieldArgs) -> Result<Field> {
Ok(Field::new(field_args.name(), DataType::UInt64, false))
Ok(Field::new(field_args.name(), DataType::Float64, false))
}

fn sort_options(&self) -> Option<SortOptions> {
Expand Down
Loading

0 comments on commit f1c7547

Please sign in to comment.