-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[spark] Introduce global file index builder on spark #6684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[spark] Introduce global file index builder on spark #6684
Conversation
| * @param sequenceNumberNullable sequence number is not null for user, but is nullable when read | ||
| * and write | ||
| */ | ||
| public static RowType rowTypeWithRowTracking( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a new method: rowTypeWithRowId(rowType)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
| } | ||
|
|
||
| /** We combine the previous and new index files by file name. */ | ||
| static class GlobalIndexCombiner implements IndexManifestFileCombiner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GlobalFileNameCombiner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
| this.context = context; | ||
| } | ||
|
|
||
| public List<IndexManifestEntry> build(Dataset<Row> input) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could have a new framework to input range + files output index files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
|
+1 |
Purpose
Related to pip: https://cwiki.apache.org/confluence/display/PAIMON/PIP-38%3A+Introduce+Global+Index+for+Paimon+Table
Tests
API and Format
Documentation