You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by ravipesala <gi...@git.apache.org> on 2018/08/29 06:26:07 UTC

[GitHub] carbondata pull request #2649: [CARBONDATA-2869] Add support for Avro Map da...

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

    https://github.com/apache/carbondata/pull/2649#discussion_r213557677
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/metadata/schema/table/TableSchemaBuilder.java ---
    @@ -232,6 +235,10 @@ private ColumnSchema addColumn(StructField field, String parentName, AtomicInteg
             for (int i = 0; i < fields.size(); i++) {
               addColumn(fields.get(i), parentFieldName, valIndex, false, true);
             }
    +      } else if (field.getDataType().getName().equalsIgnoreCase("MAP")) {
    --- End diff --
    
    Please use `DataTypes.isMapType(field.getDataType())`


---