Closed ghost closed 2 years ago
Thank you for raising this, I can confirm that this a bug. It's caused by the _sanitize_table_name(str) / _sanitize_name(str) method which is used to ensure the passed argument is a valid Athena table name (e.g. no uppercase, stripping accents...).
It looks like it's returning the wrong output in this particular use case though. Working on a fix
This issue is linked to this one https://github.com/awslabs/aws-data-wrangler/issues/533 and should be addressed in the same release
Describe the bug
To Reproduce Run the code, see table w/ numeral and string concatenated fails with example stack trace:
If you do a
wr.catalog.tables(database="gov_legislators")
, you'll find the 2nd table was created with an extra underscore, 'table_with_combined_2_num_number', and the code subsequently fails in the middle of creation, trying to GetTableObjects, due to the munged table name.