Table Visualization's Time Granularity Feature Malfunction
No matter what time granularity is selected, Caravel keeps returning an overall aggregation result, instead of showing the grouped aggregations based on the selected time granularity.
Specifically, the query "granularity": "all" fails to be modified.
We cannot present daily nor hourly results through table visualizations.
Please use the issue template so there's the necessary information needed to triage this issue.
@xrmx The same problem +1
I'm using superset 0.15.1 from "pip install".
The datasource is druid.
No matter I choose what in the Time Granularity, it‘s always "granularity": "all" in the Query.

I've found that,
viz.py:
is_timeseries=False(class TableViz)
models.py:
in the following function
def query( # druid
self, groupby, metrics,
granularity,
from_dttm, to_dttm,
filter=None, # noqa
is_timeseries=True,
timeseries_limit=None,
timeseries_limit_metric=None,
row_limit=None,
inner_from_dttm=None, inner_to_dttm=None,
orderby=None,
extras=None, # noqa
select=None, # noqa
columns=None, ):
if not is_timeseries:
granularity = 'all'
So in the Table View, is_timeseries is alway false, and it change granularity to 'all', is that a bug?
@JessicaDuan please learn some markdown to better format issue :)
Versions Affected: All up to 0.15.1 (unknown for 0.15.2) View: explore Viz: Table View
Issue: Time grain setting has no effect. Current Behaviour: The TableViz class in viz.py defaults is_timeseries to false which overrides any granularity given. This is confusing for new users who haven't got used to it, and it's also a potential area for a nice feature. Potential Fixes: For any viz which sets is_timeseries to false we grey out the time grain selector to avoid confusion. In addition for the table viz, it would be great to toggle whether the time grain is used or not. When it is used, it functions as an additional Group By fields and becomes the first column of the table.
On Sun, 22 Jan 2017 at 10:54 Riccardo Magliocchetti < [email protected]> wrote:
@JessicaDuan https://github.com/JessicaDuan please learn some markdown to better format issue :)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/airbnb/superset/issues/1815#issuecomment-274323725, or mute the thread https://github.com/notifications/unsubscribe-auth/AEdFuMYmGiOpEYJGG1t2BbzLSUxFrai8ks5rUzV8gaJpZM4LK7Ak .
--
Alan Cruickshank E: [email protected] T: +44 770 6851825
https://github.com/airbnb/superset/pull/1809
Notice: this issue has been closed because it has been inactive for 455 days. Feel free to comment and request for this issue to be reopened.