Skip to content

Commit

Permalink
column name reference replaced with integer index for table name
Browse files Browse the repository at this point in the history
  • Loading branch information
shkr committed Jul 7, 2016
1 parent 7b0ecc5 commit 896fa95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhive/sqlalchemy_hive.py
Expand Up @@ -296,7 +296,7 @@ def get_table_names(self, connection, schema=None, **kw):
query = 'SHOW TABLES'
if schema:
query += ' IN ' + self.identifier_preparer.quote_identifier(schema)
return [row.tab_name for row in connection.execute(query)]
return [row[0] for row in connection.execute(query)]

def do_rollback(self, dbapi_connection):
# No transactions for Hive
Expand Down

0 comments on commit 896fa95

Please sign in to comment.