jackylk commented on a change in pull request #3625: [CARBONDATA-3705] Support create and load MV for spark datasource table URL: https://github.com/apache/carbondata/pull/3625#discussion_r383694739
########## File path: mv/core/src/main/scala/org/apache/carbondata/mv/extension/MVHelper.scala ########## @@ -568,17 +573,18 @@ object MVHelper { generatePartitionerField(allPartitionColumn.toList, Seq.empty) } - private def inheritTablePropertiesFromMainTable(parentTable: CarbonTable, + private def inheritTablePropertiesFromMainTable( + parentTable: CarbonTable, fields: Seq[Field], fieldRelationMap: scala.collection.mutable.LinkedHashMap[Field, MVField], tableProperties: mutable.Map[String, String]): Unit = { var neworder = Seq[String]() - val parentOrder = parentTable.getSortColumns.asScala + val parentOrder = parentTable.getSortColumns().asScala parentOrder.foreach(parentcol => fields.filter(col => fieldRelationMap(col).aggregateFunction.isEmpty && fieldRelationMap(col).columnTableRelationList.size == 1 && parentcol.equalsIgnoreCase( - fieldRelationMap(col).columnTableRelationList(0).parentColumnName)) + fieldRelationMap(col).columnTableRelationList(0).columnName)) Review comment: fixed ---------------------------------------------------------------- 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 With regards, Apache Git Services