discivigour opened a new pull request, #7259:
URL: https://github.com/apache/paimon/pull/7259

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... 
-->
   
   ### Purpose
   
   When fastavro writes timestamp without a timezone (such as 
pyarrow.timestamp('us')), the write and read results will differ by 8 hours. 
This is because fastavro calculates the timestamp based on the local timezone 
(UTC+8) when writing no-timezone datetime data of the timestamp-millis logical 
type. It subtracts 8 hours when storing UTC timestamp, resulting in an 8-hour 
difference when reading.
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   test_py_write_read_pk_table()
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   
   ### Generative AI tooling
   
   <!--
   If generative AI tooling has been used in the process of authoring this 
patch, please include the
   phrase: 'Generated-by: ' followed by the name of the tool and its version.
   If no, write 'No'.
   Please refer to the [ASF Generative Tooling 
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
   -->
   


-- 
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]

Reply via email to