@Test
  public void testCreateTableFailedWithNestedIdentifierField() {
    TableIdentifier identifier = TableIdentifier.of("default", "customers");
    String query = String.format("CREATE EXTERNAL TABLE customers_with_nested_column (" +
                    "customer_id BIGINT," +
                    "first_name STRING, " +
                    "last_name STRING, " +
                    "user_info STRUCT<address: STRING, phone: STRING> primary key disable novalidate) " +
                    "STORED BY iceBerg %s TBLPROPERTIES ('%s'='%s')",
            testTables.locationForCreateTableSQL(identifier),
            InputFormatConfig.CATALOG_NAME,
            testTables.catalogName());

    // Iceberg table doesn't support nested column as identifier field.
    Assert.assertThrows(
            "Cannot add field user_info as an identifier field: not a primitive type field",
            IllegalArgumentException.class, () -> shell.executeStatement(query));
  }
Checks that the new schema has newintcol and newstring col columns on both HMS and Iceberg sides
@throws Exception - any test error
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java