From 198abda4c422f5712e7c696e2c0551808290ed0d Mon Sep 17 00:00:00 2001 From: einavfiterTB <127939875+einavfiterTB@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:46:36 +0300 Subject: [PATCH] support json type in athena2pyarrow --- awswrangler/_data_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awswrangler/_data_types.py b/awswrangler/_data_types.py index 756019b95..63cde7e43 100644 --- a/awswrangler/_data_types.py +++ b/awswrangler/_data_types.py @@ -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":