You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/01/29 20:54:56 UTC
[GitHub] kdorsel edited a comment on issue #6763: postgres timestamp when
using Include Time in table view
kdorsel edited a comment on issue #6763: postgres timestamp when using Include Time in table view
URL: https://github.com/apache/incubator-superset/issues/6763#issuecomment-458702583
On py36 there are no errors, correct.
Now I've started looking into the actual timestamp though. The time grain function seems to be changing the outputted times themselves.
Here is an example output of tz and without tz from postgres directly. This information was inserted at 15:17:26 localtime at -05:00 offset (America/Toronto).
```
shop=# select * from withouttz;
ts | val
----------------------------+-----
2019-01-29 15:17:26.081731 | 5
2019-01-29 15:17:26.081731 | 6
2019-01-29 15:17:26.081731 | 7
2019-01-29 15:17:26.081731 | 8
(4 rows)
shop=# select * from withtz;
ts | val
-------------------------------+-----
2019-01-29 20:17:26.081731-05 | 5
2019-01-29 20:17:26.081731-05 | 6
2019-01-29 20:17:26.081731-05 | 7
2019-01-29 20:17:26.081731-05 | 8
(4 rows)
```
Here's the same output from superset grouping by ts and with the time grain checked. As can be seen, the time column. It looks like the time grain is applying the tz offset to columns with no tz, first example. And also applying the tz offset a second time to the with tz column.
```
without tz with time grain set to minute
ts | Time (from time grain) | COUTN(*)
2019-01-29T15:27:56.750068 | 2019-01-29T10:27:00-05:00 | 4
with tz with time grain set to minute
ts | Time (from time grain) | COUTN(*)
2019-01-29T20:17:26.081731-05:00 | 2019-01-30T01:17:00 | 4
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org