-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support write multi fragments or empty fragment in one spark ta…
…sk (#3183) Now `FileFragment::create` only support create one file fragment and in spark connector will cause these two issues: 1. if the spark task is empty, this api will have exception since there is no data to create the fragment. 2. if the task data stream is very large, it will generate a huge file in lance format. It is not friendly for spark parallism. So I remove the assigned fragment id and add a new method named `FileFragment::create_fragments` to generate empty or multi fragments. ![image](https://github.com/user-attachments/assets/54fb2497-8163-4652-9e0b-d50a88fade53)
- Loading branch information
1 parent
dc9afbb
commit 39222ec
Showing
13 changed files
with
281 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.