chaoyli commented on issue #5142: URL: https://github.com/apache/incubator-doris/issues/5142#issuecomment-752349268
I divided into two function ``` using TypeInfoPtr = std::shared_ptr<TypeInfo> const TypeInfoPtr& get_type_info(FieldType type) TypeInfoPtr get_type_info(const TabletColumn& column); ``` The first interface is used to scalar type, and the second interface is used to all type including nested type(Array/Struct/Map). To alleviate the copy of shared_ptr, the scalar get_type_info interface will return a const reference of TypeInfo. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
