HangyuanLiu commented on a change in pull request #4648: URL: https://github.com/apache/incubator-doris/pull/4648#discussion_r493549108
########## File path: be/src/exec/schema_scanner/schema_columns_scanner.cpp ########## @@ -93,6 +93,41 @@ Status SchemaColumnsScanner::start(RuntimeState *state) { return Status::OK(); } +std::string SchemaColumnsScanner::data_type_to_string(TColumnDesc &desc) { + switch (desc.columnType) { + case TPrimitiveType::BOOLEAN: + return "tinyint"; + case TPrimitiveType::TINYINT: + return "tinyint"; + case TPrimitiveType::SMALLINT: + return "smallint"; + case TPrimitiveType::INT: + return "int"; + case TPrimitiveType::BIGINT: + return "bigint"; + case TPrimitiveType::LARGEINT: + return "bigint unsinged"; + case TPrimitiveType::FLOAT: + return "float"; + case TPrimitiveType::DOUBLE: + return "double"; + case TPrimitiveType::VARCHAR: Review comment: the varchar has length display in COLUMN_TYPE, NOT DATA_TYPE ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org