public Table createTable(TestHiveShell shell, String tableName, Schema schema, PartitionSpec spec,
      FileFormat fileFormat, List<Record> records, Integer formatVersion)  {
    return createTable(shell, tableName, schema, spec, fileFormat, records, formatVersion, Collections.emptyMap());
  }
Creates a partitioned Hive test table using Hive SQL. The table will be in the 'default' database.
The table will be populated with the provided List of {@link Record}s using a Hive insert statement.
@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 spec The partition specification for the table
@param fileFormat The file format used for writing the data
@param records The records with which the table is populated
@param formatVersion The version of the spec the table should use (format-version)
@return The created table
@throws IOException If there is an error writing data
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestTables.java