Github user akashrn5 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2990#discussion_r243260747
  
    --- Diff: 
integration/spark-common/src/main/scala/org/apache/spark/sql/catalyst/CarbonDDLSqlParser.scala
 ---
    @@ -1511,7 +1514,16 @@ abstract class CarbonDDLSqlParser extends 
AbstractCarbonSparkSQLParser {
             }
             DataTypeInfo("decimal", precision, scale)
           case _ =>
    -        throw new MalformedCarbonCommandException("Data type provided is 
invalid.")
    +        if (isColumnRename) {
    +          dataType match {
    --- End diff --
    
    ok, refactored, if rename operation then just return the datatypeInfo 
object, else throw invalid datatype exception as before


---

Reply via email to