Skip to content

Commit

Permalink
feat: add support for pa.ExtensionType
Browse files Browse the repository at this point in the history
  • Loading branch information
fecet authored and rtyler committed Sep 17, 2024
1 parent 6125adc commit d24ffa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/deltalake/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def dtype_to_delta_dtype(dtype: pa.DataType) -> pa.DataType:
return pa.timestamp("us", "UTC")
elif type(dtype) is pa.FixedSizeBinaryType:
return pa.binary()
elif isinstance(dtype, pa.ExtensionType):
return dtype.storage_type
try:
return dtype_map[dtype]
except KeyError:
Expand Down

0 comments on commit d24ffa8

Please sign in to comment.