Skip to content

Apache DataFusion SQL Query Engine

chore: fix return_field_from_args doc (#19307)

James Xufedddbcae499
diff --git a/datafusion/expr/src/udf.rs b/datafusion/expr/src/udf.rs
index 437dca61b5..26d7fc99cb 100644
--- a/datafusion/expr/src/udf.rs
+++ b/datafusion/expr/src/udf.rs
@@ -610,7 +610,7 @@ pub trait ScalarUDFImpl: Debug + DynEq + DynHash + Send + Sync {
/// fn return_field_from_args(&self, args: ReturnFieldArgs) -> Result<FieldRef> {
/// // report output is only nullable if any one of the arguments are nullable
/// let nullable = args.arg_fields.iter().any(|f| f.is_nullable());
- /// let field = Arc::new(Field::new("ignored_name", DataType::Int32, true));
+ /// let field = Arc::new(Field::new("ignored_name", DataType::Int32, nullable));
/// Ok(field)
/// }
/// # }