[flink][spark] Support manifest sort in compact_manifest - #9083
Open
discivigour wants to merge 5 commits into
Open
[flink][spark] Support manifest sort in compact_manifest#9083discivigour wants to merge 5 commits into
discivigour wants to merge 5 commits into
Conversation
discivigour
marked this pull request as ready for review
August 7, 2026 02:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Extend the
compact_manifestprocedure so manifest sorting can be enabled and tuned for a single invocation without altering persistent table options.This change:
manifest_sort_enabled,manifest_sort_partition_field, andmanifest_sort_max_rewrite_sizearguments to the Flink and Spark procedures;optionsoverride table values, and gives dedicated arguments the highest precedence;compact_manifestaction with corresponding command-line options;Tests
mvn -pl paimon-core,paimon-flink/paimon-flink-common -Pflink1 -DskipTests -Dmaven.repo.local=/opt/homebrew/opt/maven/repository spotless:checkmvn -pl paimon-flink/paimon-flink-common -am -Pfast-build -Pflink1 -DfailIfNoTests=false -DwildcardSuites=none -Dtest=CompactManifestProcedureITCase -Dmaven.repo.local=/opt/homebrew/opt/maven/repository testmvn -pl paimon-spark/paimon-spark-ut -am -Pfast-build -Pspark3 -DfailIfNoTests=false -DwildcardSuites=org.apache.paimon.spark.procedure.CompactManifestProcedureTest -Dtest=none -Dmaven.repo.local=/opt/homebrew/opt/maven/repository testgit diff --check origin/master...HEAD