branch-4.1: [fix](hive) Fix Hive DATE timezone shift in external readers #61330#61722
Merged
yiguolei merged 1 commit intoapache:branch-4.1from Mar 26, 2026
Merged
Conversation
…61330) Hive external tables currently apply session time zone day offsets when decoding ORC/Parquet DATE columns. In west time zones such as -06:00, this shifts DATE values by one day earlier, while Spark keeps the original logical date. This PR removes the incorrect time zone day adjustment from Hive DATE decoding paths in ORC and Parquet readers. TIMESTAMP-related time zone handling is unchanged. It also adds: - BE unit coverage for west time zone DATE reads in ORC and Parquet - Hive external regression coverage for UTC and -06:00 reads against the same DATE data Local BE build / regression execution was not run on this machine because the current environment does not support BE compilation or running those tests; pipeline validation is expected to cover execution. Issue Number: N/A Related PR: N/A Problem Summary: - Fix CIR-19660: Hive DATE columns read one day earlier in west time zones - Keep DATE semantics time-zone-independent for ORC/Parquet external reads - Add unit and regression coverage for UTC vs west time zone consistency Fix Hive external table DATE columns being shifted by one day in west time zones when reading ORC/Parquet files. (cherry picked from commit 18e5dda)
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
yiguolei
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick #61330 to branch-4.1
What problem does this PR solve?
Fix Hive external table DATE columns being shifted by one day in west time zones when reading ORC/Parquet files.
This backport keeps DATE semantics time-zone-independent for Hive external ORC/Parquet reads and includes the matching unit and regression coverage from the merged master change.
Cherry-pick commit
18e5dda9732- fix Fix Hive DATE timezone shift in external readers ([fix](hive) Fix Hive DATE timezone shift in external readers #61330)