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

    https://github.com/apache/carbondata/pull/1583#discussion_r154900160
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/carbondata/spark/util/CarbonSparkUtil.scala
 ---
    @@ -51,4 +55,90 @@ object CarbonSparkUtil {
           table)
       }
     
    +  /**
    +   * Below method will be used to get the fields object for pre aggregate 
table
    +   *
    +   * @param columnName
    +   * @param dataType
    +   * @param aggregateType
    +   * @param parentColumnId
    +   * @param parentTableName
    +   * @param parentDatabaseName
    +   * @param parentTableId
    +   * @return fields object
    +   */
    +  def getField(columnName: String,
    --- End diff --
    
    Why do you require this code? you ultimately require `rawSchema` , that you 
can anyway get from `dataType.catalogString`, just append the comment to it and 
use in createtablecommand


---

Reply via email to