This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 0a8f3eb Fix: Missing time series datapoints in druid show up as
absurd values in line chart (#8271)
0a8f3eb is described below
commit 0a8f3eb43ff068a8612338015f605f1951ce57b6
Author: Kartik Khare <[email protected]>
AuthorDate: Wed Sep 25 06:16:34 2019 +0530
Fix: Missing time series datapoints in druid show up as absurd values in
line chart (#8271)
* Adding support for filter box in annotations
* Fixing tox lint errors
* fixing lint errors
* superset should skip empty time buckets
* removing whitespace
---
superset/connectors/druid/models.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/superset/connectors/druid/models.py
b/superset/connectors/druid/models.py
index 581ec7d..42de424 100644
--- a/superset/connectors/druid/models.py
+++ b/superset/connectors/druid/models.py
@@ -1194,6 +1194,9 @@ class DruidDatasource(Model, BaseDatasource):
intervals=self.intervals_from_dttms(from_dttm, to_dttm),
)
+ if is_timeseries:
+ qry["context"] = dict(skipEmptyBuckets=True)
+
filters = DruidDatasource.get_filters(filter, self.num_cols,
columns_dict)
if filters:
qry["filter"] = filters