diff --git a/vortex-array/src/aggregate_fn/fns/all_nan/mod.rs b/vortex-array/src/aggregate_fn/fns/all_nan/mod.rs
index 44bed7406f3..68a58908018 100644
--- a/vortex-array/src/aggregate_fn/fns/all_nan/mod.rs
+++ b/vortex-array/src/aggregate_fn/fns/all_nan/mod.rs
@@ -3,6 +3,7 @@
use vortex_error::VortexResult;
use vortex_session::VortexSession;
+use vortex_session::registry::CachedId;
use crate::ArrayRef;
use crate::Columnar;
@@ -34,7 +35,8 @@ impl AggregateFnVTable for AllNan {
type Partial = bool;
fn id(&self) -> AggregateFnId {
- AggregateFnId::new("vortex.all_nan")
+ static ID: CachedId = CachedId::new("vortex.all_nan");
+ *ID
}
fn serialize(&self, _options: &Self::Options) -> VortexResult