Skip to content

Commit 6ae6235

Browse files
Add column name to unsupported pyarrow type exception (#646)
Co-authored-by: jaidisido <[email protected]>
1 parent 1801ff6 commit 6ae6235

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

awswrangler/_data_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ def athena_types_from_pandas(
537537
"pass the column schema as argument for AWS Data Wrangler "
538538
f"(e.g. dtype={{'{k}': 'string'}}"
539539
) from ex
540+
except exceptions.UnsupportedType as ex:
541+
raise exceptions.UnsupportedType(f"Unsupported Pyarrow type: {v} for column {k}") from ex
540542
_logger.debug("athena_columns_types: %s", athena_columns_types)
541543
return athena_columns_types
542544

0 commit comments

Comments
 (0)