FredKhayat opened a new issue, #2270:
URL: https://github.com/apache/iceberg-python/issues/2270

   ### Apache Iceberg version
   
   0.9.1 (latest release)
   
   ### Please describe the bug 🐞
   
   Currently, the `pyiceberg` library does not support nanosecond timestamps, 
or timestamp with timezones.
   
   Now is a great time to support that since the Java Iceberg library is 
[actively implementing those 
features](https://github.com/apache/iceberg/pull/13562).
   
   
   ### How to reproduce
   ```python
   import pyarrow as pa
   from datetime import datetime
   
   # Create a pyarrow table with a nanosecond timestamp column
   table = pa.Table.from_arrays(
       [pa.array([datetime.now()], type=pa.timestamp("ns"))], 
names=["timestamps"]
   )
   
   catalog.create_table("ns.table1", schema=table.schema)  # Fails since 
nanosecond timestamps are not supported
   ```
   
   ```python
   # Create a pyarrow table with a timestampz column
   table = pa.Table.from_arrays(
       [pa.array([datetime.now()], type=pa.timestamp("ms", 
tz='America/New_York'))], names=["timestamps"]
   )
   
   catalog.create_table("ns.table2", schema=table.schema) # Fails since 
timezones are not supported
   ```
   
   
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to