Skip to content

Commit 000edb2

Browse files
Update SDK to ed8b5e7ec1f143395503eebae9fbc74cf8c309bc
1 parent ba68f27 commit 000edb2

File tree

8 files changed

+57
-11
lines changed

8 files changed

+57
-11
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8e2bc4c67d9f4c3aed496549fed9f3e29e4874b1
1+
ed8b5e7ec1f143395503eebae9fbc74cf8c309bc

.github/workflows/tagging.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
name: tagging
33

44
on:
5+
# Manual dispatch.
56
workflow_dispatch:
6-
# Runs at 8:00 UTC on Tuesday, Wednesday, and Thursday.
7-
# To disable this flow, simply comment the schedule section.
7+
# No inputs are required for the manual dispatch.
8+
9+
# Runs at 8:00 UTC on Tuesday, Wednesday, and Thursday. To enable automated
10+
# tagging for a repository, simply add it to the if block of the tag job.
811
schedule:
912
- cron: '0 8 * * TUE,WED,THU'
1013

@@ -15,6 +18,14 @@ concurrency:
1518

1619
jobs:
1720
tag:
21+
# Only run the tag job if the trigger is manual (workflow_dispatch) or
22+
# the repository has been approved for automated releases.
23+
#
24+
# To disable release for a repository, simply exclude it from the if
25+
# condition.
26+
if: >-
27+
github.event_name == 'workflow_dispatch' ||
28+
github.repository == 'databricks/databricks-sdk-go'
1829
environment: "release-is"
1930
runs-on:
2031
group: databricks-deco-testing-runner-group

NEXT_CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313
### Internal Changes
1414

1515
### API Changes
16+
* Add `outputs` field for `com.databricks.sdk.service.serving.QueryEndpointResponse`.
17+
* Add `sessionId` field for `com.databricks.sdk.service.sql.QueryInfo`.

databricks-sdk-java/src/main/java/com/databricks/sdk/service/catalog/ConnectionType.java

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

55
import com.databricks.sdk.support.Generated;
66

7-
/** Next Id: 54 */
7+
/** Next Id: 72 */
88
@Generated
99
public enum ConnectionType {
1010
BIGQUERY,

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/EndpointSpec.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ public class EndpointSpec {
3535
private EndpointSettings settings;
3636

3737
/**
38-
* Duration of inactivity after which the compute endpoint is automatically suspended. Supported
39-
* values: -1s (never suspend), 0s (use default), or value should be between 60s and 604800s (1
40-
* minute to 1 week).
38+
* Duration of inactivity after which the compute endpoint is automatically suspended. If
39+
* specified should be between 60s and 604800s (1 minute to 1 week).
4140
*/
4241
@JsonProperty("suspend_timeout_duration")
4342
private Duration suspendTimeoutDuration;

databricks-sdk-java/src/main/java/com/databricks/sdk/service/postgres/ProjectDefaultEndpointSettings.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ public class ProjectDefaultEndpointSettings {
2525
private Map<String, String> pgSettings;
2626

2727
/**
28-
* Duration of inactivity after which the compute endpoint is automatically suspended. Supported
29-
* values: -1s (never suspend), 0s (use default), or value should be between 60s and 604800s (1
30-
* minute to 1 week).
28+
* Duration of inactivity after which the compute endpoint is automatically suspended. If
29+
* specified should be between 60s and 604800s (1 minute to 1 week).
3130
*/
3231
@JsonProperty("suspend_timeout_duration")
3332
private Duration suspendTimeoutDuration;

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

100755100644
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.databricks.sdk.support.ToStringer;
88
import com.fasterxml.jackson.annotation.JsonIgnore;
99
import com.fasterxml.jackson.annotation.JsonProperty;
10+
import com.fasterxml.jackson.databind.JsonNode;
1011
import java.util.Collection;
1112
import java.util.Objects;
1213

@@ -54,6 +55,10 @@ public class QueryEndpointResponse {
5455
@JsonProperty("object")
5556
private QueryEndpointResponseObject object;
5657

58+
/** The outputs of the feature serving endpoint. */
59+
@JsonProperty("outputs")
60+
private Collection<JsonNode> outputs;
61+
5762
/** The predictions returned by the serving endpoint. */
5863
@JsonProperty("predictions")
5964
private Collection<Object> predictions;
@@ -127,6 +132,15 @@ public QueryEndpointResponseObject getObject() {
127132
return object;
128133
}
129134

135+
public QueryEndpointResponse setOutputs(Collection<JsonNode> outputs) {
136+
this.outputs = outputs;
137+
return this;
138+
}
139+
140+
public Collection<JsonNode> getOutputs() {
141+
return outputs;
142+
}
143+
130144
public QueryEndpointResponse setPredictions(Collection<Object> predictions) {
131145
this.predictions = predictions;
132146
return this;
@@ -165,6 +179,7 @@ public boolean equals(Object o) {
165179
&& Objects.equals(id, that.id)
166180
&& Objects.equals(model, that.model)
167181
&& Objects.equals(object, that.object)
182+
&& Objects.equals(outputs, that.outputs)
168183
&& Objects.equals(predictions, that.predictions)
169184
&& Objects.equals(servedModelName, that.servedModelName)
170185
&& Objects.equals(usage, that.usage);
@@ -173,7 +188,7 @@ public boolean equals(Object o) {
173188
@Override
174189
public int hashCode() {
175190
return Objects.hash(
176-
choices, created, data, id, model, object, predictions, servedModelName, usage);
191+
choices, created, data, id, model, object, outputs, predictions, servedModelName, usage);
177192
}
178193

179194
@Override
@@ -185,6 +200,7 @@ public String toString() {
185200
.add("id", id)
186201
.add("model", model)
187202
.add("object", object)
203+
.add("outputs", outputs)
188204
.add("predictions", predictions)
189205
.add("servedModelName", servedModelName)
190206
.add("usage", usage)

databricks-sdk-java/src/main/java/com/databricks/sdk/service/sql/QueryInfo.java

100755100644
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ public class QueryInfo {
9797
@JsonProperty("rows_produced")
9898
private Long rowsProduced;
9999

100+
/**
101+
* The spark session UUID that query ran on. This is either the Spark Connect, DBSQL, or SDP
102+
* session ID.
103+
*/
104+
@JsonProperty("session_id")
105+
private String sessionId;
106+
100107
/** URL to the Spark UI query plan. */
101108
@JsonProperty("spark_ui_url")
102109
private String sparkUiUrl;
@@ -298,6 +305,15 @@ public Long getRowsProduced() {
298305
return rowsProduced;
299306
}
300307

308+
public QueryInfo setSessionId(String sessionId) {
309+
this.sessionId = sessionId;
310+
return this;
311+
}
312+
313+
public String getSessionId() {
314+
return sessionId;
315+
}
316+
301317
public QueryInfo setSparkUiUrl(String sparkUiUrl) {
302318
this.sparkUiUrl = sparkUiUrl;
303319
return this;
@@ -376,6 +392,7 @@ public boolean equals(Object o) {
376392
&& Objects.equals(queryStartTimeMs, that.queryStartTimeMs)
377393
&& Objects.equals(queryText, that.queryText)
378394
&& Objects.equals(rowsProduced, that.rowsProduced)
395+
&& Objects.equals(sessionId, that.sessionId)
379396
&& Objects.equals(sparkUiUrl, that.sparkUiUrl)
380397
&& Objects.equals(statementType, that.statementType)
381398
&& Objects.equals(status, that.status)
@@ -406,6 +423,7 @@ public int hashCode() {
406423
queryStartTimeMs,
407424
queryText,
408425
rowsProduced,
426+
sessionId,
409427
sparkUiUrl,
410428
statementType,
411429
status,
@@ -436,6 +454,7 @@ public String toString() {
436454
.add("queryStartTimeMs", queryStartTimeMs)
437455
.add("queryText", queryText)
438456
.add("rowsProduced", rowsProduced)
457+
.add("sessionId", sessionId)
439458
.add("sparkUiUrl", sparkUiUrl)
440459
.add("statementType", statementType)
441460
.add("status", status)

0 commit comments

Comments
 (0)