Skip to content

Commit d68e414

Browse files
Merge pull request #580 from nsanta/add-customer-table-type
Add support customer table type
2 parents 2787190 + 1302334 commit d68e414

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyathena/sqlalchemy/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ def get_schema_names(self, connection, **kw):
11041104

11051105
def get_table_names(self, connection: "Connection", schema: Optional[str] = None, **kw):
11061106
# Tables created by Athena are always classified as `EXTERNAL_TABLE`,
1107-
# but Athena can also query tables classified as `MANAGED_TABLE`.
1107+
# but Athena can also query tables classified as `MANAGED_TABLE`, `EXTERNAL`, or `customer`.
11081108
# Managed Tables are created by default when creating tables via Spark when
11091109
# Glue has been enabled as the Hive Metastore for Elastic Map Reduce (EMR) clusters.
11101110
# With Athena Federation, tables in the database that are connected to Athena via lambda
@@ -1113,7 +1113,7 @@ def get_table_names(self, connection: "Connection", schema: Optional[str] = None
11131113
return [
11141114
t.name
11151115
for t in tables
1116-
if t.table_type in ["EXTERNAL_TABLE", "MANAGED_TABLE", "EXTERNAL"]
1116+
if t.table_type in ["EXTERNAL_TABLE", "MANAGED_TABLE", "EXTERNAL", "customer"]
11171117
]
11181118

11191119
def get_view_names(self, connection: "Connection", schema: Optional[str] = None, **kw):

0 commit comments

Comments
 (0)