manishnalla1994 commented on a change in pull request #3182: [CARBONDATA-3343] Compaction for Range Sort
URL:
https://github.com/apache/carbondata/pull/3182#discussion_r278017730
##########
File path: integration/spark-common/src/main/scala/org/apache/carbondata/spark/rdd/CarbonMergerRDD.scala
##########
@@ -390,6 +451,78 @@ class CarbonMergerRDD[K, V](
.addColumnCardinalityToMap(columnToCardinalityMap,
dataFileFooter.getColumnInTable,
dataFileFooter.getSegmentInfo.getColumnCardinality)
+
+ // Create taskIdMapping here for range column by reading min/max values.
+ if (null != rangeColumn) {
+ if (null == expressionMapForRangeCol) {
+ expressionMapForRangeCol = new util.HashMap[Integer, Expression]()
+ }
+ if (-1 == indexOfRangeColumn) {
+ val allColumns = dataFileFooter.getColumnInTable
+ for (i <- 0 until allColumns.size()) {
+ if (allColumns.get(i).getColumnName.equalsIgnoreCase(rangeColumn.getColName)) {
+ indexOfRangeColumn = i
+ }
+ }
+ }
+ // Create ranges and add splits to the tasks
+ for (i <- 0 until allRanges.size) {
Review comment:
Removed it.
----------------------------------------------------------------
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:
[hidden email]
With regards,
Apache Git Services