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

    https://github.com/apache/carbondata/pull/1911#discussion_r165804520
  
    --- Diff: 
processing/src/main/java/org/apache/carbondata/processing/loading/model/CarbonDataLoadSchema.java
 ---
    @@ -51,7 +61,22 @@ public CarbonDataLoadSchema(CarbonTable carbonTable) {
        * @return carbonTable
        */
       public CarbonTable getCarbonTable() {
    +    readCarbonTable();
         return carbonTable;
       }
     
    -}
    +  private void readCarbonTable() {
    +    if (carbonTable == null) {
    +      try {
    +        carbonTable = 
CarbonTable.buildFromTableInfo(TableInfo.deserialize(tableInfoBytes));
    +      } catch (IOException io) {
    +        throw new RuntimeException(io);
    +      }
    +    }
    +  }
    +
    +  private Object readResolve() {
    +    return DataTypes.LONG;
    --- End diff --
    
    why it returns LONG? Please correct it


---

Reply via email to