You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My benchmark code after setting a the connection using fetchall
%%timeempty= []
for_inrange(50):
cur=conn.cursor()
cur.execute('select * from db.my_table', configuration=configuration)
output1= []
output1=cur.fetchall()
empty.append(output1== [])
collections.Counter(empty)
## this returns Counter({False: 43, True: 7}), meaning 7 out the 50 times the output was empty
Then I run the same benchmark using the cursor as an iterator and a for loop:
empty= []
for_inrange(50):
cur=conn.cursor()
cur.execute('select * from db.my_table', configuration=configuration)
output2= []
forrowincur:
output2.append(row)
output2== []
empty.append(output2== [])
collections.Counter(empty)
## this returns Counter({False: 31, True: 19}), meaning 19 out the 50 times the output was empty
The text was updated successfully, but these errors were encountered:
Hi! I have tried to reproduce this issue in the Impala development environment, but didn't notice any empty results sets.
Can you provide more info about the issue?
What version of Impyla was used?
What Hive version was used?
What kind of table is db.my_table, e.g. number of rows in the table.
Hi, just started using impyla as an alternative to pyhive to connect to a HiveServer2 instance.
I've noticed that
fetchall()
and using the cursor as an iterator intermittently return empty data. I ran some experiments to test this:My connection code:
My benchmark code after setting a the connection using
fetchall
Then I run the same benchmark using the cursor as an iterator and a for loop:
The text was updated successfully, but these errors were encountered: