You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/06/07 09:04:27 UTC
[GitHub] [carbondata] 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.
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:
users@infra.apache.org
With regards,
Apache Git Services