Skip to content

Commit 6b93586

Browse files
Improve error message when using non-optimized model serving endpoints. (#476)
## What changes are proposed in this pull request? This PR improves error handling of the route-optimized query method to return an actual error (instead of a NPE) when calling the method on a non-optimized endpoint. ## How is this tested? Unit + Integration tests.
1 parent 660d785 commit 6b93586

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

NEXT_CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
### Internal Changes
1212

13+
* The route-optimized query method now returns a descriptive error instead of a NullPointerException when called on a non-optimized endpoint.
14+
1315
### API Changes
16+
1417
* Added `workspaceClient.aiBuilder()` service.
1518
* Added `workspaceClient.featureStore()` service and `workspaceClient.materializedFeatures()` service.
1619
* Added `deleteConversation()`, `listConversations()` and `trashSpace()` methods for `workspaceClient.genie()` service.

databricks-sdk-java/src/main/java/com/databricks/sdk/service/serving/ServingEndpointsDataPlaneImpl.java

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)