public static void alterTable()

in paimon-web-api/src/main/java/org/apache/paimon/web/api/table/TableManager.java [288:304]


    public static void alterTable(
            Catalog catalog, String dbName, String tableName, List<AlterTableEntity> entities)
            throws Catalog.TableNotExistException, IOException, Catalog.ColumnAlreadyExistException,
                    Catalog.ColumnNotExistException {
        checkNotNull(catalog, dbName, tableName);

        Identifier identifier = Identifier.create(dbName, tableName);

        List<SchemaChange> schemaChanges = new ArrayList<>();

        for (AlterTableEntity entity : entities) {
            SchemaChange schemaChange = performAlterTableAction(catalog, dbName, tableName, entity);
            schemaChanges.add(schemaChange);
        }

        catalog.alterTable(identifier, schemaChanges, false);
    }