Skip to content

Commit 776b3e3

Browse files
committed
Changing dtype lowercasing to start of athena2pyarrow function
1 parent 1d81a0c commit 776b3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awswrangler/_data_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ def _split_map(s: str) -> list[str]:
309309

310310
def athena2pyarrow(dtype: str, df_type: str | None = None) -> pa.DataType: # noqa: PLR0911,PLR0912
311311
"""Athena to PyArrow data types conversion."""
312-
dtype = dtype.strip()
312+
dtype = dtype.strip().lower()
313313
if dtype.startswith(("array", "struct", "map")):
314314
orig_dtype: str = dtype
315-
dtype = dtype.lower().replace(" ", "")
315+
dtype = dtype.replace(" ", "")
316316
if dtype == "tinyint":
317317
return pa.int8()
318318
if dtype == "smallint":

0 commit comments

Comments
 (0)