File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -339,13 +339,15 @@ def bytes_processed_sum(self):
339
339
@property
340
340
def slot_millis_sum (self ):
341
341
"""The sum of all slot time used by bigquery jobs in this session."""
342
- msg = bfe .format_message (
343
- "Queries executed with `allow_large_results=False` within the session will not "
344
- "have their slot milliseconds counted in this sum. If you need precise slot "
345
- "milliseconds information, query the `INFORMATION_SCHEMA` tables "
346
- "to get relevant metrics." ,
347
- )
348
- warnings .warn (msg , UserWarning )
342
+ if not bigframes .options ._allow_large_results :
343
+ msg = bfe .format_message (
344
+ "Queries executed with `allow_large_results=False` within the session will not "
345
+ "have their slot milliseconds counted in this sum. If you need precise slot "
346
+ "milliseconds information, query the `INFORMATION_SCHEMA` tables "
347
+ "to get relevant metrics." ,
348
+ )
349
+ warnings .warn (msg , UserWarning )
350
+
349
351
return self ._metrics .slot_millis
350
352
351
353
@property
You can’t perform that action at this time.
0 commit comments