Skip to content

Commit

Permalink
added support for ns in primitie function, also added the abilty to d…
Browse files Browse the repository at this point in the history
…owncast
  • Loading branch information
zaryab-ali committed Sep 20, 2024
1 parent ffdbc3e commit 5c3483b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyiceberg/io/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,6 @@ def primitive(self, primitive: pa.DataType) -> PrimitiveType:
raise TypeError(
"Iceberg does not yet support 'ns' timestamp precision. Use 'downcast-ns-timestamp-to-us-on-write' configuration property to automatically downcast 'ns' to 'us' on write."
)
else:
raise TypeError(f"Unsupported precision for timestamp type: {primitive.unit}")
return TimeType()

elif pa.types.is_timestamp(primitive):
Expand Down

0 comments on commit 5c3483b

Please sign in to comment.