@@ -233,6 +233,7 @@ class PipelineCommand(google.protobuf.message.Message):
233
233
PARTITION_COLS_FIELD_NUMBER : builtins .int
234
234
SCHEMA_FIELD_NUMBER : builtins .int
235
235
FORMAT_FIELD_NUMBER : builtins .int
236
+ SOURCE_CODE_LOCATION_FIELD_NUMBER : builtins .int
236
237
dataflow_graph_id : builtins .str
237
238
"""The graph to attach this dataset to."""
238
239
dataset_name : builtins .str
@@ -260,6 +261,9 @@ class PipelineCommand(google.protobuf.message.Message):
260
261
"""The output table format of the dataset. Only applies to dataset_type == TABLE and
261
262
dataset_type == MATERIALIZED_VIEW.
262
263
"""
264
+ @property
265
+ def source_code_location (self ) -> global___SourceCodeLocation :
266
+ """The location in source code that this dataset was defined."""
263
267
def __init__ (
264
268
self ,
265
269
* ,
@@ -271,6 +275,7 @@ class PipelineCommand(google.protobuf.message.Message):
271
275
partition_cols : collections .abc .Iterable [builtins .str ] | None = ...,
272
276
schema : pyspark .sql .connect .proto .types_pb2 .DataType | None = ...,
273
277
format : builtins .str | None = ...,
278
+ source_code_location : global___SourceCodeLocation | None = ...,
274
279
) -> None : ...
275
280
def HasField (
276
281
self ,
@@ -287,6 +292,8 @@ class PipelineCommand(google.protobuf.message.Message):
287
292
b"_format" ,
288
293
"_schema" ,
289
294
b"_schema" ,
295
+ "_source_code_location" ,
296
+ b"_source_code_location" ,
290
297
"comment" ,
291
298
b"comment" ,
292
299
"dataflow_graph_id" ,
@@ -299,6 +306,8 @@ class PipelineCommand(google.protobuf.message.Message):
299
306
b"format" ,
300
307
"schema" ,
301
308
b"schema" ,
309
+ "source_code_location" ,
310
+ b"source_code_location" ,
302
311
],
303
312
) -> builtins .bool : ...
304
313
def ClearField (
@@ -316,6 +325,8 @@ class PipelineCommand(google.protobuf.message.Message):
316
325
b"_format" ,
317
326
"_schema" ,
318
327
b"_schema" ,
328
+ "_source_code_location" ,
329
+ b"_source_code_location" ,
319
330
"comment" ,
320
331
b"comment" ,
321
332
"dataflow_graph_id" ,
@@ -330,6 +341,8 @@ class PipelineCommand(google.protobuf.message.Message):
330
341
b"partition_cols" ,
331
342
"schema" ,
332
343
b"schema" ,
344
+ "source_code_location" ,
345
+ b"source_code_location" ,
333
346
"table_properties" ,
334
347
b"table_properties" ,
335
348
],
@@ -359,6 +372,13 @@ class PipelineCommand(google.protobuf.message.Message):
359
372
def WhichOneof (
360
373
self , oneof_group : typing_extensions .Literal ["_schema" , b"_schema" ]
361
374
) -> typing_extensions .Literal ["schema" ] | None : ...
375
+ @typing .overload
376
+ def WhichOneof (
377
+ self ,
378
+ oneof_group : typing_extensions .Literal [
379
+ "_source_code_location" , b"_source_code_location"
380
+ ],
381
+ ) -> typing_extensions .Literal ["source_code_location" ] | None : ...
362
382
363
383
class DefineFlow (google .protobuf .message .Message ):
364
384
"""Request to define a flow targeting a dataset."""
@@ -415,6 +435,7 @@ class PipelineCommand(google.protobuf.message.Message):
415
435
RELATION_FIELD_NUMBER : builtins .int
416
436
SQL_CONF_FIELD_NUMBER : builtins .int
417
437
CLIENT_ID_FIELD_NUMBER : builtins .int
438
+ SOURCE_CODE_LOCATION_FIELD_NUMBER : builtins .int
418
439
dataflow_graph_id : builtins .str
419
440
"""The graph to attach this flow to."""
420
441
flow_name : builtins .str
@@ -435,6 +456,9 @@ class PipelineCommand(google.protobuf.message.Message):
435
456
"""Identifier for the client making the request. The server uses this to determine what flow
436
457
evaluation request stream to dispatch evaluation requests to for this flow.
437
458
"""
459
+ @property
460
+ def source_code_location (self ) -> global___SourceCodeLocation :
461
+ """The location in source code that this flow was defined."""
438
462
def __init__ (
439
463
self ,
440
464
* ,
@@ -444,6 +468,7 @@ class PipelineCommand(google.protobuf.message.Message):
444
468
relation : pyspark .sql .connect .proto .relations_pb2 .Relation | None = ...,
445
469
sql_conf : collections .abc .Mapping [builtins .str , builtins .str ] | None = ...,
446
470
client_id : builtins .str | None = ...,
471
+ source_code_location : global___SourceCodeLocation | None = ...,
447
472
) -> None : ...
448
473
def HasField (
449
474
self ,
@@ -456,6 +481,8 @@ class PipelineCommand(google.protobuf.message.Message):
456
481
b"_flow_name" ,
457
482
"_relation" ,
458
483
b"_relation" ,
484
+ "_source_code_location" ,
485
+ b"_source_code_location" ,
459
486
"_target_dataset_name" ,
460
487
b"_target_dataset_name" ,
461
488
"client_id" ,
@@ -466,6 +493,8 @@ class PipelineCommand(google.protobuf.message.Message):
466
493
b"flow_name" ,
467
494
"relation" ,
468
495
b"relation" ,
496
+ "source_code_location" ,
497
+ b"source_code_location" ,
469
498
"target_dataset_name" ,
470
499
b"target_dataset_name" ,
471
500
],
@@ -481,6 +510,8 @@ class PipelineCommand(google.protobuf.message.Message):
481
510
b"_flow_name" ,
482
511
"_relation" ,
483
512
b"_relation" ,
513
+ "_source_code_location" ,
514
+ b"_source_code_location" ,
484
515
"_target_dataset_name" ,
485
516
b"_target_dataset_name" ,
486
517
"client_id" ,
@@ -491,6 +522,8 @@ class PipelineCommand(google.protobuf.message.Message):
491
522
b"flow_name" ,
492
523
"relation" ,
493
524
b"relation" ,
525
+ "source_code_location" ,
526
+ b"source_code_location" ,
494
527
"sql_conf" ,
495
528
b"sql_conf" ,
496
529
"target_dataset_name" ,
@@ -515,6 +548,13 @@ class PipelineCommand(google.protobuf.message.Message):
515
548
self , oneof_group : typing_extensions .Literal ["_relation" , b"_relation" ]
516
549
) -> typing_extensions .Literal ["relation" ] | None : ...
517
550
@typing .overload
551
+ def WhichOneof (
552
+ self ,
553
+ oneof_group : typing_extensions .Literal [
554
+ "_source_code_location" , b"_source_code_location"
555
+ ],
556
+ ) -> typing_extensions .Literal ["source_code_location" ] | None : ...
557
+ @typing .overload
518
558
def WhichOneof (
519
559
self ,
520
560
oneof_group : typing_extensions .Literal ["_target_dataset_name" , b"_target_dataset_name" ],
@@ -1134,6 +1174,60 @@ class PipelineEvent(google.protobuf.message.Message):
1134
1174
1135
1175
global___PipelineEvent = PipelineEvent
1136
1176
1177
+ class SourceCodeLocation (google .protobuf .message .Message ):
1178
+ """Source code location information associated with a particular dataset or flow."""
1179
+
1180
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
1181
+
1182
+ FILE_NAME_FIELD_NUMBER : builtins .int
1183
+ LINE_NUMBER_FIELD_NUMBER : builtins .int
1184
+ file_name : builtins .str
1185
+ """The file that this pipeline source code was defined in."""
1186
+ line_number : builtins .int
1187
+ """The specific line number that this pipeline source code is located at, if applicable."""
1188
+ def __init__ (
1189
+ self ,
1190
+ * ,
1191
+ file_name : builtins .str | None = ...,
1192
+ line_number : builtins .int | None = ...,
1193
+ ) -> None : ...
1194
+ def HasField (
1195
+ self ,
1196
+ field_name : typing_extensions .Literal [
1197
+ "_file_name" ,
1198
+ b"_file_name" ,
1199
+ "_line_number" ,
1200
+ b"_line_number" ,
1201
+ "file_name" ,
1202
+ b"file_name" ,
1203
+ "line_number" ,
1204
+ b"line_number" ,
1205
+ ],
1206
+ ) -> builtins .bool : ...
1207
+ def ClearField (
1208
+ self ,
1209
+ field_name : typing_extensions .Literal [
1210
+ "_file_name" ,
1211
+ b"_file_name" ,
1212
+ "_line_number" ,
1213
+ b"_line_number" ,
1214
+ "file_name" ,
1215
+ b"file_name" ,
1216
+ "line_number" ,
1217
+ b"line_number" ,
1218
+ ],
1219
+ ) -> None : ...
1220
+ @typing .overload
1221
+ def WhichOneof (
1222
+ self , oneof_group : typing_extensions .Literal ["_file_name" , b"_file_name" ]
1223
+ ) -> typing_extensions .Literal ["file_name" ] | None : ...
1224
+ @typing .overload
1225
+ def WhichOneof (
1226
+ self , oneof_group : typing_extensions .Literal ["_line_number" , b"_line_number" ]
1227
+ ) -> typing_extensions .Literal ["line_number" ] | None : ...
1228
+
1229
+ global___SourceCodeLocation = SourceCodeLocation
1230
+
1137
1231
class PipelineQueryFunctionExecutionSignal (google .protobuf .message .Message ):
1138
1232
"""A signal from the server to the client to execute the query function for one or more flows, and
1139
1233
to register their results with the server.
0 commit comments