marchpure commented on a change in pull request #3960: URL: https://github.com/apache/carbondata/pull/3960#discussion_r495730277
########## File path: integration/spark/src/main/scala/org/apache/spark/sql/catalyst/CarbonParserUtil.scala ########## @@ -1135,11 +1135,7 @@ object CarbonParserUtil { } DataTypeInfo("decimal", precision, scale) case _ => - if (isColumnRename) { - DataTypeInfo(DataTypeConverterUtil.convertToCarbonType(dataType).getName.toLowerCase) - } else { - throw new MalformedCarbonCommandException("Data type provided is invalid.") - } + DataTypeInfo(DataTypeConverterUtil.convertToCarbonType(dataType).getName.toLowerCase) Review comment: Yes. useless to throw MalformedCarbonCommandException("Data type provided is invalid.") CarbonAlterTableColumnRenameCommand.validateColumnDataType will validate the given datatype ---------------------------------------------------------------- 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