'pyHive Query returns pyhive.hive.Connection object
I am trying to use pyHive for basic queries
query1 = "show databases"
query2="show tables in test1"
cursor.execute(query1) #cursor.execute(query2)
print(cursor.fetchall())
query1 gives the correct result
query2 results in this:
>python3 hive-test.py
<pyhive.hive.Connection object at 0x1016a7c40>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
