Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update pyiceberg/io/pyarrow.py
Super

Co-authored-by: Fokko Driesprong <[email protected]>
  • Loading branch information
sungwy and Fokko authored Jul 11, 2024
commit fa3ba66b1fc23f95ee7d066316582cd3efc4270d
2 changes: 1 addition & 1 deletion pyiceberg/io/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ def primitive(self, primitive: pa.DataType) -> PrimitiveType:
else:
raise TypeError(f"Unsupported precision for timestamp type: {primitive.unit}")

if primitive.tz in ("UTC", "+00:00", "Etc/UTC"):
if primitive.tz in {"UTC", "+00:00", "Etc/UTC"}:
return TimestamptzType()
elif primitive.tz is None:
return TimestampType()
Expand Down