@Test
  public void testMigrateHiveTableWithUnsupportedPrimitiveTypeColumnToIceberg() {
    // enough to test once
    Assume.assumeTrue(fileFormat == FileFormat.ORC && isVectorized &&
        testTableType == TestTables.TestTableType.HIVE_CATALOG);
    TableIdentifier identifier = TableIdentifier.of("default", "tbl_unsupportedtypes");
    shell.executeStatement(String.format("CREATE EXTERNAL TABLE %s (" +
        "char_col CHAR(10)) STORED AS %s %s %s", identifier.name(), fileFormat.name(),
        testTables.locationForCreateTableSQL(identifier), testTables.propertiesForCreateTableSQL(ImmutableMap.of())));
    AssertHelpers.assertThrows("should throw exception", IllegalArgumentException.class,
        "Cannot convert hive table to iceberg that", () -> {
          shell.executeStatement(String.format("ALTER TABLE %s Convert to iceberg", identifier.name()));
        });
  }
Tests table migration from native Hive tables to Iceberg backed tables (with the same underlying fileformat).
Migration on the original tables is done by setting HiveIcebergStorageHandler on them, contents later should be
verified by a select query.
iceberg/iceberg-handler/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergMigration.java