Skip to content

Commit 060938b

Browse files
authored
Deprecate ScalarUDF::is_nullable (#17074)
`ScalarUDFImpl::is_nullable` is deprecated. The `ScalarUDF`'s wrapper also needs deprecation to allow eventually removing the deprecated `ScalarUDFImpl::is_nullable`.
1 parent 541a67d commit 060938b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datafusion/expr/src/udf.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ impl ScalarUDF {
199199
self.inner.simplify(args, info)
200200
}
201201

202-
#[allow(deprecated)]
202+
#[deprecated(since = "50.0.0", note = "Use `return_field_from_args` instead.")]
203203
pub fn is_nullable(&self, args: &[Expr], schema: &dyn ExprSchema) -> bool {
204+
#[allow(deprecated)]
204205
self.inner.is_nullable(args, schema)
205206
}
206207

0 commit comments

Comments
 (0)