jacktengg opened a new pull request, #71278: URL: https://github.com/apache/doris/pull/71278
### What problem does this PR solve? Related PR: #70003 Preserve local calendar days and fractional seconds in TIMESTAMPTZ day arithmetic, and avoid unsafe comparison rearrangement. Backports #70003 (`e04a785e20a87ef910ec756ff6b4d269298addb6`) to `branch-4.2`. ### Backport notes Adapted tests to the branch-4.2 isMonotonic interface instead of the master-only inferRange API. Included the minimal preferred-offset gap conversion prerequisite from #70204 so this backport can be merged independently. Retained branch-specific timestamp formatting helpers and omitted unrelated master-only test context. ### Testing Passed source whitespace/conflict checks, Java 8 compatibility checks and changed-line C++ formatting. All 16 changed Java source/test files passed a Java 8 compilation smoke check using the existing local branch-4.2 classpath. Clang syntax checks passed for timestamptz_value.cpp and function_date_or_datetime_computation.cpp using backport sources and existing branch-4.2 build dependencies. The upstream unit/regression coverage is included where applicable. Full builds and runtime unit/regression tests were not run on this backport branch; upstream test results are not claimed as backport results. ### Release note Preserve local calendar days and fractional seconds in TIMESTAMPTZ day arithmetic, and avoid unsafe comparison rearrangement. ### Check List (For Author) - Test: source/static compatibility checks described above; upstream tests carried forward. - Behavior changed: Yes, as in #70003. - Documentation: same scope as #70003. -- 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]
