Impyla挂在as_pandas上

问题描述

我在使用impyla从impala加载数据时遇到问题。 相同的代码适用于python 2.7,现在当我移至python 3.7时,它停止了。

connect = connect(host=host_name,port=21050,user=login,password=passwd,use_ssl=True,auth_mechanism='LDAP')
cursor = connect.cursor()
cursor.execute('USE ' + db_name)
@H_502_5@

奇怪的是,当调用带有count的select时,它是有效的

cursor.execute('select count(*) from table')
tab_len = as_pandas(cursor)
@H_502_5@

但使用此代码却不是

cursor.execute('select * from table LIMIT 100')
data = as_pandas(cursor)
@H_502_5@

我检查了一下,它正堆叠在

cursor.fetchall()
@H_502_5@

没有错误,它仍在加载。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)