public Table createIcebergTable(Configuration configuration, String tableName, Schema schema, SortOrder order,
      PartitionSpec partSpec, FileFormat fileFormat, Map<String, String> additionalTableProps, List<Record> records)
      throws IOException {
    String identifier = identifier("default." + tableName);
    TestHelper helper = new TestHelper(new Configuration(configuration), tables(), identifier, schema,
        partSpec, fileFormat, additionalTableProps, temp);
    helper.setOrder(order);
    Table table = helper.createTable();

    if (records != null && !records.isEmpty()) {
      helper.appendToTable(helper.writeFile(null, records));
    }

    return table;
  }
Creates an Iceberg table/data without creating the corresponding Hive table. The table will be in the 'default'
namespace.
@param configuration The configuration used during the table creation
@param tableName The name of the test table
@param schema The schema used for the table creation
@param order The sort order used for the table creation
@param partSpec The partition spec used for the table creation
@param fileFormat The file format used for writing the data
@param records The records with which the table is populated
@return The create table
@throws IOException If there is an error writing data
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestTables.java