Skip to content

Commit 5c181aa

Browse files
Google APIscopybara-github
authored andcommitted
feat: add support for Spark Connect sessions in Dataproc Serverless for Spark
docs: update docs for `filter` field in `ListSessionsRequest` PiperOrigin-RevId: 678438691
1 parent 30bce2d commit 5c181aa

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

google/cloud/dataproc/v1/session_templates.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ message SessionTemplate {
182182
oneof session_config {
183183
// Optional. Jupyter session config.
184184
JupyterConfig jupyter_session = 3 [(google.api.field_behavior) = OPTIONAL];
185+
186+
// Optional. Spark Connect session config.
187+
SparkConnectConfig spark_connect_session = 11
188+
[(google.api.field_behavior) = OPTIONAL];
185189
}
186190

187191
// Output only. The email address of the user who created the template.

google/cloud/dataproc/v1/sessions.proto

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,13 @@ message ListSessionsRequest {
163163
// A filter is a logical expression constraining the values of various fields
164164
// in each session resource. Filters are case sensitive, and may contain
165165
// multiple clauses combined with logical operators (AND, OR).
166-
// Supported fields are `session_id`, `session_uuid`, `state`, and
167-
// `create_time`.
166+
// Supported fields are `session_id`, `session_uuid`, `state`, `create_time`,
167+
// and `labels`.
168168
//
169169
// Example: `state = ACTIVE and create_time < "2023-01-01T00:00:00Z"`
170170
// is a filter for sessions in an ACTIVE state that were created before
171-
// 2023-01-01.
171+
// 2023-01-01. `state = ACTIVE and labels.environment=production` is a filter
172+
// for sessions in an ACTIVE state that have a production environment label.
172173
//
173174
// See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed
174175
// description of the filter syntax and a list of supported comparators.
@@ -289,6 +290,10 @@ message Session {
289290
oneof session_config {
290291
// Optional. Jupyter session config.
291292
JupyterConfig jupyter_session = 4 [(google.api.field_behavior) = OPTIONAL];
293+
294+
// Optional. Spark Connect session config.
295+
SparkConnectConfig spark_connect_session = 17
296+
[(google.api.field_behavior) = OPTIONAL];
292297
}
293298

294299
// Output only. Runtime information about session execution.
@@ -369,3 +374,6 @@ message JupyterConfig {
369374
// Optional. Display name, shown in the Jupyter kernelspec card.
370375
string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
371376
}
377+
378+
// Spark Connect configuration for an interactive session.
379+
message SparkConnectConfig {}

0 commit comments

Comments
 (0)