akkio-97 commented on a change in pull request #4115: URL: https://github.com/apache/carbondata/pull/4115#discussion_r613397041
########## File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/schema/CarbonAlterTableAddColumnCommand.scala ########## @@ -85,6 +85,8 @@ private[sql] case class CarbonAlterTableAddColumnCommand( timeStamp = System.currentTimeMillis val schemaEvolutionEntry = new org.apache.carbondata.core.metadata.schema.SchemaEvolutionEntry schemaEvolutionEntry.setTimeStamp(timeStamp) + // filter out complex children columns + newCols = newCols.filter(x => !x.isComplexColumn) schemaEvolutionEntry.setAdded(newCols.toList.asJava) Review comment: We only maintain number of children in each parent schema. Each column schema is independent, hence it is a flat structure. -- 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