We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d81a0c commit 776b3e3Copy full SHA for 776b3e3
awswrangler/_data_types.py
@@ -309,10 +309,10 @@ def _split_map(s: str) -> list[str]:
309
310
def athena2pyarrow(dtype: str, df_type: str | None = None) -> pa.DataType: # noqa: PLR0911,PLR0912
311
"""Athena to PyArrow data types conversion."""
312
- dtype = dtype.strip()
+ dtype = dtype.strip().lower()
313
if dtype.startswith(("array", "struct", "map")):
314
orig_dtype: str = dtype
315
- dtype = dtype.lower().replace(" ", "")
+ dtype = dtype.replace(" ", "")
316
if dtype == "tinyint":
317
return pa.int8()
318
if dtype == "smallint":
0 commit comments