@Override
  public boolean equalsOtherTask(AbstractCompactionTask otherTask) {
    if (!(otherTask instanceof SettleCompactionTask)) {
      return false;
    }
    SettleCompactionTask otherSettleCompactionTask = (SettleCompactionTask) otherTask;
    return this.fullyDirtyFiles.equals(otherSettleCompactionTask.fullyDirtyFiles)
        && filesView.sourceFilesInCompactionPerformer.equals(
            otherSettleCompactionTask.filesView.sourceFilesInCompactionPerformer)
        && this.performer.getClass().isInstance(otherSettleCompactionTask.performer);
  }
Use inner compaction task to compact the partially_dirty files.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/SettleCompactionTask.java