Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: make space saving aggregate serialization strict #815

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 <[email protected]>
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