public List<Record> createTableWithGeneratedRecords(TestHiveShell shell, String tableName, Schema schema,
      FileFormat fileFormat, int numRecords) throws IOException {
    List<Record> records = TestHelper.generateRandomRecords(schema, numRecords, 0L);
    createTable(shell, tableName, schema, fileFormat, records);
    return records;
  }
Creates a Hive test table. Creates the Iceberg table/data and creates the corresponding Hive table as well when
needed. The table will be in the 'default' database. The table will be populated with the provided with randomly
generated {@link Record}s.
@param shell The HiveShell used for Hive table creation
@param tableName The name of the test table
@param schema The schema used for the table creation
@param fileFormat The file format used for writing the data
@param numRecords The number of records should be generated and stored in the table
@throws IOException If there is an error writing data
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestTables.java