databricks / databricks-sdk-go

Databricks SDK for Go
https://docs.databricks.com/dev-tools/sdk-go.html
Apache License 2.0
46 stars 38 forks source link

Add DataPlane API Support #936

Open hectorcast-db opened 1 month ago

hectorcast-db commented 1 month ago

Changes

Add DataPlane API Support

Tests

Manual test:

input := []string{}
input = append(input, "Hello, I'm a language model,")
_, err := w.ServingEndpointsDataPlane.Query(context.Background(), serving.QueryEndpointInput{
    Name:   <...>,
    Inputs: input,
})
require.NoError(t, err)
codecov-commenter commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 16.74208% with 184 lines in your changes missing coverage. Please review.

Project coverage is 7.09%. Comparing base (d098b1a) to head (c5cfd49).

Files Patch % Lines
...ing/mock_serving_endpoints_data_plane_interface.go 5.81% 81 Missing :warning:
service/serving/impl.go 0.00% 31 Missing :warning:
service/catalog/model.go 0.00% 15 Missing :warning:
service/serving/api.go 0.00% 13 Missing :warning:
openapi/code/method.go 0.00% 12 Missing :warning:
httpclient/request.go 0.00% 8 Missing :warning:
openapi/code/service.go 11.11% 8 Missing :warning:
httpclient/oauth_token.go 0.00% 6 Missing :warning:
experimental/mocks/mock_workspace_client.go 16.66% 5 Missing :warning:
client/client.go 0.00% 4 Missing :warning:
... and 1 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #936 +/- ## ======================================== + Coverage 7.04% 7.09% +0.04% ======================================== Files 282 284 +2 Lines 65329 65542 +213 ======================================== + Hits 4602 4648 +46 - Misses 60418 60584 +166 - Partials 309 310 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.