Skip to content

Commit e027291

Browse files
committed
Fix Presto table reflection
1 parent 6589bb1 commit e027291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyhive/sqlalchemy_presto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def get_table_names(self, connection, schema=None, **kw):
272272
query = 'SHOW TABLES'
273273
if schema:
274274
query += ' FROM ' + self.identifier_preparer.quote_identifier(schema)
275-
return [row.tab_name for row in connection.execute(query)]
275+
return [row.Table for row in connection.execute(query)]
276276

277277
def do_rollback(self, dbapi_connection):
278278
# No transactions for Presto

0 commit comments

Comments
 (0)