MCPcopy Create free account
hub / github.com/apache/datafusion / field

Method field

datafusion/functions-window/src/rank.rs:217–225  ·  view source on GitHub ↗
(&self, field_args: WindowUDFFieldArgs)

Source from the content-addressed store, hash-verified

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 {

Callers 2

output_orderingMethod · 0.45
fmtMethod · 0.45

Calls 3

newFunction · 0.85
intoMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected