Skip to content

Commit 810cae5

Browse files
committed
use #[expect(deprecated)] instead of #[allow(deprecated)]
1 parent 100e9b7 commit 810cae5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datafusion/expr/src/udaf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl AggregateUDF {
209209
}
210210

211211
pub fn is_nullable(&self) -> bool {
212-
#[allow(deprecated)]
212+
#[expect(deprecated)]
213213
self.inner.is_nullable()
214214
}
215215

@@ -534,7 +534,7 @@ pub trait AggregateUDFImpl: Debug + DynEq + DynHash + Send + Sync {
534534
/// but others like `MIN` will return `NULL` if there is nullable input.
535535
/// Note that if the function is declared as *not* nullable, make sure the [`AggregateUDFImpl::default_value`] is `non-null`
536536
#[deprecated(
537-
since = "51.0.0",
537+
since = "52.0.0",
538538
note = "Use `return_field` instead with return_field.is_nullable()."
539539
)]
540540
fn is_nullable(&self) -> bool {
@@ -1105,7 +1105,7 @@ pub fn udaf_default_return_field<F: AggregateUDFImpl + ?Sized>(
11051105
Ok(Arc::new(Field::new(
11061106
func.name(),
11071107
data_type,
1108-
#[allow(deprecated)]
1108+
#[expect(deprecated)]
11091109
{
11101110
func.is_nullable()
11111111
},
@@ -1255,7 +1255,7 @@ impl AggregateUDFImpl for AliasedAggregateUDFImpl {
12551255
}
12561256

12571257
fn is_nullable(&self) -> bool {
1258-
#[allow(deprecated)]
1258+
#[expect(deprecated)]
12591259
self.inner.is_nullable()
12601260
}
12611261

0 commit comments

Comments
 (0)