[Bug](function) Fix function for cast string as date/datetime#35637
Merged
chenlinzhong merged 1 commit intoapache:masterfrom Jun 5, 2024
Merged
[Bug](function) Fix function for cast string as date/datetime#35637chenlinzhong merged 1 commit intoapache:masterfrom
chenlinzhong merged 1 commit intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 42114 ms |
TPC-DS: Total hot run time: 171655 ms |
ClickBench: Total hot run time: 30.69 s |
4a9094d to
f9f7db0
Compare
Contributor
Author
|
run buildall |
f9f7db0 to
2434659
Compare
Contributor
Author
|
run buildall |
Contributor
Author
|
run performance |
Contributor
Author
|
run p0 |
TPC-H: Total hot run time: 40485 ms |
TPC-DS: Total hot run time: 169286 ms |
ClickBench: Total hot run time: 30.32 s |
Contributor
Author
|
run p0 |
Contributor
|
what's the behaviour in other db system? |
zclllyybb
requested changes
May 31, 2024
Contributor
zclllyybb
left a comment
There was a problem hiding this comment.
We need a strong basis to prove that this change is necessary.
2434659 to
e5d6e1b
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 40949 ms |
TPC-DS: Total hot run time: 173565 ms |
ClickBench: Total hot run time: 31.03 s |
Contributor
Author
|
run p0 |
1 similar comment
Contributor
Author
|
run p0 |
Contributor
Author
|
zclllyybb
approved these changes
Jun 5, 2024
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
Contributor
Author
|
run Need_2_Approval |
yongjinhou
added a commit
to yongjinhou/doris
that referenced
this pull request
Jun 5, 2024
…#35637) Issue Number: close apache#35635 <!--Describe your changes.--> Cast rules:Consistent with mysql. String:Date The first part is 1-digit x: 000x-month-day The first part is 2-digit xy: 20xy-month-day / 19xy-month-day The first part is 3-digit xyz: 20xy-0z-day / 19xy-0z-day The first part is 4-digit xyzw: xyzw-month-day
morningman
pushed a commit
that referenced
this pull request
Jun 6, 2024
dataroaring
pushed a commit
that referenced
this pull request
Jun 7, 2024
## Proposed changes Issue Number: close #35635 <!--Describe your changes.--> Cast rules:Consistent with mysql. String:Date The first part is 1-digit x: 000x-month-day The first part is 2-digit xy: 20xy-month-day / 19xy-month-day The first part is 3-digit xyz: 20xy-0z-day / 19xy-0z-day The first part is 4-digit xyzw: xyzw-month-day
This was referenced Jul 16, 2024
yiguolei
pushed a commit
that referenced
this pull request
Jul 16, 2024
#37891) ## Proposed changes Issue Number: close #35635 cherry-pick #35637 from master to branch-2.1 <!--Describe your changes.--> Cast rules:Consistent with mysql. String:Date The first part is 1-digit x: 000x-month-day The first part is 2-digit xy: 20xy-month-day / 19xy-month-day The first part is 3-digit xyz: 20xy-0z-day / 19xy-0z-day The first part is 4-digit xyzw: xyzw-month-day ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
mongo360
pushed a commit
to mongo360/doris
that referenced
this pull request
Aug 16, 2024
…#35637) (apache#35931) cherry-pick apache#35637 from master to branch-2.0
16 tasks
englefly
pushed a commit
that referenced
this pull request
Dec 30, 2024
### What problem does this PR solve? Issue Number: close #xxx Related PR: #35637 Problem Summary: When cast("201-01-01" as datetimev2(0)), The result is "2020-01-01" but it is wrong. It should be result in "0201-01-01". 201 would be regarded as 20xy-0z as related pr show, it was a bug. But actually it should not have this trasformation and result in
github-actions bot
pushed a commit
that referenced
this pull request
Dec 30, 2024
### What problem does this PR solve? Issue Number: close #xxx Related PR: #35637 Problem Summary: When cast("201-01-01" as datetimev2(0)), The result is "2020-01-01" but it is wrong. It should be result in "0201-01-01". 201 would be regarded as 20xy-0z as related pr show, it was a bug. But actually it should not have this trasformation and result in
LiBinfeng-01
pushed a commit
to LiBinfeng-01/doris
that referenced
this pull request
Jan 7, 2025
Issue Number: close #xxx Related PR: apache#35637 Problem Summary: When cast("201-01-01" as datetimev2(0)), The result is "2020-01-01" but it is wrong. It should be result in "0201-01-01". 201 would be regarded as 20xy-0z as related pr show, it was a bug. But actually it should not have this trasformation and result in
16 tasks
LiBinfeng-01
pushed a commit
to LiBinfeng-01/doris
that referenced
this pull request
Jan 9, 2025
Issue Number: close #xxx Related PR: apache#35637 Problem Summary: When cast("201-01-01" as datetimev2(0)), The result is "2020-01-01" but it is wrong. It should be result in "0201-01-01". 201 would be regarded as 20xy-0z as related pr show, it was a bug. But actually it should not have this trasformation and result in
LiBinfeng-01
pushed a commit
to LiBinfeng-01/doris
that referenced
this pull request
Jan 9, 2025
Issue Number: close #xxx Related PR: apache#35637 Problem Summary: When cast("201-01-01" as datetimev2(0)), The result is "2020-01-01" but it is wrong. It should be result in "0201-01-01". 201 would be regarded as 20xy-0z as related pr show, it was a bug. But actually it should not have this trasformation and result in
morrySnow
pushed a commit
that referenced
this pull request
Jan 9, 2025
pick: #46065 Related PR: #35637 Problem Summary: When cast("201-01-01" as datetimev2(0)), The result is "2020-01-01" but it is wrong. It should be result in "0201-01-01". 201 would be regarded as 20xy-0z as related pr show, it was a bug. But actually it should not have this trasformation and result in
16 tasks
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.
Proposed changes
Issue Number: close #35635
Cast rules:Consistent with mysql.
String:Date
The first part is 1-digit x: 000x-month-day
The first part is 2-digit xy: 20xy-month-day / 19xy-month-day
The first part is 3-digit xyz: 20xy-0z-day / 19xy-0z-day
The first part is 4-digit xyzw: xyzw-month-day