-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Feature-wip] support datev2 #9916
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
b2faa13 to
6cbc559
Compare
be/src/exec/olap_scan_node.cpp
Outdated
| Status OlapScanNode::change_fixed_value_range(ColumnValueRange<T>& temp_range, PrimitiveType type, | ||
| void* value, const ChangeFixedValueRangeFunc& func) { | ||
| void* value, const ChangeFixedValueRangeFunc& func, | ||
| PrimitiveType to_type) { |
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.
add param of to_type seems do not use ?
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.
This argument is added in order to meet patterns like cast(datev2 as datetimev2). Since datetimev2 has not been supported, this argument is indeed not used now.
| } | ||
| static void set_to_min(void* buf) { | ||
| // min is 0 * 16 * 32 + 1 * 32 + 1; | ||
| *reinterpret_cast<CppType*>(buf) = doris::vectorized::MIN_DATE_V2; |
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.
mysql seems support "0000-00-00", rethink whether we need to support the data
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.
The DATE type is used for values with a date part but no time part. MySQL retrieves and displays DATE values in 'YYYY-MM-DD' format. The supported range is '1000-01-01' to '9999-12-31'.
The DATETIME type is used for values that contain both date and time parts. MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD hh:mm:ss' format. The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'.
This is described in document[1]
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.
Maybe we do not support years before 1000. Although we could save it but could not support calculations. And maybe we could support it in the future.
1ae65ef to
fb14fc8
Compare
fb14fc8 to
b2c8650
Compare
b2c8650 to
d888cd9
Compare
d888cd9 to
f7271be
Compare
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
|
I will merge it and we can do decimal v3 based on this. |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
1.This pr is used for adding the supported sub-type for array which has been modified in #9916 2.add regression test for the supported sub-type Co-authored-by: hucheng01 <hucheng01@baidu.com>
1.This pr is used for adding the supported sub-type for array which has been modified in apache#9916 2.add regression test for the supported sub-type Co-authored-by: hucheng01 <hucheng01@baidu.com>
1.This pr is used for adding the supported sub-type for array which has been modified in apache#9916 2.add regression test for the supported sub-type Co-authored-by: hucheng01 <hucheng01@baidu.com>
Proposed changes
Issue Number: close #9575
Problem Summary:
Describe the overview of changes.
Checklist(Required)
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...