Closed
Description
When using wr.s3.to_csv with glue catalog and the header parameter the corresponding table schema parameter skip.header.line.count is getting set to True which causes an GENERIC_INTERNAL_ERROR: Failed to construct table metadata for table xxxx on querying with Athena. Manually updating the value to 1 fixes the error
"skip_header_line_count": True if header else None,
should be:
"skip_header_line_count": 1 if header else None,