[flink] Support blob compaction for data evolution tables#7932
Merged
JingsongLi merged 18 commits intoMay 22, 2026
Conversation
JingsongLi
requested changes
May 22, 2026
Contributor
JingsongLi
left a comment
There was a problem hiding this comment.
- Should blob compaction be controlled by option
- In CompactPlanner and DataEvolution CompactTask, the logic for parsing the field ID of blob files is basically the same.
JingsongLi
reviewed
May 22, 2026
| .rawConvertible(false) | ||
| .build(); | ||
| RecordReader<InternalRow> reader = | ||
| store.newDataEvolutionRead().withReadType(blobWriteType).createReader(dataSplit); |
Contributor
There was a problem hiding this comment.
You should use blob-as-descriptor to read blob.
3d2bd6e to
ec28e95
Compare
JingsongLi
reviewed
May 22, 2026
| <td>The TTL in rocksdb index for cross partition upsert (primary keys not contain all partition fields), this can avoid maintaining too many indexes and lead to worse and worse performance, but please note that this may also cause data duplication.</td> | ||
| </tr> | ||
| <tr> | ||
| <td><h5>data-evolution.compaction.blob.enabled</h5></td> |
Contributor
There was a problem hiding this comment.
blob-compaction.enabled
Contributor
|
+1 |
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
Enable Flink data-evolution compaction to plan and execute blob compaction tasks.
This implements
DataEvolutionCompactTasksupport forblobTaskby rewriting dedicated blob files withMultipleBlobFileWriter. It also enables the Flink data-evolution compact source to plan blob tasks.The reader path now also supports blob-only merge groups, which is required when a data-evolution blob task contains multiple blob fields without the corresponding normal data file in the same split.
Tests
mvn -pl paimon-core -DfailIfNoTests=false -Dtest=MultipleBlobTableTest#testDataEvolutionBlobCompaction testmvn -pl paimon-flink/paimon-flink-common -DfailIfNoTests=false -Dtest=BlobTableITCase#testBlobCompaction+testMultipleBlobCompaction testmvn -pl paimon-core -DfailIfNoTests=false -Dtest=MultipleBlobTableTest testmvn -pl paimon-flink/paimon-flink-common -DfailIfNoTests=false -Dtest=BlobTableITCase test