Skip to content

Apache DataFusion SQL Query Engine

Deprecate ScalarUDF::is_nullable (#17074)

Piotr Findeisen060938bf68a6
diff --git a/datafusion/expr/src/udf.rs b/datafusion/expr/src/udf.rs
index 272e131a83..1d3f0d2456 100644
--- a/datafusion/expr/src/udf.rs
+++ b/datafusion/expr/src/udf.rs
@@ -199,8 +199,9 @@ impl ScalarUDF {
self.inner.simplify(args, info)
}
- #[allow(deprecated)]
+ #[deprecated(since = "50.0.0", note = "Use `return_field_from_args` instead.")]
pub fn is_nullable(&self, args: &[Expr], schema: &dyn ExprSchema) -> bool {
+ #[allow(deprecated)]
self.inner.is_nullable(args, schema)
}