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