Skip to content

Commit fedddbc

Browse files
authored
chore: fix return_field_from_args doc (apache#19307)
## Which issue does this PR close? - Closes apache#19306 ## Rationale for this change N/A ## What changes are included in this PR? Make use of the calculated `nullable`. ## Are these changes tested? Manual test. ## Are there any user-facing changes? No.
1 parent d61f1a7 commit fedddbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/expr/src/udf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ pub trait ScalarUDFImpl: Debug + DynEq + DynHash + Send + Sync {
610610
/// fn return_field_from_args(&self, args: ReturnFieldArgs) -> Result<FieldRef> {
611611
/// // report output is only nullable if any one of the arguments are nullable
612612
/// let nullable = args.arg_fields.iter().any(|f| f.is_nullable());
613-
/// let field = Arc::new(Field::new("ignored_name", DataType::Int32, true));
613+
/// let field = Arc::new(Field::new("ignored_name", DataType::Int32, nullable));
614614
/// Ok(field)
615615
/// }
616616
/// # }

0 commit comments

Comments
 (0)