-
Notifications
You must be signed in to change notification settings - Fork 721
feat(s3): add to_deltalake_streaming for single-commit Delta writes #3231
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
base: main
Are you sure you want to change the base?
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thanks @skoschik ! There's some minor linting errors, and would be great to have a test case for the streaming write, otherwise looks great! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thanks for the review @kukushking! I've fixed the linting issues and added a few test cases for the streaming write. Let me know if there’s anything else you'd like adjusted. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Feature or Bugfix
Feature
Detail
This PR introduces
wr.s3.to_deltalake_streaming, a helper that allows users to write large datasets to Delta Lake on S3 in a single atomic commit.The existing
wr.s3.to_deltalakewrites one Delta version per call.When data must be processed or loaded in chunks (e.g., due to memory limits), this creates multiple versions and complicates time travel.
The new
to_deltalake_streamingfunction:RecordBatchReaderinto one Delta transaction.Example
Result: one Delta commit per rebuild, instead of multiple chunked versions.
Relates
Enhances Delta Lake integration for S3 single-commit writes.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.