You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that resultSet.loadResponse.data includes correct data (only "hourly" hits that have count > 0) but resultSet.chartPivot() returns data based on dateRange and granularity?
So in this case because granularity is hour and and dateRange is "between two days" => there will be 48 items in chartPivot / tablePivot data.
To Reproduce
Steps to reproduce the behavior:
Use query that is something like described above
Compare resultSet.loadResponse.data to resultSet.chartPivot() / resultSet.tablePivot()
resultSet.loadResponse.data should include only data that is created within 24 hours and count > 0
resultSet.chartPivot() / resultSet.tablePivot() return data that seems to follow the pattern HOURS_PER_DAY * DAYS_IN_DATE_RANGE => in this case 24 * 2 = 48
Expected behavior resultSet.chartPivot() / resultSet.tablePivot() should return only data from within the date range (in this case there should be 24 items in the result)
Describe the bug
With query something like this:
It seems that
resultSet.loadResponse.data
includes correct data (only "hourly" hits that have count > 0) butresultSet.chartPivot()
returns data based on dateRange and granularity?So in this case because granularity is hour and and dateRange is "between two days" => there will be 48 items in chartPivot / tablePivot data.
To Reproduce
Steps to reproduce the behavior:
resultSet.loadResponse.data
toresultSet.chartPivot()
/resultSet.tablePivot()
resultSet.loadResponse.data
should include only data that is created within 24 hours and count > 0resultSet.chartPivot()
/resultSet.tablePivot()
return data that seems to follow the patternHOURS_PER_DAY * DAYS_IN_DATE_RANGE
=> in this case 24 * 2 = 48Expected behavior
resultSet.chartPivot()
/resultSet.tablePivot()
should return only data from within the date range (in this case there should be 24 items in the result)Screenshots
Version:
Additional context
Slack conversation https://cube-js.slack.com/archives/CC0403RRR/p1580200363166700
The text was updated successfully, but these errors were encountered: