如何解决Python HIVE SQL中的EOF错误?

时间:2019-12-15 01:12:38

标签: python python-3.x hive

我正在使用HIVE连接来连接数据库。 我运行了以下代码,尽管它对所有数据库都非常适用,除了以下划线(_)开头的数据库名称之外

cur.execute("show tables in __ibis_tmp")
cur.fetchall()

我遇到以下错误

HiveServer2Error: Error while compiling statement: FAILED: ParseException line 1:15 extraneous input '__ibis_tmp' expecting EOF near '<EOF>'

任何线索都将受到赞赏

0 个答案:

没有答案