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

   ### What problem does this PR solve?
   
   Related PR: #70485
   
   Use the session-local date for TIMESTAMPTZ year arithmetic, clamp leap days 
consistently, and retain partitions that may match across local date or DST 
boundaries.
   
   Backports #70485 (`c3df51c6b794cccfd9dfd1165d0f1840343fddb9`) to 
`branch-4.2`.
   
   ### Backport notes
   
   Adapted the range guard and its tests to the branch-4.2 DateAddSubMonotonic 
interface instead of the master-only CalendarAddSubMonotonic API. Included the 
required context dispatch from #70003 and minimal preferred-offset gap handling 
from #70204 so this backport is independent. Retained branch-specific timestamp 
formatting and omitted unrelated master-only test context. Both year-arithmetic 
and year-pruning regression suites are included.
   
   ### Testing
   
   Passed source whitespace/conflict checks, Java 8 compatibility and 
changed-line C++ formatting. All 6 changed Java source/test files compiled with 
--release 8 using existing local branch-4.2 dependencies. A focused JUnit smoke 
run passed 20 tests covering TimestampTzLiteralTest and 
TimestampTzYearMonotonicityTest. The FE-service-backed PartitionPrunerTest run 
did not produce a JUnit summary in this smoke harness, so it is not counted as 
passed. Clang syntax checks passed for timestamptz_value.cpp, 
function_date_or_datetime_computation.cpp, function_other_types_to_date.cpp and 
both changed BE test files using backport sources and existing branch-4.2 
dependencies.
   
   The upstream unit/regression coverage is included where applicable. A full 
build, BE unit tests, and cluster regression suites were not run on this 
backport branch. Any FE smoke checks above reuse existing local build 
dependencies; upstream test results are not claimed as backport results.
   
   ### Release note
   
   Use the session-local date for TIMESTAMPTZ year arithmetic, clamp leap days 
consistently, and retain partitions that may match across local date or DST 
boundaries.
   
   ### Check List (For Author)
   
   - Test: source/static compatibility checks described above; upstream tests 
carried forward.
   - Behavior changed: Yes, as in #70485.
   - Documentation: same scope as #70485.
   


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