[Feature](map) add map type to doris#15966
Conversation
| if (!keys->equals(*rhs_map.keys)) | ||
| return false; |
There was a problem hiding this comment.
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 |
| create_data_type(col_desc.children[1], col_desc.contains_nulls[1])); | ||
| break; | ||
| } | ||
| case INVALID_TYPE: |
There was a problem hiding this comment.
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.
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.
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.
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.
when I use clang-format.sh , it make these change...
This reverts commit 817e0ab.
|
clang-tidy review says "All clean, LGTM! 👍" |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
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...