Add Parallel Large File Upload and Download in FilesAPI #1075
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.
What changes are proposed in this pull request?
WHAT
upload_fromtodatabricks.sdk.mixins.FilesExtto support upload from a file in local filesystem.databricks.sdk.mixins.FilesExtupload throughput by uploading data in parallel by default.download_totodatabricks.sdk.mixins.FilesExtto support download to a file in local filesystem. This interface downloads file in parallel to reduce the end-to-end latency of the download. The parallel downloading feature is temporarily unavailable to Windows.databricks.sdk.mixins.FilesExt.uploadto support uploading when Presigned URL is not enabled for the Workspace by introducing a fallback to Single Part Upload.use_parallel,parallelism,part_sizefield fordatabricks.sdk.mixins.FilesExt.upload.WHY
upload_fromanddownload_toare added for two purposes:databricks.sdk.mixins.FilesExtwere updated to have afiles_extprefix to organize the configurations.How is this tested?
The functionalities are tested using unit tests, and manual tests over benchmarking scrips running in local laptop and in Notebooks in different real workspaces.