Skip to content

Commit

Permalink
support json type in athena2pyarrow
Browse files Browse the repository at this point in the history
  • Loading branch information
einavfiterTB committed Jul 2, 2024
1 parent 6474b79 commit 198abda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awswrangler/_data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _split_map(s: str) -> list[str]:
def athena2pyarrow(dtype: str) -> pa.DataType: # noqa: PLR0911,PLR0912
"""Athena to PyArrow data types conversion."""
dtype = dtype.strip()
if dtype.startswith(("array", "struct", "map")):
if dtype.startswith(("array", "struct", "map", "json")):
orig_dtype: str = dtype
dtype = dtype.lower().replace(" ", "")
if dtype == "tinyint":
Expand Down

0 comments on commit 198abda

Please sign in to comment.