Skip to content

branch-4.0: [fix](datetime) throw exception for date_floor/ceil instead of return NULL #60633#60640

Merged
yiguolei merged 1 commit intobranch-4.0from
auto-pick-60633-branch-4.0
Feb 10, 2026
Merged

branch-4.0: [fix](datetime) throw exception for date_floor/ceil instead of return NULL #60633#60640
yiguolei merged 1 commit intobranch-4.0from
auto-pick-60633-branch-4.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Cherry-picked from #60633

… NULL (#60633)

before:
```
select date_floor('2007-01-02', interval 0 month);
+--------------------------------------------+
| date_floor('2007-01-02', interval 0 month) |
+--------------------------------------------+
| NULL                                       |
+--------------------------------------------+
```
now:
```sql
select date_floor('2007-01-02', interval 0 month);
Operation month_floor of 2007-01-02 00:00:00, 0, 0001-01-01 00:00:00 out of range
```
@github-actions github-actions bot requested a review from yiguolei as a code owner February 10, 2026 07:10
@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?

@dataroaring dataroaring reopened this Feb 10, 2026
@hello-stephen
Copy link
Copy Markdown
Contributor

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 0.00% (0/2) 🎉
Increment coverage report
Complete coverage report

@yiguolei yiguolei merged commit d2ee9d8 into branch-4.0 Feb 10, 2026
26 of 29 checks passed
@github-actions github-actions bot deleted the auto-pick-60633-branch-4.0 branch February 10, 2026 13:30
ybtsdst pushed a commit to ybtsdst/doris that referenced this pull request Feb 27, 2026
…ad of return NULL apache#60633 (apache#60640)

Cherry-picked from apache#60633

Co-authored-by: zclllyybb <zhaochangle@selectdb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants