From 9cae2847a033f7ae33605ea369390352c6e95052 Mon Sep 17 00:00:00 2001 From: Travis Vander Hoop Date: Sun, 20 Oct 2024 07:31:02 -0600 Subject: [PATCH] Bugfix: make space saving aggregate serialization strict follows in the footsteps of https://github.com/timescale/timescaledb-toolkit/pull/351 in making space saving aggregate serialization strict for frequency aggregates to avoid NULL partitions causing Unwrap errors on 'None' values Signed-off-by: Travis Vander Hoop --- extension/src/frequency.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/src/frequency.rs b/extension/src/frequency.rs index 16439f19..c4adc7df 100644 --- a/extension/src/frequency.rs +++ b/extension/src/frequency.rs @@ -956,7 +956,7 @@ fn space_saving_text_final( state.map(SpaceSavingTextAggregate::from) } -#[pg_extern(immutable, parallel_safe)] +#[pg_extern(immutable, parallel_safe, strict)] fn space_saving_serialize(state: Internal) -> bytea { let state: Inner = unsafe { state.to_inner().unwrap() }; crate::do_serialize!(state)