From c708f97242f6ae66e19bb4059164e2bd1f246f8d Mon Sep 17 00:00:00 2001 From: John Bodley Date: Fri, 9 Nov 2018 12:30:59 -0800 Subject: [PATCH] [hive] Fixing where lastest partition logic --- 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 4c952b883989f..19f55ea4d5ee8 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -1193,8 +1193,8 @@ def where_latest_partition( # 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