syun64 commented on PR #915:
URL: https://github.com/apache/iceberg-python/pull/915#issuecomment-2223035079

   Here's the dataframe schema that represents the Iceberg tables that are 
loaded through:
   1. Spark Iceberg
   2. PyIceberg
   
   Spark Iceberg loads both timestamptz and timestamp types as timestamp, 
whereas PyIceberg is able to distinguish these two types correctly
   ```
   tests/integration/test_writes/test_writes.py:1063: AssertionError
   ----------------------------- Captured stdout call 
-----------------------------
   timestamp_s               datetime64[ns]
   timestamptz_s             datetime64[us]
   timestamp_ms              datetime64[ns]
   timestamptz_ms            datetime64[us]
   timestamp_us              datetime64[ns]
   timestamptz_us            datetime64[us]
   timestamp_ns              datetime64[ns]
   timestamptz_ns            datetime64[us]
   timestamptz_us_etc_utc    datetime64[us]
   timestamptz_us_z          datetime64[us]
   dtype: object
   timestamp_s                    datetime64[us]
   timestamptz_s             datetime64[us, UTC]
   timestamp_ms                   datetime64[us]
   timestamptz_ms            datetime64[us, UTC]
   timestamp_us                   datetime64[us]
   timestamptz_us            datetime64[us, UTC]
   timestamp_ns                   datetime64[us]
   timestamptz_ns            datetime64[us, UTC]
   timestamptz_us_etc_utc    datetime64[us, UTC]
   timestamptz_us_z          datetime64[us, UTC]
   dtype: object
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to