如何解决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)
奇怪的是,当调用带有count的select时,它是有效的
cursor.execute('select count(*) from table')
tab_len = as_pandas(cursor)
但使用此代码却不是
cursor.execute('select * from table LIMIT 100')
data = as_pandas(cursor)
我检查了一下,它正堆叠在
cursor.fetchall()
没有错误,它仍在加载。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。