private static SchemaChange performAlterTableAction()

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


    private static SchemaChange performAlterTableAction(
            Catalog catalog, String dbName, String tableName, AlterTableEntity entity)
            throws Catalog.TableNotExistException, IOException {
        OperatorKind kind = entity.getKind();

        switch (kind) {
            case ADD_COLUMN:
                return addColumn(entity);
            case RENAME_COLUMN:
                return renameColumn(catalog, dbName, tableName, entity);
            case DROP_COLUMN:
                return dropColumn(catalog, dbName, tableName, entity);
            case UPDATE_COLUMN_COMMENT:
                return updateColumnComment(catalog, dbName, tableName, entity);
            case UPDATE_COLUMN_TYPE:
                return updateColumnType(catalog, dbName, tableName, entity);
            case UPDATE_COLUMN_POSITION:
                return updateColumnPosition(entity);
            case UPDATE_COLUMN_NULLABILITY:
                return updateColumnNullability(catalog, dbName, tableName, entity);
            default:
                return null;
        }
    }