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

    https://github.com/apache/carbondata/pull/2347#discussion_r191310300
  
    --- Diff: 
store/sdk/src/main/java/org/apache/carbondata/sdk/file/AvroCarbonWriter.java ---
    @@ -177,13 +188,22 @@ private static Field prepareFields(Schema.Field 
avroField) {
         String FieldName = avroField.name();
         Schema childSchema = avroField.schema();
         Schema.Type type = childSchema.getType();
    +    LogicalType logicalType = childSchema.getLogicalType();
         switch (type) {
           case BOOLEAN:
             return new Field(FieldName, DataTypes.BOOLEAN);
           case INT:
    -        return new Field(FieldName, DataTypes.INT);
    +        if (logicalType == null) {
    --- End diff --
    
    Need to check the logical type is Date or something else.


---

Reply via email to