superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christ...@apache.org
Subject [incubator-superset] branch lyftga updated: Fix partition query in Presto (#7250)
Date Tue, 09 Apr 2019 15:44:55 GMT
This is an automated email from the ASF dual-hosted git repository.

christine pushed a commit to branch lyftga
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/lyftga by this push:
     new 821860e  Fix partition query in Presto (#7250)
821860e is described below

commit 821860ea7db5125cb267948d1991969399bc1de0
Author: Beto Dealmeida <roberto@dealmeida.net>
AuthorDate: Tue Apr 9 08:44:44 2019 -0700

    Fix partition query in Presto (#7250)
---
 superset/db_engine_specs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 9eee7c5..620ac4e 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -953,7 +953,6 @@ class PrestoEngineSpec(BaseEngineSpec):
             that determines if that field should be sorted in descending
             order
         :type order_by: list of (str, bool) tuples
-        :param filters: a list of filters to apply
         :param filters: dict of field name and filter value combinations
         """
         limit_clause = 'LIMIT {}'.format(limit) if limit else ''
@@ -972,7 +971,8 @@ class PrestoEngineSpec(BaseEngineSpec):
             where_clause = 'WHERE ' + ' AND '.join(l)
 
         sql = textwrap.dedent(f"""\
-            SHOW PARTITIONS FROM {table_name}
+            SELECT * FROM "{table_name}$partitions"
+
             {where_clause}
             {order_by_clause}
             {limit_clause}


Mime
View raw message