MINOR: Ignore Cluster Information from columns (#16495)

This commit is contained in:
Mayur Singal 2024-05-31 15:41:12 +05:30 committed by GitHub
parent 136ec635a7
commit 22be0edd79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,11 @@ def get_columns(self, connection, table_name, schema=None, **kw):
result = []
for col_name, col_type, _comment in rows:
# Handle both oss hive and Databricks' hive partition header, respectively
if col_name in ("# Partition Information", "# Partitioning"):
if col_name in (
"# Partition Information",
"# Partitioning",
"# Clustering Information",
):
break
# Take out the more detailed type information
# e.g. 'map<ixnt,int>' -> 'map'