public List<TabletCommitInfo> buildTabletCommitInfo() {
        return tasks.stream().map(CompactionTask::buildTabletCommitInfo).flatMap(List::stream).collect(Collectors.toList());
    }
@Test
    public void testBuildTabletCommitInfo() {
        Database db = new Database();
        Table table = new Table(Table.TableType.CLOUD_NATIVE);
        PhysicalPartition partition = new PhysicalPartitionImpl(0, "", 1, 2, null);
        CompactionJob job = new CompactionJob(db, table, partition, 10010, false);
        assertDoesNotThrow(() -> {
            job.buildTabletCommitInfo();
        });
    }