@@ -261,6 +261,7 @@ class TestQueryPlanEntry(_Base):
261
261
STATUS = "STATUS"
262
262
SHUFFLE_OUTPUT_BYTES = 1024
263
263
SHUFFLE_OUTPUT_BYTES_SPILLED = 1
264
+ SLOT_MS = 25
264
265
265
266
START_RFC3339_MICROS = "2018-04-01T00:00:00.000000Z"
266
267
END_RFC3339_MICROS = "2018-04-01T00:00:04.000000Z"
@@ -305,6 +306,7 @@ def test_from_api_repr_empty(self):
305
306
self .assertIsNone (entry .shuffle_output_bytes )
306
307
self .assertIsNone (entry .shuffle_output_bytes_spilled )
307
308
self .assertEqual (entry .steps , [])
309
+ self .assertIsNone (entry .slot_ms )
308
310
309
311
def test_from_api_repr_normal (self ):
310
312
from google .cloud .bigquery .job import QueryPlanEntryStep
@@ -348,6 +350,7 @@ def test_from_api_repr_normal(self):
348
350
"substeps" : TestQueryPlanEntryStep .SUBSTEPS ,
349
351
}
350
352
],
353
+ "slotMs" : self .SLOT_MS ,
351
354
}
352
355
klass = self ._get_target_class ()
353
356
@@ -366,6 +369,7 @@ def test_from_api_repr_normal(self):
366
369
self .assertEqual (entry .records_written , self .RECORDS_WRITTEN )
367
370
self .assertEqual (entry .status , self .STATUS )
368
371
self .assertEqual (entry .steps , steps )
372
+ self .assertEqual (entry .slot_ms , self .SLOT_MS )
369
373
370
374
def test_start (self ):
371
375
from google .cloud ._helpers import _RFC3339_MICROS
0 commit comments