public TableMeta build() {
      Preconditions.checkNotNull(this.format, "table format must set.");
      meta.setLocations(locations);
      meta.setProperties(this.properties);
      meta.setFormat(this.format.name());
      return meta;
    }
Util class convert types to metastore api structs.
amoro-format-iceberg/src/main/java/org/apache/amoro/utils/ConvertStructUtil.java