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 D278D200CE6 for ; Wed, 2 Aug 2017 07:38:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D0E3C168B23; Wed, 2 Aug 2017 05:38:56 +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 231F0168B20 for ; Wed, 2 Aug 2017 07:38:55 +0200 (CEST) Received: (qmail 12893 invoked by uid 500); 2 Aug 2017 05:38:55 -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 12884 invoked by uid 99); 2 Aug 2017 05:38:55 -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, 02 Aug 2017 05:38:55 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id C77DF814F8; Wed, 2 Aug 2017 05:38:54 +0000 (UTC) Date: Wed, 02 Aug 2017 05:38:54 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: sql_lab: re-raise exception in get_sql_results (#3111) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150165233468.24090.4755414564074678592@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: 62fcdf2a92cc2fa93f77adbd650fc0a7031850a2 X-Git-Newrev: 90592d3e3d4d2009ae59fcea55c08c932522e154 X-Git-Rev: 90592d3e3d4d2009ae59fcea55c08c932522e154 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Wed, 02 Aug 2017 05:38:57 -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 90592d3 sql_lab: re-raise exception in get_sql_results (#3111) 90592d3 is described below commit 90592d3e3d4d2009ae59fcea55c08c932522e154 Author: Riccardo Magliocchetti AuthorDate: Wed Aug 2 07:38:52 2017 +0200 sql_lab: re-raise exception in get_sql_results (#3111) As caller expect it to raise an exception instead of returning None. Refs #3075 --- superset/sql_lab.py | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/sql_lab.py b/superset/sql_lab.py index 55130cd..1d0e892 100644 --- a/superset/sql_lab.py +++ b/superset/sql_lab.py @@ -98,6 +98,7 @@ def get_sql_results( query.status = QueryStatus.FAILED query.tmp_table_name = None sesh.commit() + raise def execute_sql(ctask, query_id, return_results=True, store_results=False): -- To stop receiving notification emails like this one, please contact ['"commits@superset.apache.org" '].