Skip to content

branch-4.2: [fix](infer-predicate) Preserve datetime precision in predicate inference #67653 - #70015

Merged
yiguolei merged 1 commit into
apache:branch-4.2from
morrySnow:codex/branch-4.2-pick-67653
Nov 3, 2026
Merged

yiguolei merged 1 commit into
apache:branch-4.2from
morrySnow:codex/branch-4.2-pick-67653

Conversation

@morrySnow

Copy link
Copy Markdown
Contributor

picked from master #67653

…ence

### What problem does this PR solve?

Related PR: apache#67653

Problem Summary: 谓词推导剥掉收窄 DATETIMEV2 精度的 CAST,错误推导原始值相等

Backport adaptation: Cherry-picked without source changes.

### Release note

谓词推导剥掉收窄 DATETIMEV2 精度的 CAST,错误推导原始值相等

### Check List (For Author)

- Test: Unit Test — org.apache.doris.nereids.rules.rewrite.InferPredicateByReplaceTest; FE Checkstyle passed. Cluster regression tests were not run for this commit.
- Behavior changed: Yes, fixes the behavior described above.
- Does this need documentation: No

(cherry picked from commit 0186c8a)
@morrySnow
morrySnow requested a review from yiguolei as a code owner November 3, 2026 03:41
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@morrySnow

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 100.00% (2/2) 🎉
Increment coverage report
Complete coverage report

@yiguolei
yiguolei merged commit 6281a99 into apache:branch-4.2 Nov 3, 2026
28 of 30 checks passed
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants