Skip to content

Commit

Permalink
[hive] Fixing where lastest partition logic (apache#6357)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and bipinsoniguavus committed Dec 24, 2018
1 parent acb38df commit 53cec6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53cec6a

Please sign in to comment.