superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] branch master updated: [hive] Fixing where lastest partition logic (#6357)
Date Mon, 12 Nov 2018 18:07:50 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley 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 74f0817  [hive] Fixing where lastest partition logic (#6357)
74f0817 is described below

commit 74f0817bf0e3469c27df0f49a6b29fa0a71e3c9b
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Mon Nov 12 10:07:38 2018 -0800

    [hive] Fixing where lastest partition logic (#6357)
---
 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 4c952b8..19f55ea 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -1193,8 +1193,8 @@ class HiveEngineSpec(PrestoEngineSpec):
             # table is not partitioned
             return False
         for c in columns:
-            if str(c.name) == str(col_name):
-                return qry.where(c == str(value))
+            if c.get('name') == col_name:
+                return qry.where(Column(col_name) == value)
         return False
 
     @classmethod


Mime
View raw message