Skip to content

Commit 92c8664

Browse files
authored
(fix): Handle None in databases data types (#1892)
1 parent 55369c3 commit 92c8664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/_data_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def process_not_inferred_array(ex: pa.ArrowInvalid, values: Any) -> pa.Array:
567567
"""Infer `pyarrow.array` from PyArrow inference exception."""
568568
dtype = process_not_inferred_dtype(ex=ex)
569569
if dtype == pa.string():
570-
array: pa.Array = pa.array(obj=[str(x) for x in values], type=dtype, safe=True)
570+
array: pa.Array = pa.array(obj=[str(x) if x is not None else None for x in values], type=dtype, safe=True)
571571
else:
572572
raise ex
573573
return array

0 commit comments

Comments
 (0)