Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6A063200CD1 for ; Wed, 26 Jul 2017 18:28:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 68A33169264; Wed, 26 Jul 2017 16:28:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AE455169262 for ; Wed, 26 Jul 2017 18:28:13 +0200 (CEST) Received: (qmail 52478 invoked by uid 500); 26 Jul 2017 16:28:12 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 52469 invoked by uid 99); 26 Jul 2017 16:28:12 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2017 16:28:12 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 752A8849F1; Wed, 26 Jul 2017 16:28:10 +0000 (UTC) Date: Wed, 26 Jul 2017 16:28:10 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Fix the segment interval for pulling metadata (#3174) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150108649060.26050.498140145653415428@gitbox.apache.org> From: maximebeauchemin@apache.org Reply-To: "commits@superset.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: cf1d0f38ad094d7809b500e2eeae39560111e626 X-Git-Newrev: aa95e03eb9305c81118876f05f351709daf4cb98 X-Git-Rev: aa95e03eb9305c81118876f05f351709daf4cb98 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Wed, 26 Jul 2017 16:28:14 -0000 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 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" '].