Skip to content
Open
4 changes: 3 additions & 1 deletion NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### New Features and Improvements

- Upload of big files (> 5Gb) to UC Volumes using multipart chunking ([#621](https://github.com/databricks/databricks-sdk-go/pull/1621)).

### Bug Fixes

### Documentation
Expand All @@ -16,4 +18,4 @@
* Add `ServerlessComputeId` field for [pipelines.ClonePipelineRequest](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#ClonePipelineRequest).
* Add `ServerlessComputeId` field for [pipelines.CreatePipeline](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#CreatePipeline).
* Add `ServerlessComputeId` field for [pipelines.EditPipeline](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#EditPipeline).
* Add `ServerlessComputeId` field for [pipelines.PipelineSpec](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#PipelineSpec).
* Add `ServerlessComputeId` field for [pipelines.PipelineSpec](https://pkg.go.dev/github.com/databricks/databricks-sdk-go/service/pipelines#PipelineSpec).
55 changes: 55 additions & 0 deletions experimental/mocks/service/files/mock_files_upload.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Hand-written mock stubs for filesAPIUploadUtilities methods.
// These will be replaced by mockery-generated code on the next `make codegen`.

package files

import (
"context"
"io"

files "github.com/databricks/databricks-sdk-go/service/files"
)

// UploadWithChunking provides a mock function for the FilesInterface.
func (_m *MockFilesInterface) UploadWithChunking(ctx context.Context, filePath string, content io.ReadSeeker, contentLength int64, opts ...files.UploadOption) error {
_va := make([]any, len(opts))
for _i := range opts {
_va[_i] = opts[_i]
}
var _ca []any
_ca = append(_ca, ctx, filePath, content, contentLength)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
if len(ret) == 0 {
panic("no return value specified for UploadWithChunking")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, io.ReadSeeker, int64, ...files.UploadOption) error); ok {
r0 = rf(ctx, filePath, content, contentLength, opts...)
} else {
r0 = ret.Error(0)
}
return r0
}

// UploadFromFile provides a mock function for the FilesInterface.
func (_m *MockFilesInterface) UploadFromFile(ctx context.Context, filePath string, sourcePath string, opts ...files.UploadOption) error {
_va := make([]any, len(opts))
for _i := range opts {
_va[_i] = opts[_i]
}
var _ca []any
_ca = append(_ca, ctx, filePath, sourcePath)
_ca = append(_ca, _va...)
ret := _m.Called(_ca...)
if len(ret) == 0 {
panic("no return value specified for UploadFromFile")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, string, ...files.UploadOption) error); ok {
r0 = rf(ctx, filePath, sourcePath, opts...)
} else {
r0 = ret.Error(0)
}
return r0
}
1 change: 1 addition & 0 deletions service/files/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading