-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Describe the bug
Pre-aggregations are not updated if I want to build the pre-aggregations in the source table with an external false flag. [Snowflake in my case] I also do not have refresh worker enabled, and the condition for refresh is default, every 1 hour without any SQL query for it.
It creates aggregation if it does not exist correctly, but then fails to refresh the older preaggregation. I have set the configuration to build in the background and serve the data from the existing one, but upon subsequent queries, it fails to serve the data. I do not want to set renewQuery to true for all the requests. There is no error, and the data is stale.
To Reproduce
Steps to reproduce the behavior:
- Go to Cube playground and do a query that uses pre-aggregation.
- Observe refresh_key interval defined for pre-aggregation. (set it to some lower value to verify the issue quickly)
- Observe the preaggregation used in the first query.
- Make a new query by changing the time range of the query after the defined refresh_key interval
- Observe that the response is still from the older preaggregation.
Screenshots
Attached section of code where we see the issue is
Version:
1.3.9
Additional context
At line 220, for us both, the flags are false, which makes the if clause true. Now, because there is a return statement, it never schedules a new refresh for the pre-aggregation
