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 committed Nov 12, 2018
1 parent 1a5ca35 commit 74f0817
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 74f0817

Please sign in to comment.