Skip to content

Commit 6f8c74c

Browse files
authored
Minor: doc how field name is to be set (#12757)
1 parent 862bb4a commit 6f8c74c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

datafusion/expr/src/udwf.rs

+4
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,10 @@ pub trait WindowUDFImpl: Debug + Send + Sync {
355355
}
356356

357357
/// The [`Field`] of the final result of evaluating this window function.
358+
///
359+
/// Call `field_args.name()` to get the fully qualified name for defining
360+
/// the [`Field`]. For a complete example see the implementation in the
361+
/// [Basic Example](WindowUDFImpl#basic-example) section.
358362
fn field(&self, field_args: WindowUDFFieldArgs) -> Result<Field>;
359363

360364
/// Allows the window UDF to define a custom result ordering.

0 commit comments

Comments
 (0)