Skip to content

Commit f2d5230

Browse files
committed
-
1 parent e465191 commit f2d5230

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### New Features and Improvements
66

7+
* Add support for unified hosts with experimental flag.
78
* Increase async cache stale period from 3 to 5 minutes to cover the maximum monthly downtime of a 99.99% uptime SLA.
89

910
### Bug Fixes

databricks-sdk-java/src/main/java/com/databricks/sdk/core/DatabricksConfig.java

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -758,13 +758,8 @@ public boolean isAccountClient() {
758758
/**
759759
* Determines the type of host based on configuration settings and host URL.
760760
*
761-
* <p>Detection logic:
762-
*
763-
* <ol>
764-
* <li>If experimentalIsUnifiedHost is true → UNIFIED
765-
* <li>If host starts with "accounts." or "accounts-dod." → ACCOUNTS
766-
* <li>Otherwise → WORKSPACE
767-
* </ol>
761+
* <p>Returns UNIFIED if experimentalIsUnifiedHost is true, ACCOUNTS if the host starts with
762+
* "accounts." or "accounts-dod.", and WORKSPACE otherwise.
768763
*
769764
* @return The detected host type
770765
*/
@@ -784,14 +779,9 @@ public HostType getHostType() {
784779
/**
785780
* Determines the client type based on host type and workspace ID configuration.
786781
*
787-
* <p>Client type logic:
788-
*
789-
* <ul>
790-
* <li>UNIFIED host + workspaceId set → WORKSPACE_ON_UNIFIED
791-
* <li>UNIFIED host + no workspaceId → ACCOUNT_ON_UNIFIED
792-
* <li>ACCOUNTS host → ACCOUNT
793-
* <li>WORKSPACE host → WORKSPACE
794-
* </ul>
782+
* <p>For unified hosts, returns WORKSPACE_ON_UNIFIED if a workspace ID is set, or
783+
* ACCOUNT_ON_UNIFIED otherwise. For traditional hosts, returns ACCOUNT or WORKSPACE based on the
784+
* host type.
795785
*
796786
* @return The determined client type
797787
*/

0 commit comments

Comments
 (0)