Skip to content

Comments

Bugfix: make space saving aggregate serialization strict#815

Open
vanderhoop wants to merge 1 commit intotimescale:mainfrom
vanderhoop:patch-3
Open

Bugfix: make space saving aggregate serialization strict#815
vanderhoop wants to merge 1 commit intotimescale:mainfrom
vanderhoop:patch-3

Conversation

@vanderhoop
Copy link
Contributor

This pull request follows in the footsteps of #351 in making space saving aggregate serialization strict for frequency aggregates.

Motivation: I'm running into the following error when trying to refresh a continuous aggregate manually.

ERROR:  XX000: called `Option::unwrap()` on a `None` value
CONTEXT:  SQL statement “INSERT INTO _timescaledb_internal._materialized_hypertable_86 SELECT * FROM _timescaledb_internal._partial_view_86 AS I WHERE I.bucket >= $1 AND I.bucket < $2 ;”
LOCATION:  frequency.rs:961

This appears to be a known problem when the source table has empty partitions, and I would guess that there are other aggregates that still need to be made strict for serialization.

follows in the footsteps of timescale#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 <vanderhoop@me.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant