Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions bigframes/session/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,15 @@ def bytes_processed_sum(self):
@property
def slot_millis_sum(self):
"""The sum of all slot time used by bigquery jobs in this session."""
msg = bfe.format_message(
"Queries executed with `allow_large_results=False` within the session will not "
"have their slot milliseconds counted in this sum. If you need precise slot "
"milliseconds information, query the `INFORMATION_SCHEMA` tables "
"to get relevant metrics.",
)
warnings.warn(msg, UserWarning)
if not bigframes.options._allow_large_results:
msg = bfe.format_message(
"Queries executed with `allow_large_results=False` within the session will not "
"have their slot milliseconds counted in this sum. If you need precise slot "
"milliseconds information, query the `INFORMATION_SCHEMA` tables "
"to get relevant metrics.",
)
warnings.warn(msg, UserWarning)

return self._metrics.slot_millis

@property
Expand Down