Skip to content
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

Off by one in time series bar chart #763

Closed
xrmx opened this issue Jul 14, 2016 · 3 comments
Closed

Off by one in time series bar chart #763

xrmx opened this issue Jul 14, 2016 · 3 comments
Labels
!deprecated-label:bug Deprecated label - Use #bug instead

Comments

@xrmx
Copy link
Contributor

xrmx commented Jul 14, 2016

It looks like there's an off by one in the month visualization. If i do this kind of query:

select foo, COUNT(distinct bar) from baz and EXTRACT(month FROM "date") =2 and EXTRACT(year FROM "date") = 2015 group by foobar;

I see the count numbers to match the "2015-01" column while i expect it to be "2015-02" instead. If i export the csv i see data correctly with a "2015-02-01" timestamp.

Reproduced both in 0.9.1 and 0.10.0.

@rotten
Copy link

rotten commented Jul 14, 2016

If the timezone for the command line client and caravel installation are different it could change the counts (this is a common issue). To ensure that isn't the problem, try adding "at time zone" to the query :

select foo, COUNT(distinct bar) from baz and EXTRACT(month FROM "date") at time zone 'America/New_York' and EXTRACT(year FROM "date") at time zone 'America/New_York' = 2015 group by foobar;

@xrmx
Copy link
Contributor Author

xrmx commented Jul 14, 2016

@rotten the count given by caravel matches what i can extract from the db it's just a visualization problem

@mistercrunch
Copy link
Member

Notice: this issue has been closed because it has been inactive for 622 days. Feel free to comment and request for this issue to be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead
Projects
None yet
Development

No branches or pull requests

3 participants