-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](RF) fix 'Invalid value' error of RF of datetimev2 type for max value #32649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 38027 ms |
TPC-DS: Total hot run time: 181620 ms |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
zclllyybb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by anyone and no changes requested. |
| case TYPE_DATETIMEV2: { | ||
| THROW_IF_ERROR(create_texpr_literal_node<TYPE_DATETIMEV2>(data, &node)); | ||
| THROW_IF_ERROR(create_texpr_literal_node<TYPE_DATETIMEV2>(data, &node, precision, scale)); | ||
| break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
table1 probe:
2011-11-11 11:11:11.123456
table2 build:
2011-11-11 11:11:11.123455
| @@ -97,11 +97,11 @@ TExprNode create_texpr_node_from(const void* data, const PrimitiveType& type, in | |||
| break; | |||
| } | |||
| case TYPE_DATEV2: { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODOs:
- verify datev1 and datetimev1 have precision ???
- table1 is datev2 and table2 is datev2 , generate runtime filter。
- table1 is datetimev2 and table2 is datetimev2 , generate runtime filter。
| """ | ||
| sql """ | ||
| CREATE TABLE `rftest_r` ( | ||
| `k1_char` varchar(64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rftest_r (string) ---> build hash table (datetimev2(0)) ---> min max (9999-12-31 23:59:59:999999) --->
consumer: liternal (9999-12-31 23:59:59:999999) (datetimev2(0))
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 37983 ms |
TPC-DS: Total hot run time: 181480 ms |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
yiguolei
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
Proposed changes
Issue Number: close #xxx
9999-12-31 23:59:59.999999for type DateTimeV2(0) will round and overflow, and will result in errorInvalid value: 9999-12-31 23:59:59.999999 for type DateTimeV2'Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...