jackylk commented on a change in pull request #3542: [CARBONDATA-3640] Insert from stage command support partition table URL: https://github.com/apache/carbondata/pull/3542#discussion_r361828090
########## File path: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/CarbonLoadDataCommand.scala ########## @@ -898,12 +896,32 @@ case class CarbonLoadDataCommand( sortScope: SortScopeOptions.SortScope, isDataFrame: Boolean): (LogicalPlan, Int, Option[RDD[InternalRow]]) = { // Converts the data as per the loading steps before give it to writer or sorter - val updatedRdd = convertData( + val convertedRdd = convertData( rdd, sparkSession, loadModel, isDataFrame, partitionValues) + val updatedRdd = if (isDataFrame) { + val columnCount = loadModel.getCsvHeaderColumns.length + convertedRdd.map{ row => Review comment: add space before `{` ---------------------------------------------------------------- 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