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

    https://github.com/apache/carbondata/pull/1356#discussion_r138654019
  
    --- Diff: 
integration/hive/src/main/java/org/apache/carbondata/hive/CarbonDictionaryDecodeReadSupport.java
 ---
    @@ -228,9 +229,13 @@ private Writable createWritablePrimitive(Object obj, 
CarbonColumn carbonColumn)
           case LONG:
             return new LongWritable((long) obj);
           case SHORT:
    -        return new ShortWritable((Short) obj);
    +        return new ShortWritable((short) obj);
           case DATE:
    -        return new DateWritable(new Date(((Integer) obj).longValue()));
    +        Calendar c = Calendar.getInstance();
    +        c.setTime(new Date(0));
    --- End diff --
    
    Does it mean current time? and then reset the year to current year?


---

Reply via email to