Closed yatesdev closed 3 years ago
Hi @yatesdev! This is unlikely related to the query execution but rather to the Playground's UI failing to update the state. We did a couple of fixes recently. Would it be possible that you update it to the latest version and see if the error has gone?
@vasilev-alex Apologies I haven't been able to get back to you sooner. I do know the issue was occurring on my frontend app, not using the Playground. However in the intervening time, the use case we had for this changed and our resulting schema changes no longer ran into this issue. I'll be optimistic and say you can close this. But if I do have some time over the holidays, I'll try and retest
@yatesdev will be closing the issue then. Please feel free to reopen it should you encounter this problem again.
Describe the bug When using rollingWindow, queries using the same cube but without using that measure, break saying that the dateRange is not defined.
Attempting to use rollingWindow to create a rolling average. When the rollingwindow measure is part of the query, cubejs returns the result, no issue. However, attempting to query anything else in its own query on the cube now fails.
Query of a standard (non rollingWindow measure)
The response is
{"type":"UserError","error":"Time series queries without dateRange aren't supported"}
However as shown above, dateRange is defined.To Reproduce Steps to reproduce the behavior:
Time series queries without dateRange aren't supported
Expected behavior The query shouldn't fail due to a dateRange not existing because the date range is defined in the query.
Version: 0.20.12
Additional context Using AthenaDriver. It should be noted, that removing the rollingWindow definition from the cube, queries on the normal measures begin to work again.
Cube Definition of the problem: