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

    https://github.com/apache/carbondata/pull/1298#discussion_r136273861
  
    --- Diff: 
integration/spark-common/src/main/scala/org/apache/carbondata/spark/util/CommonUtil.scala
 ---
    @@ -347,7 +347,7 @@ object CommonUtil {
           sys.error("The size of new list must be smaller than original list, 
please check again!")
         }
         val tempList = newListInfo.mkString(",").split(",")
    --- End diff --
    
    Actually, the List on which these functions are being performed stores 
values as a List[String]
    
    Suppose the list has the following values: ('Korea', 'China', '(Japan, US, 
Africa)' , 'UK')
    Without applying any function the list elements will be :
    list(0) => Korea
    list(1) => China
    list(2) => (Japan, US, Africa)              //This list of elements is 
stored like a string
    list(3) => UK
    
    But When we perform list.mkString(",").split(",")
    The list now have every element as individual value
    list(0) => Korea
    list(1) => China
    list(2) => (Japan
    list(3) => US
    list(4) => Africa)
    list(5) => UK



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to