superset icon indicating copy to clipboard operation
superset copied to clipboard

table view viz doesn't use time grain with Sqlalchemy table

Open maver1ck opened this issue 10 years ago • 9 comments

Hi, I want to create table view where counts are grouped by day. I'm setting time grain to day but this has no effect.

I'm connecting to MySQL table. Caravel version 0.11.0

caravel

maver1ck avatar Oct 18 '16 21:10 maver1ck

Only time related visualization are affected by the time settings: table view is not one of them. It's the "group by" field you should use to group by.

xrmx avatar Oct 19 '16 07:10 xrmx

Said that on my pre 0.11 installation i can't use the time column as group by clause. @maver1ck do you see the same on 0.11?

xrmx avatar Oct 19 '16 07:10 xrmx

@xrmx I don't agree with you. When I'm using druid I can use Time Granularity.

caravel

maver1ck avatar Oct 19 '16 08:10 maver1ck

So you agree with me that something is broken :)

xrmx avatar Oct 19 '16 08:10 xrmx

Yep. Thanks for "bug" label.

maver1ck avatar Oct 19 '16 08:10 maver1ck

We are using superset 0.13.2 with druid datasource, setting up a table viz with one day granularity since 7 days ago, but the actual query is with granularity: all, so no time column in the result table, is this a feature or a bug?

Thanks.

zhaown avatar Dec 08 '16 08:12 zhaown

I think it's a new bug.

maver1ck avatar Dec 08 '16 09:12 maver1ck

I have make a merge request,https://github.com/airbnb/superset/pull/1809

fangyeqing avatar Dec 09 '16 12:12 fangyeqing

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

mistercrunch avatar Apr 23 '18 05:04 mistercrunch