Skip to content

Commit

Permalink
add handling for null ints
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyyid committed Oct 30, 2024
1 parent 09af21a commit 1083b5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gluestick/etl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ def get(self, stream, default=None, catalog_types=False, **kwargs):
# pyarrow/pd defaults to convert to string
if str(dtype).lower() in ["bool", "boolean"]:
df[col] = df[col].astype('boolean')
elif str(dtype).lower() in ["int64"]:
df[col] = df[col].astype('Int64')
return df
except:
# NOTE: silencing errors to avoid breaking existing workflow
Expand Down

0 comments on commit 1083b5c

Please sign in to comment.