eldenmoon opened a new pull request, #60913: URL: https://github.com/apache/doris/pull/60913
Point queries on unique key tables with row store incorrectly used the default timezone (Asia/Shanghai) instead of the session timezone when evaluating timezone-sensitive functions like from_unixtime(). This was because PTabletKeyLookupRequest did not carry timezone information, and the RuntimeState created in Reusable::init() always used the default timezone. The fix adds a time_zone field to PTabletKeyLookupRequest, sets it from the session variable in FE PointQueryExecutor, and applies it to the RuntimeState in BE PointQueryExecutor::init(). Changes: - gensrc/proto: Add time_zone field to PTabletKeyLookupRequest - FE: Send session timezone in PointQueryExecutor.getNextInternal() - BE: Add RuntimeState::set_timezone() and use it in PointQueryExecutor::init() - Add regression test for point query timezone handling -- 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]
