Github user KanakaKumar commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2347#discussion_r191310013
--- Diff:
store/sdk/src/main/java/org/apache/carbondata/sdk/file/AvroCarbonWriter.java ---
@@ -88,9 +90,18 @@
private Object avroFieldToObject(Schema.Field avroField, Object
fieldValue) {
Object out;
Schema.Type type = avroField.schema().getType();
+ LogicalType logicalType = avroField.schema().getLogicalType();
switch (type) {
- case BOOLEAN:
case INT:
+ if (logicalType != null) {
--- End diff --
Consider to convert as date only if the logical type is Date
---