wangbo commented on a change in pull request #6329: URL: https://github.com/apache/incubator-doris/pull/6329#discussion_r677260058
########## File path: be/src/exec/schema_scanner.cpp ########## @@ -127,7 +127,11 @@ Status SchemaScanner::create_tuple_desc(ObjectPool* pool) { for (int i = 0; i < _column_num; ++i) { TSlotDescriptor t_slot_desc; - t_slot_desc.__set_slotType(TypeDescriptor(_columns[i].type).to_thrift()); + if (_columns[i].type == TYPE_DECIMALV2) { + t_slot_desc.__set_slotType(TypeDescriptor::create_decimalv2_type(27, 9).to_thrift()); Review comment: Why hard code ```precision``` and ```scale``` here? -- 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