dhatchayani commented on a change in pull request #3262: [CARBONDATA-3415] 
Merge index is not working for partition table. Merge index for partition table 
is taking significantly longer time than normal table.
URL: https://github.com/apache/carbondata/pull/3262#discussion_r291509400
 
 

 ##########
 File path: 
integration/spark-common/src/main/scala/org/apache/spark/rdd/CarbonMergeFilesRDD.scala
 ##########
 @@ -130,9 +135,28 @@ class CarbonMergeFilesRDD(
   extends CarbonRDD[String](ss, Nil) {
 
   override def internalGetPartitions: Array[Partition] = {
-    segments.zipWithIndex.map {s =>
-      CarbonMergeFilePartition(id, s._2, s._1)
-    }.toArray
+    if (carbonTable.isHivePartitionTable) {
+      // in case of partition table make rdd partitions per partition of the 
carbon table
+      val partitionPaths: java.util.Map[String, String] = new 
java.util.HashMap()
+      segments.foreach(segment => {
+        val partitionSpecs = SegmentFileStore.getPartitionSpecs(segment, 
carbonTable.getTablePath)
 
 Review comment:
   done

----------------------------------------------------------------
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

Reply via email to