You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
feat: add bigframes.options.compute.maximum_bytes_billed option that sets maximum bytes billed on query jobs (#133)
-implement context manager for global options
-maximum_bytes_billed only applies to query jobs. This limitation will be set per query. Operations that trigger multiple jobs may result in total usage beyond this setting
# Licensed under the Apache License, Version 2.0 (the "License");
4
+
# you may not use this file except in compliance with the License.
5
+
# You may obtain a copy of the License at
6
+
#
7
+
# http://www.apache.org/licenses/LICENSE-2.0
8
+
#
9
+
# Unless required by applicable law or agreed to in writing, software
10
+
# distributed under the License is distributed on an "AS IS" BASIS,
11
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+
# See the License for the specific language governing permissions and
13
+
# limitations under the License.
14
+
15
+
"""Options for displaying objects."""
16
+
17
+
importdataclasses
18
+
fromtypingimportOptional
19
+
20
+
21
+
@dataclasses.dataclass
22
+
classComputeOptions:
23
+
"""
24
+
Encapsulates configuration for compute options.
25
+
26
+
Attributes:
27
+
maximum_bytes_billed (int, Options):
28
+
Limits the bytes billed for query jobs. Queries that will have
29
+
bytes billed beyond this limit will fail (without incurring a
30
+
charge). If unspecified, this will be set to your project default.
31
+
See `maximum_bytes_billed <https://cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.job.QueryJobConfig#google_cloud_bigquery_job_QueryJobConfig_maximum_bytes_billed>`_.
0 commit comments