You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "discivigour (via GitHub)" <gi...@apache.org> on 2026/02/11 04:18:48 UTC

[PR] [python]Fix avro write timestamp without timezone wrongly [paimon]

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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [python]Fix avro write timestamp without timezone wrongly [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #7259:
URL: https://github.com/apache/paimon/pull/7259


-- 
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-unsubscribe@paimon.apache.org

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