(&self, field_args: WindowUDFFieldArgs)
| 215 | } |
| 216 | |
| 217 | fn field(&self, field_args: WindowUDFFieldArgs) -> Result<FieldRef> { |
| 218 | let return_type = match self.rank_type { |
| 219 | RankType::Basic | RankType::Dense => DataType::UInt64, |
| 220 | RankType::Percent => DataType::Float64, |
| 221 | }; |
| 222 | |
| 223 | let nullable = false; |
| 224 | Ok(Field::new(field_args.name(), return_type, nullable).into()) |
| 225 | } |
| 226 | |
| 227 | fn sort_options(&self) -> Option<SortOptions> { |
| 228 | Some(SortOptions { |
no test coverage detected