jacktengg opened a new pull request, #71279: URL: https://github.com/apache/doris/pull/71279
### What problem does this PR solve? Related PR: #70204 Preserve the local position and fractional seconds across DST gaps, and keep rounding and partition pruning consistent between FE and BE. Backports #70204 (`d7c0fb9427b005eb5ab8b9e0eb6592dd89964fc1`) to `branch-4.2`. ### Backport notes Resolved branch-4.2 API and Java 8 differences. Included the required DATETIMEV2 cast-monotonicity routing and regression coverage from #70469 so this branch is independent. The old IcebergUtils path already shifts gaps correctly; adapted its raw static partition timestamp parsing to round to microseconds before zone resolution, matching the writer. Kept only the relevant gap-overwrite cases and omitted master-only connector modules and unrelated test context. ### Testing Passed source whitespace/conflict checks, Java 8 compatibility and changed-line C++ formatting. All 21 changed Java source/test files compiled with --release 8 using existing local branch-4.2 build dependencies. A focused JUnit smoke run of the resulting classes passed 51 tests, covering DateUtils, TIMESTAMPTZ/TIMESTAMP_NS literals, calendar rounding, cast monotonicity, and Iceberg static-partition gap rounding. Clang syntax checks passed for timestamptz_value.cpp, vdatetime_value.cpp, function_convert_tz.cpp and function_datetime_floor_ceil.cpp 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 Preserve the local position and fractional seconds across DST gaps, and keep rounding and partition pruning consistent between FE and BE. ### Check List (For Author) - Test: source/static compatibility checks described above; upstream tests carried forward. - Behavior changed: Yes, as in #70204. - Documentation: same scope as #70204. -- 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]
