@SuppressWarnings("unchecked")
  public static <T> ParquetValueWriter<T> buildWriter(LogicalType schema, MessageType type) {
    return (ParquetValueWriter<T>)
        AdaptHiveParquetWithFlinkSchemaVisitor.visit(schema, type, new WriteBuilder(type));
  }
Copy from iceberg {@link FlinkParquetWriters} to support int96 type and use {@link
AdaptHiveParquetWithFlinkSchemaVisitor}.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common-iceberg-bridge/src/main/java/org/apache/iceberg/flink/data/AdaptHiveFlinkParquetWriters.java