superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Fix the segment interval for pulling metadata (#3174)
Date Wed, 26 Jul 2017 16:28:10 GMT
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 aa95e03  Fix the segment interval for pulling metadata (#3174)
aa95e03 is described below

commit aa95e03eb9305c81118876f05f351709daf4cb98
Author: Fokko Driesprong <fokko@driesprong.frl>
AuthorDate: Wed Jul 26 18:28:08 2017 +0200

    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 b4e1556..69f10c7 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,

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message