-
Notifications
You must be signed in to change notification settings - Fork 882
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
[Bug]: "Aggregated Compressed Column Not Found" Error on Aggregation Query in TimescaleDB #7410
Comments
I could not reproduce it after some experiments, here's the table definition I used:
I'd like more information about your setup:
|
Dear @akuzm, Regarding the question, i could find the following.
job_id | application_name | schedule_interval | max_runtime | max_retries | retry_period | proc_schema | proc_name | owner | scheduled | fixed_schedule | config | next_start | initial_start | hypertable_schema | hypertable_name | check_schema | check_name hypertable_schema | hypertable_name | attname | segmentby_column_index | orderby_column_index | orderby_asc | orderby_nullsfirst
EXPLAIN select id_number as idNumber,AVG("value") as "value",time_bucket('6 hour', ts) as timeBucket from data_5min where id_number IN (10) AND ts >= '2024-09-20 00:00:00' AND ts < '2024-10-21 00:00:00' group by id_number, timeBucket order by timeBucket; EXPLAIN select id_number as idNumber,AVG("value") as "value",time_bucket('6 hour', ts) as timeBucket from data_5min where id_number IN (10,20) AND ts >= '2024-09-20 00:00:00' AND ts < '2024-10-21 00:00:00' group by id_number, timeBucket order by timeBucket; QUERY PLAN
Hope it helps, |
What type of bug is this?
Unexpected error
What subsystems and features are affected?
Adaptive chunking, Compression, Query executor, Other
What happened?
We’re experiencing an intermittent issue with aggregation queries on compressed data in TimescaleDB (versions 2.16 and 2.17). Specifically, when querying a single id_number from a compressed hypertable and selecting a time period for more than a week, we encounter an error. However, this error does not occur when the query includes multiple id_number values. We have two seemingly identical environments, but only one of them exhibits this behavior.
Steps to Reproduce:
data_5min
) with compression enabled.whereas,
Hypertable definition:
Expected Behavior:
The query with a single id_number should execute without errors, as it does when querying with multiple IDs.
TimescaleDB version affected
2.17, 2.16
PostgreSQL version used
16.4
What operating system did you use?
Ubuntu 22.04 LTS
What installation method did you use?
Docker
What platform did you run on?
Other
Relevant log output and stack trace
Error Message: ERROR: aggregated compressed column not found DETAIL: Assertion ‘value_column_description != NULL’ failed.
How can we reproduce the bug?
Set up compressed hypertable: - Create a hypertable (e.g., data_5min) with compression enabled. - Insert sample data and ensure the table has multiple chunks. - Run Query for single id_number as is the description
The text was updated successfully, but these errors were encountered: