Skip to content

Pre Aggregations are not getting refreshedΒ #9584

@ananya-level

Description

@ananya-level

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:

  1. Go to Cube playground and do a query that uses pre-aggregation.
  2. Observe refresh_key interval defined for pre-aggregation. (set it to some lower value to verify the issue quickly)
  3. Observe the preaggregation used in the first query.
  4. Make a new query by changing the time range of the query after the defined refresh_key interval
  5. 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

Image

Metadata

Metadata

Assignees

Labels

questionThe issue is a question. Please use Stack Overflow for questions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions