Github user lionelcao commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1173#discussion_r128711561
  
    --- Diff: 
integration/spark-common/src/main/scala/org/apache/carbondata/spark/util/CommonUtil.scala
 ---
    @@ -585,38 +585,44 @@ object CommonUtil {
         var result = Seq.newBuilder[Row]
         partitionType match {
           case PartitionType.RANGE =>
    -        result.+=(RowFactory.create(columnName + "=default"))
    -        var rangeInfo = partitionInfo.getRangeInfo
    -        var size = rangeInfo.size() - 1
    +        result.+=(RowFactory.create("0" + ", " + columnName + " = 
DEFAULT"))
    +        val rangeInfo = partitionInfo.getRangeInfo
    +        val size = rangeInfo.size() - 1
             for (index <- 0 to size) {
               if (index == 0) {
    -            result.+=(RowFactory.create(columnName + "<" + 
rangeInfo.get(index)))
    +            val id = partitionInfo.getPartitionId(index + 1).toString
    +            val desc = columnName + " < " + rangeInfo.get(index)
    +            result.+=(RowFactory.create(id + ", " + desc))
    --- End diff --
    
    Yes, tested it's correct.


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

Reply via email to