public OverwriteBaseFiles updateOptimizedSequenceDynamically(long sequence) {
    Preconditions.checkArgument(
        this.dynamic == null || this.dynamic,
        "updateOptimizedSequenceDynamically() and updateOptimizedSequence() can't be used simultaneously");
    this.optimizedSequence = sequence;
    this.dynamic = true;
    return this;
  }
Update optimized sequence for changed partitions. The files of ChangeStore whose sequence is
bigger than optimized sequence should migrate to BaseStore later.

@param sequence - optimized sequence
@return this for chain
amoro-format-iceberg/src/main/java/org/apache/amoro/op/OverwriteBaseFiles.java