Skip to content

Commit 6e8a987

Browse files
committed
Fixing bug to fetch Glue tables comments
1 parent 3f007c3 commit 6e8a987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awswrangler/glue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ def table(self, database: str, name: str, catalog_id: Optional[str] = None) -> D
623623
df_dict["Column Name"].append(col["Name"])
624624
df_dict["Type"].append(col["Type"])
625625
df_dict["Partition"].append(False)
626-
if "Comment" in table:
627-
df_dict["Comment"].append(table["Comment"])
626+
if "Comment" in col:
627+
df_dict["Comment"].append(col["Comment"])
628628
else:
629629
df_dict["Comment"].append("")
630630
for col in table["PartitionKeys"]:

0 commit comments

Comments
 (0)