-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-46452][SQL] Add a new API in DataWriter to write an iterator o…
…f records ### What changes were proposed in this pull request? This PR proposes to add a new method in `DataWriter` that supports writing an iterator of records: ```java void writeAll(Iterator<T> records) throws IOException ``` ### Why are the changes needed? To make the API more flexible and support more use cases (e.g Python data sources). See #43791 ### Does this PR introduce _any_ user-facing change? Yes. This PR introduces a new method in `DataWriter`. ### How was this patch tested? Existing unit tests. ### Was this patch authored or co-authored using generative AI tooling? No Closes #44410 from allisonwang-db/spark-46452-dsv2-write-all. Authored-by: allisonwang-db <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
- Loading branch information
1 parent
cf54e8f
commit c9cfaac
Showing
2 changed files
with
88 additions
and
51 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