Skip to content

Commit 13fb08c

Browse files
committed
Defending against weird table names.
1 parent 443a0c3 commit 13fb08c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

awswrangler/glue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def metadata_to_glue(
2929
preserve_index=preserve_index,
3030
)
3131
table = table if table else Glue._parse_table_name(path)
32+
table = table.lower().replace(".", "_")
3233
if mode == "overwrite":
3334
self.delete_table_if_exists(database=database, table=table)
3435
exists = self.does_table_exists(database=database, table=table)

0 commit comments

Comments
 (0)