From 53cec6aeeb2e8e4beec42e29b93fefcac67e7ffd Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Mon, 12 Nov 2018 10:07:38 -0800 Subject: [PATCH] [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 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