jaideeppyne opened a new pull request, #3237:
URL: https://github.com/apache/iceberg-rust/pull/3237

   ## Which issue does this PR close?
   
   - Closes #3142
   
   ## What changes are included in this PR?
   
   `Year::transform` and `Month::transform` called Arrow `date_part`, which 
converts each timestamp into the array's timezone tag before reading 
year/month. Iceberg computes those transforms in UTC (`DateTimeUtil` / 
`transform_literal`), so a non-UTC tag produced the wrong partition value near 
a year or month boundary.
   
   Timestamp arrays are retagged as `+00:00` (same epoch values) before 
`date_part`. `Day` and `Hour` already work from the raw epoch and are unchanged.
   
   ## Are these changes tested?
   
   Unit test `test_year_and_month_ignore_non_utc_timezone_tag` covers `-1` 
micros tagged `Asia/Kathmandu`, which must stay year/month `-1` rather than 
`0`. Existing year/month array tests still pass.
   
   ## AI Disclosure


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