You are viewing a single comment's thread from:

RE: HiveSQL with Python: Tables and Columns

in LeoFinance5 years ago

This is cool :)

I usually used this to get the table names -

cursor = conn.cursor()
for row in cursor.tables():
print(row.table_name)

Then getting the columns was easy for whichever table I needed.