eldenmoon commented on code in PR #40573: URL: https://github.com/apache/doris/pull/40573#discussion_r1795173940
########## be/src/vec/data_types/data_type.h: ########## @@ -116,6 +117,14 @@ class IDataType : private boost::noncopyable { virtual Field get_field(const TExprNode& node) const = 0; + // Return Field which wrapped with the real type. + virtual Field get_type_field(const IColumn& column, int row) const { + Field field; + column.get(row, field); + field.set_type_info(get_type_id()); Review Comment: it's slow for calling virtual functions -- 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