Uh oh!
There was an error while loading. Please reload this page.
[fix](Nereids) fix unix_timestamp - #49686
Merged
Merged
Conversation
hello-stephen
commented
Mar 31, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
LiBinfeng-01
commented
Mar 31, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Mar 31, 2025
TPC-H: Total hot run time: 34199 ms |
doris-robot
commented
Mar 31, 2025
TPC-DS: Total hot run time: 193400 ms |
doris-robot
commented
Mar 31, 2025
ClickBench: Total hot run time: 31.88 s |
LiBinfeng-01force-pushed
the
fix_fromunixtimestamp
branch
from
April 1, 2025 07:56
9bab166 to
377978aCompareLiBinfeng-01
commented
Apr 1, 2025
ContributorAuthor
run buildall |
doris-robot
commented
Apr 1, 2025
TPC-H: Total hot run time: 34463 ms |
doris-robot
commented
Apr 1, 2025
TPC-DS: Total hot run time: 188029 ms |
doris-robot
commented
Apr 1, 2025
ClickBench: Total hot run time: 31.29 s |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the unix_timestamp behavior in Nereids by adjusting the timezone conversion logic to correctly account for boundary conditions.
- Normalize the provided LocalDateTime to UTC upfront.
- Remove the redundant conversion in the duration calculation.
- Ensure the boundary checks against the corrected UTC value.
Files not reviewed (1)
- regression-test/suites/nereids_p0/expression/fold_constant/fold_constant_date_arithmatic.groovy: Language not supported
Comments suppressed due to low confidence (1)
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/DateTimeExtractAndTransform.java:577
- [nitpick] Consider replacing ZoneId.of('UTC+0') (used on line 578) with ZoneOffset.UTC to clarify intent and improve readability.
dateTime = dateTime.atZone(DateUtils.getTimeZone())
morrySnow
previously approved these changes
Apr 3, 2025
zclllyybb
approved these changes
Apr 3, 2025
LiBinfeng-01force-pushed
the
fix_fromunixtimestamp
branch
from
April 7, 2025 03:22
377978a to
8e3569eCompareLiBinfeng-01
commented
Apr 7, 2025
ContributorAuthor
run buildall |
Contributor
PR approved by anyone and no changes requested. |
doris-robot
commented
Apr 7, 2025
TPC-H: Total hot run time: 34262 ms |
doris-robot
commented
Apr 7, 2025
TPC-DS: Total hot run time: 186172 ms |
doris-robot
commented
Apr 7, 2025
ClickBench: Total hot run time: 30.76 s |
LiBinfeng-01
commented
Apr 7, 2025
ContributorAuthor
run p0 |
LiBinfeng-01
commented
Apr 7, 2025
ContributorAuthor
run cloud_p0 |
morrySnow
approved these changes
Apr 11, 2025
Contributor
PR approved by at least one committer and no changes requested. |
seawinde pushed a commit
to seawinde/doris
that referenced
this pull request
Apr 17, 2025
…ary condition should changed (apache#49686)
Jibing-Li pushed a commit
to Jibing-Li/incubator-doris
that referenced
this pull request
May 7, 2025
…ary condition should changed (apache#49686)
github-actionsBot
pushed a commit
that referenced
this pull request
May 7, 2025
…ary condition should changed (#49686)
Jibing-Li pushed a commit
that referenced
this pull request
May 8, 2025
Closed
koarz pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
…ary condition should changed (apache#49686)
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 freeto 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.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
when considering timezone to unix_timestamp, the boundary condition should changed
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)