xy720 commented on code in PR #16776: URL: https://github.com/apache/doris/pull/16776#discussion_r1108023960
########## be/src/vec/exprs/vexpr.cpp: ########## @@ -371,6 +372,15 @@ FunctionContext::TypeDesc VExpr::column_type_to_type_desc(const TypeDescriptor& out.children.push_back(VExpr::column_type_to_type_desc(t)); } break; + case TYPE_MAP: + CHECK(type.children.size() == 2); + // only support map key is scalar + CHECK(!type.children[0].is_complex_type()); + out.type = FunctionContext::TYPE_MAP; + for (const auto& t : type.children) { + out.children.push_back(VExpr::column_type_to_type_desc(t)); + } + break; Review Comment: Yes. It should be also support for struct. It is used for function context. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org