Github user sounakr commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/604#discussion_r104141178 --- Diff: integration/spark-common/src/main/scala/org/apache/carbondata/spark/rdd/CarbonMergerRDD.scala --- @@ -255,77 +256,75 @@ class CarbonMergerRDD[K, V]( // mapping of the node and block list. var nodeBlockMapping: java.util.Map[String, java.util.List[Distributable]] = new - java.util.HashMap[String, java.util.List[Distributable]] + java.util.HashMap[String, java.util.List[Distributable]] var noOfBlocks = 0 val taskInfoList = new java.util.ArrayList[Distributable] var carbonInputSplits = mutable.Seq[CarbonInputSplit]() - var blocksOfLastSegment: List[TableBlockInfo] = null + var splitsOfLastSegment: List[CarbonInputSplit] = null + // map for keeping the relation of a task and its blocks. + val taskIdMapping: java.util.Map[String, java.util.List[CarbonInputSplit]] = new + java.util.HashMap[String, java.util.List[CarbonInputSplit]] + // for each valid segment. for (eachSeg <- carbonMergerMapping.validSegments) { - // map for keeping the relation of a task and its blocks. - val taskIdMapping: java.util.Map[String, java.util.List[TableBlockInfo]] = new - java.util.HashMap[String, java.util.List[TableBlockInfo]] // map for keeping the relation of a task and its blocks. job.getConfiguration.set(CarbonInputFormat.INPUT_SEGMENT_NUMBERS, eachSeg) + val updateDetails: UpdateVO = updateStatusManager.getInvalidTimestampRange(eachSeg) + // val updateStatusManager = carbonLoadModel.getSegmentUpdateStatusManager --- End diff -- Done. Removed the commented code.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---