Skip to content

Commit

Permalink
fix utf error
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakhar Srivastava committed Nov 21, 2023
1 parent caabff3 commit 7b9ea8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_s3/formats/format_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def sanitize(self, value):
if isinstance(value, dict) and not value:
# pyarrow can't process empty struct
return None
if isinstance(value, str) and not value:
if isinstance(value, str):
# pyarrow can't process empty struct
try:
return value.encode("utf-16", "surrogatepass").decode("utf-16")
Expand Down

0 comments on commit 7b9ea8d

Please sign in to comment.