Indhumathi27 commented on a change in pull request #4180: URL: https://github.com/apache/carbondata/pull/4180#discussion_r695429601
########## File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/carbonTableSchemaCommon.scala ########## @@ -263,18 +258,48 @@ class AlterTableColumnSchemaGenerator( isVarcharColumn(childField.name.getOrElse(childField.column))) } + def addComplexChildCols(currField: Field, + currColumnSchema: ColumnSchema, + newCols: mutable.Buffer[ColumnSchema], + allColumns: mutable.Buffer[ColumnSchema], + longStringCols: mutable.Buffer[ColumnSchema], + currentSchemaOrdinal: Int): Unit = { + if (currField.children.get == null || currField.children.isEmpty) { + return + } + if (DataTypes.isArrayType(currColumnSchema.getDataType) || Review comment: can directly check if it is complextype. currColumnSchema.getDataType.iscomplextype -- 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: dev-unsubscr...@carbondata.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org