Skip to content

Commit

Permalink
[hive] Fixing where lastest partition logic (apache#6357)
Browse files Browse the repository at this point in the history
(cherry picked from commit 74f0817)
  • Loading branch information
john-bodley authored and Grace Guo committed Nov 16, 2018
1 parent 6368cf7 commit 0a63e3b
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 @@ -1226,8 +1226,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 0a63e3b

Please sign in to comment.