public static List<FieldSchema> convert(Schema schema) {
    return schema.columns().stream()
        .map(col -> new FieldSchema(col.name(), convertToTypeString(col.type()), col.doc()))
        .collect(Collectors.toList());
  }
@Test
  public void testNotSupportedTypes() {
    for (FieldSchema notSupportedField : getNotSupportedFieldSchemas()) {
      assertThatThrownBy(
          () -> HiveSchemaUtil.convert(
              Lists.newArrayList(Collections.singletonList(notSupportedField))))
          .isInstanceOf(IllegalArgumentException.class)
          .hasMessageStartingWith("Unsupported Hive type");
    }
  }