Skip to content

Commit

Permalink
Fix orm query in HiveEngineSpec.handle_cursor (#2699)
Browse files Browse the repository at this point in the history
Fix #2643
  • Loading branch information
xrmx authored and mistercrunch committed Apr 30, 2017
1 parent 7d88f80 commit a58adc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def handle_cursor(cls, cursor, query, session):
)
polled = cursor.poll()
while polled.operationState in unfinished_states:
query = session.query(type(query)).filter_by(id=query.id)
query = session.query(type(query)).filter_by(id=query.id).one()
if query.status == QueryStatus.STOPPED:
cursor.cancel()
break
Expand Down

0 comments on commit a58adc8

Please sign in to comment.