From aa95e03eb9305c81118876f05f351709daf4cb98 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Wed, 26 Jul 2017 18:28:08 +0200 Subject: [PATCH] Fix the segment interval for pulling metadata (#3174) The end of the interval would be on the truncated today date, which means that you will exclude today. If your realtime ingestion job runs shorter than a day, the metadata cannot be pulled from the druid cluster. --- superset/connectors/druid/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py index b4e1556a9e..69f10c75f5 100644 --- a/superset/connectors/druid/models.py +++ b/superset/connectors/druid/models.py @@ -492,7 +492,7 @@ class DruidDatasource(Model, BaseDatasource): lbound = datetime(1901, 1, 1).isoformat()[:10] rbound = datetime(2050, 1, 1).isoformat()[:10] if not self.version_higher(self.cluster.druid_version, '0.8.2'): - rbound = datetime.now().isoformat()[:10] + rbound = datetime.now().isoformat() try: segment_metadata = client.segment_metadata( datasource=self.datasource_name,