diff --git a/.codegen/_last_sha b/.codegen/_last_sha index c30e448de..e66f5e653 100644 --- a/.codegen/_last_sha +++ b/.codegen/_last_sha @@ -1 +1 @@ -7346efba99de661d9327d805d92dc67f461933c1 \ No newline at end of file +6fdee6b2790c8a487592a5371b478d55b4c9f185 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index acfce4843..dbc84179c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Version changelog +## Release v0.178.0 (2026-11-10) + +### API Changes +* Add `outputTypeText` field for `com.databricks.sdk.service.ml.Feature`. +* Add `servicePrincipal` field for `com.databricks.sdk.service.postgres.CdfConfig`. +* Add `groupName` field for `com.databricks.sdk.service.postgres.GenerateDatabaseCredentialRequest`. +* [Breaking] Change `notebookContent` field for `com.databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook` to no longer be required. +* Change `notebookContent` field for `com.databricks.sdk.service.cleanrooms.CleanRoomAssetNotebook` to no longer be required. + ## Release v0.177.0 (2026-11-09) ### API Changes diff --git a/databricks-sdk-java/lockfile.json b/databricks-sdk-java/lockfile.json index f09b313c3..5bdadec82 100644 --- a/databricks-sdk-java/lockfile.json +++ b/databricks-sdk-java/lockfile.json @@ -1,7 +1,7 @@ { "artifactId": "databricks-sdk-java", "groupId": "com.databricks", - "version": "0.177.0", + "version": "0.178.0", "lockFileVersion": 1, "dependencies": [ { diff --git a/databricks-sdk-java/pom.xml b/databricks-sdk-java/pom.xml index e35abbdf0..0d7b7b28f 100644 --- a/databricks-sdk-java/pom.xml +++ b/databricks-sdk-java/pom.xml @@ -5,7 +5,7 @@ com.databricks databricks-sdk-parent - 0.177.0 + 0.178.0 databricks-sdk-java Databricks SDK for Java diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java index 216490d6a..aad2c1e12 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/core/UserAgent.java @@ -36,7 +36,7 @@ public String getValue() { // TODO: check if reading from // /META-INF/maven/com.databricks/databrics-sdk-java/pom.properties // or getClass().getPackage().getImplementationVersion() is enough. - private static final String version = "0.177.0"; + private static final String version = "0.178.0"; public static void withProduct(String product, String productVersion) { UserAgent.product = product; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Feature.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Feature.java index 72c006390..6d4126d8e 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Feature.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/Feature.java @@ -65,6 +65,13 @@ public class Feature { @JsonProperty("name") private String name; + /** + * Output type in Databricks SQL DDL (e.g., "BIGINT", "DECIMAL(10,2)", "ARRAY", + * "STRUCT"). + */ + @JsonProperty("output_type_text") + private String outputTypeText; + /** Name of parent schema relative to its parent catalog. */ @JsonProperty("schema_name") private String schemaName; @@ -184,6 +191,15 @@ public String getName() { return name; } + public Feature setOutputTypeText(String outputTypeText) { + this.outputTypeText = outputTypeText; + return this; + } + + public String getOutputTypeText() { + return outputTypeText; + } + public Feature setSchemaName(String schemaName) { this.schemaName = schemaName; return this; @@ -236,6 +252,7 @@ public boolean equals(Object o) { && Objects.equals(inputs, that.inputs) && Objects.equals(lineageContext, that.lineageContext) && Objects.equals(name, that.name) + && Objects.equals(outputTypeText, that.outputTypeText) && Objects.equals(schemaName, that.schemaName) && Objects.equals(source, that.source) && Objects.equals(timeWindow, that.timeWindow) @@ -256,6 +273,7 @@ public int hashCode() { inputs, lineageContext, name, + outputTypeText, schemaName, source, timeWindow, @@ -276,6 +294,7 @@ public String toString() { .add("inputs", inputs) .add("lineageContext", lineageContext) .add("name", name) + .add("outputTypeText", outputTypeText) .add("schemaName", schemaName) .add("source", source) .add("timeWindow", timeWindow) diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureFunction.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureFunction.java index 14893ab1f..013547668 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureFunction.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureFunction.java @@ -11,7 +11,10 @@ /** A Python UDF that computes a feature. */ @Generated public class FeatureFunction { - /** Bindings of the UDF's parameters to features. */ + /** + * Bindings of the UDF's parameters to features. Order is not significant, and GetFeatureSpec can + * return them in a different order. + */ @JsonProperty("input_bindings") private Collection inputBindings; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureLookup.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureLookup.java index 4918346da..d78c868db 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureLookup.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureLookup.java @@ -12,7 +12,10 @@ /** Features to look up from a feature table. */ @Generated public class FeatureLookup { - /** Default values for features. */ + /** + * Default values for features. Order is not significant, and GetFeatureSpec can return them in a + * different order. + */ @JsonProperty("default_values") private Collection defaultValues; @@ -28,7 +31,10 @@ public class FeatureLookup { @JsonProperty("lookup_keys") private Collection lookupKeys; - /** Output names for features, in place of their names in the feature table. */ + /** + * Output names for features, in place of their names in the feature table. Order is not + * significant, and GetFeatureSpec can return them in a different order. + */ @JsonProperty("rename_outputs") private Collection renameOutputs; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureSpec.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureSpec.java index 83e40d7d3..d95fd00d8 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureSpec.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/ml/FeatureSpec.java @@ -11,7 +11,10 @@ /** A named set of features to serve, stored as a Unity Catalog function. */ @Generated public class FeatureSpec { - /** Output names of columns to leave out of the feature spec. */ + /** + * Output names of columns to leave out of the feature spec. Order is not significant, and + * GetFeatureSpec can return them in a different order. + */ @JsonProperty("exclude_columns") private Collection excludeColumns; diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CdfConfig.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CdfConfig.java index 1065d6ae5..da87a09e8 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CdfConfig.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/CdfConfig.java @@ -53,6 +53,14 @@ public class CdfConfig { @JsonProperty("schema") private String schema; + /** + * The service principal (application id) whose identity authorizes this change data feed's + * ongoing writes to Unity Catalog. When unset, writes are authorized as the creating identity. + * Changing it requires a new CdfConfig, which writes to new Delta tables. + */ + @JsonProperty("service_principal") + private String servicePrincipal; + public CdfConfig setCatalog(String catalog) { this.catalog = catalog; return this; @@ -107,6 +115,15 @@ public String getSchema() { return schema; } + public CdfConfig setServicePrincipal(String servicePrincipal) { + this.servicePrincipal = servicePrincipal; + return this; + } + + public String getServicePrincipal() { + return servicePrincipal; + } + @Override public boolean equals(Object o) { if (this == o) return true; @@ -117,12 +134,14 @@ public boolean equals(Object o) { && Objects.equals(createTime, that.createTime) && Objects.equals(name, that.name) && Objects.equals(postgresSchema, that.postgresSchema) - && Objects.equals(schema, that.schema); + && Objects.equals(schema, that.schema) + && Objects.equals(servicePrincipal, that.servicePrincipal); } @Override public int hashCode() { - return Objects.hash(catalog, cdfConfigId, createTime, name, postgresSchema, schema); + return Objects.hash( + catalog, cdfConfigId, createTime, name, postgresSchema, schema, servicePrincipal); } @Override @@ -134,6 +153,7 @@ public String toString() { .add("name", name) .add("postgresSchema", postgresSchema) .add("schema", schema) + .add("servicePrincipal", servicePrincipal) .toString(); } } diff --git a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GenerateDatabaseCredentialRequest.java b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GenerateDatabaseCredentialRequest.java index 74c19fbc6..989f08894 100644 --- a/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GenerateDatabaseCredentialRequest.java +++ b/databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/GenerateDatabaseCredentialRequest.java @@ -30,6 +30,14 @@ public class GenerateDatabaseCredentialRequest { @JsonProperty("expire_time") private Timestamp expireTime; + /** + * The display name of a `Databricks` workspace group. When set, the returned credential is scoped + * to this group, so the caller connects directly as the group's Postgres role. The caller must be + * a member of the group. When omitted, the credential is scoped to the caller's own identity. + */ + @JsonProperty("group_name") + private String groupName; + /** * The requested time-to-live for the generated credential token. Must be at least 300 seconds (5 * minutes) and at most 3600 seconds (1 hour). @@ -64,6 +72,15 @@ public Timestamp getExpireTime() { return expireTime; } + public GenerateDatabaseCredentialRequest setGroupName(String groupName) { + this.groupName = groupName; + return this; + } + + public String getGroupName() { + return groupName; + } + public GenerateDatabaseCredentialRequest setTtl(Duration ttl) { this.ttl = ttl; return this; @@ -81,12 +98,13 @@ public boolean equals(Object o) { return Objects.equals(claims, that.claims) && Objects.equals(endpoint, that.endpoint) && Objects.equals(expireTime, that.expireTime) + && Objects.equals(groupName, that.groupName) && Objects.equals(ttl, that.ttl); } @Override public int hashCode() { - return Objects.hash(claims, endpoint, expireTime, ttl); + return Objects.hash(claims, endpoint, expireTime, groupName, ttl); } @Override @@ -95,6 +113,7 @@ public String toString() { .add("claims", claims) .add("endpoint", endpoint) .add("expireTime", expireTime) + .add("groupName", groupName) .add("ttl", ttl) .toString(); } diff --git a/examples/docs/pom.xml b/examples/docs/pom.xml index d27ad4a73..4448456d0 100644 --- a/examples/docs/pom.xml +++ b/examples/docs/pom.xml @@ -24,7 +24,7 @@ com.databricks databricks-sdk-java - 0.177.0 + 0.178.0 diff --git a/examples/spring-boot-oauth-u2m-demo/pom.xml b/examples/spring-boot-oauth-u2m-demo/pom.xml index 6d4afe492..c48f69237 100644 --- a/examples/spring-boot-oauth-u2m-demo/pom.xml +++ b/examples/spring-boot-oauth-u2m-demo/pom.xml @@ -40,7 +40,7 @@ com.databricks databricks-sdk-java - 0.177.0 + 0.178.0 diff --git a/lockfile.json b/lockfile.json index ac7d59776..54ec73eec 100644 --- a/lockfile.json +++ b/lockfile.json @@ -1,7 +1,7 @@ { "artifactId": "databricks-sdk-parent", "groupId": "com.databricks", - "version": "0.177.0", + "version": "0.178.0", "lockFileVersion": 1, "dependencies": [], "mavenPlugins": [], diff --git a/pom.xml b/pom.xml index c1f6bee15..50455b214 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.databricks databricks-sdk-parent - 0.177.0 + 0.178.0 pom Databricks SDK for Java The Databricks SDK for Java includes functionality to accelerate development with Java for diff --git a/shaded/pom.xml b/shaded/pom.xml index 5c18c63ea..8f0b51cb9 100644 --- a/shaded/pom.xml +++ b/shaded/pom.xml @@ -4,7 +4,7 @@ 4.0.0 - 0.177.0 + 0.178.0 com.databricks