AshinGau commented on code in PR #32873: URL: https://github.com/apache/doris/pull/32873#discussion_r1555136892
########## be/src/vec/data_types/data_type_struct.cpp: ########## @@ -355,14 +355,7 @@ std::optional<size_t> DataTypeStruct::try_get_position_by_name(const String& nam } String DataTypeStruct::get_name_by_position(size_t i) const { - if (i == 0 || i > names.size()) { Review Comment: This function is wrong, and there's no check like `Block::get_by_position` -- 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