Skip to content

Commit

Permalink
Added execute_async to HiveServer2DictCursor
Browse files Browse the repository at this point in the history
  • Loading branch information
balmar committed Aug 19, 2024
1 parent b453413 commit aed1aaf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions impala/hiveserver2.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,15 @@ def execute(self, operation, parameters=None, configuration=None):
self.fields = [d[0] for d in self.description]
else:
self.fields = None

# https://github.com/cloudera/impyla/issues/292
def execute_async(self, operation, parameters=None, configuration=None):
super(self.__class__, self).execute_async(operation, parameters,
configuration)
if self.description is not None:
self.fields = [d[0] for d in self.description]
else:
self.fields = None

def __next__(self):
record = super(self.__class__, self).__next__()
Expand Down

0 comments on commit aed1aaf

Please sign in to comment.