xy720 commented on code in PR #16444: URL: https://github.com/apache/doris/pull/16444#discussion_r1099763913
########## fe/fe-core/src/main/java/org/apache/doris/common/util/Util.java: ########## @@ -87,6 +87,7 @@ public class Util { TYPE_STRING_MAP.put(PrimitiveType.BITMAP, "bitmap"); TYPE_STRING_MAP.put(PrimitiveType.QUANTILE_STATE, "quantile_state"); TYPE_STRING_MAP.put(PrimitiveType.ARRAY, "Array<%s>"); + TYPE_STRING_MAP.put(PrimitiveType.MAP, "Map<%s,%s>"); Review Comment: Neither map nor struct need to check here. I deleted this line. ########## be/src/olap/tablet_schema.cpp: ########## @@ -311,8 +311,14 @@ uint32_t TabletColumn::get_field_length_by_type(TPrimitiveType::type type, uint3 return string_length + sizeof(OLAP_STRING_MAX_LENGTH); case TPrimitiveType::JSONB: return string_length + sizeof(OLAP_JSONB_MAX_LENGTH); + case TPrimitiveType::STRUCT: + // Note that(xy): this is the length of struct type itself, + // the length of its subtypes are not included. + return OLAP_STRUCT_MAX_LENGTH; case TPrimitiveType::ARRAY: return OLAP_ARRAY_MAX_LENGTH; + case TPrimitiveType::MAP: + return OLAP_ARRAY_MAX_LENGTH; Review Comment: done -- 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