hive-protolib/src/main/java/com/streamsets/pipeline/stage/lib/hive/typesupport/HiveTypeSupport.java
public Field generateHiveTypeInfoFieldForMetadataRecord(HiveTypeInfo hiveTypeInfo) {
    Map<String, Field> fields = new HashMap<>();
    fields.put(HiveMetastoreUtil.TYPE, Field.create(hiveTypeInfo.getHiveType().name()));
    fields.put(HiveMetastoreUtil.EXTRA_INFO, generateExtraInfoFieldForMetadataRecord(hiveTypeInfo));
    fields.put(HiveMetastoreUtil.COMMENT, Field.create(Field.Type.STRING, hiveTypeInfo.getComment()));
    return Field.create(fields);
  }
public Field generateHiveTypeInfoFieldForMetadataRecord(HiveTypeInfo hiveTypeInfo) {
    Map<String, Field> fields = new HashMap<>();
    fields.put(HiveMetastoreUtil.TYPE, Field.create(hiveTypeInfo.getHiveType().name()));
    fields.put(HiveMetastoreUtil.EXTRA_INFO, generateExtraInfoFieldForMetadataRecord(hiveTypeInfo));
    fields.put(HiveMetastoreUtil.COMMENT, Field.create(Field.Type.STRING, hiveTypeInfo.getComment()));
    return Field.create(fields);
  }
Generate Hive Type Info Representation inside the Metadata Record.
@param hiveTypeInfo {@link HiveTypeInfo}
@return {@link Field} which is the field in the metadata record which represents {@link HiveTypeInfo}