-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Feature](map) add map type to doris #15966
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
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.
clang-tidy made some suggestions
| if (!keys->equals(*rhs_map.keys)) | ||
| return false; |
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.
warning: statement should be inside braces [readability-braces-around-statements]
| if (!keys->equals(*rhs_map.keys)) | |
| return false; | |
| if (!keys->equals(*rhs_map.keys)) { | |
| return false; | |
| } |
|
Please change the title and rebase the code |
xiaokang
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.
fe reviewed
fe/fe-core/src/main/java/org/apache/doris/analysis/MapLiteral.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlColType.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/planner/SetOperationNode.java
Outdated
Show resolved
Hide resolved
xiaokang
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.
be code reviewed
fe/fe-core/src/main/java/org/apache/doris/analysis/MapLiteral.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/analysis/MapLiteral.java
Outdated
Show resolved
Hide resolved
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.
clang-tidy made some suggestions
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.
clang-tidy made some suggestions
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.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 25 out of 27. Check the log or trigger a new build to see more.
| create_data_type(col_desc.children[1], col_desc.contains_nulls[1])); | ||
| break; | ||
| } | ||
| case INVALID_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.
warning: 'case' statement not in switch statement [clang-diagnostic-error]
case INVALID_TYPE:
^| for (int i = 0; i < _children.size(); ++i) { | ||
| if (!_children[i]->is_constant()) { | ||
| return false; | ||
| std::string VExpr::debug_string(const std::vector<VExprContext*>& ctxs) { |
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.
warning: function definition is not allowed here [clang-diagnostic-error]
std::string VExpr::debug_string(const std::vector<VExprContext*>& ctxs) {
^|
|
||
| return true; | ||
| } | ||
| bool VExpr::is_constant() const { |
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.
warning: function definition is not allowed here [clang-diagnostic-error]
bool VExpr::is_constant() const {
^| } | ||
|
|
||
| if (_constant_col != nullptr) { | ||
| Status VExpr::get_const_col(VExprContext * context, ColumnPtrWrapper * *output) { |
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.
warning: function definition is not allowed here [clang-diagnostic-error]
Status VExpr::get_const_col(VExprContext * context, ColumnPtrWrapper * *output) {
^| return Status::OK(); | ||
| } | ||
|
|
||
| Status VExpr::create_tree_from_thrift(doris::ObjectPool* pool, |
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.
Why modify here?
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.
when I use clang-format.sh , it make these change...
This reverts commit 817e0ab.
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.
clang-tidy made some suggestions
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.
clang-tidy made some suggestions
|
clang-tidy review says "All clean, LGTM! 👍" |
xy720
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. |
|
PR approved by anyone and no changes requested. |
Add complex type map to doris on vectorized engine
Add complex type map to doris on vectorized engine
Add complex type map to doris on vectorized engine
Proposed changes
TO support doris complex type for map
Issue Number: close #xxx
Problem summary
Describe your 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...