feiniaofeiafei opened a new pull request, #64029:
URL: https://github.com/apache/doris/pull/64029

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #63853
   
   Problem Summary:
   
   FE constant folding for convert_tz() used Java LocalDateTime.atZone() 
semantics. For source local times inside daylight-saving skipped intervals, 
Java preserves the minute and second while shifting to the post-transition 
offset, while BE executes convert_tz() through cctz::convert() and maps skipped 
civil times to the transition instant.
   
   This mismatch can make FE partition pruning reason about a different folded 
value from BE execution. This PR makes FE convert_tz() constant folding use 
ZoneRules transition information to match BE behavior for skipped and repeated 
local times.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - Unit Test: DateTimeExtractAndTransformTest (run by author)
   - Behavior changed: No
   - Does this need documentation: No


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