public static AlterReplicaTask rollupLocalTablet(long backendId, long dbId, long tableId, long partitionId,
                                                     long rollupIndexId, long rollupTabletId, long baseTabletId,
                                                     long newReplicaId, int newSchemaHash, int baseSchemaHash, long version,
                                                     long jobId, RollupJobV2Params rollupJobV2Params,
                                                     List<Column> baseSchemaColumns) {
        return new AlterReplicaTask(backendId, dbId, tableId, partitionId, rollupIndexId, rollupTabletId,
                baseTabletId, newReplicaId, newSchemaHash, baseSchemaHash, version, jobId, AlterJobV2.JobType.ROLLUP,
                TTabletType.TABLET_TYPE_DISK, 0, null,
                baseSchemaColumns, rollupJobV2Params);
    }
@Test
    public void testRollupLocalTablet() {
        AlterReplicaTask task = AlterReplicaTask.rollupLocalTablet(1, 2, 3, 4, 5, 6,
                7, 8, 9, 10, 11, 12, null, null);

        Assert.assertEquals(1, task.getBackendId());
        Assert.assertEquals(2, task.getDbId());
        Assert.assertEquals(3, task.getTableId());
        Assert.assertEquals(4, task.getPartitionId());
        Assert.assertEquals(5, task.getIndexId());
        Assert.assertEquals(6, task.getTabletId());
        Assert.assertEquals(7, task.getBaseTabletId());
        Assert.assertEquals(8, task.getNewReplicaId());
        Assert.assertEquals(9, task.getNewSchemaHash());
        Assert.assertEquals(10, task.getBaseSchemaHash());
        Assert.assertEquals(11, task.getVersion());
        Assert.assertEquals(12, task.getJobId());
        Assert.assertEquals(AlterJobV2.JobType.ROLLUP, task.getJobType());

        TAlterTabletReqV2 request = task.toThrift();
        Assert.assertEquals(7, request.base_tablet_id);
        Assert.assertEquals(6, request.new_tablet_id);
        Assert.assertEquals(10, request.base_schema_hash);
        Assert.assertEquals(9, request.new_schema_hash);
        Assert.assertEquals(11, request.alter_version);
        Assert.assertEquals(TTabletType.TABLET_TYPE_DISK, request.tablet_type);
    }