Skip to content

Commit

Permalink
add case for pyarrow when type is null
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushiksrini committed Feb 21, 2025
1 parent 0008e3b commit 1515e44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyiceberg/io/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,8 @@ def primitive(self, primitive: pa.DataType) -> PrimitiveType:
elif pa.types.is_fixed_size_binary(primitive):
primitive = cast(pa.FixedSizeBinaryType, primitive)
return FixedType(primitive.byte_width)
elif pa.types.is_null(primitive):
return UnknownType()

raise TypeError(f"Unsupported type: {primitive}")

Expand Down

0 comments on commit 1515e44

Please sign in to comment.