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
>>> del bpd.options.compute.extra_query_labels["test1"]
54
54
>>> bpd.options.compute.extra_query_labels
55
55
{'test2': 'abc', 'test3': False}
56
-
57
-
Attributes:
58
-
ai_ops_confirmation_threshold (int | None):
59
-
Guards against unexpected processing of large amount of rows by semantic operators.
60
-
If the number of rows exceeds the threshold, the user will be asked to confirm
61
-
their operations to resume. The default value is 0. Set the value to None
62
-
to turn off the guard.
63
-
64
-
ai_ops_threshold_autofail (bool):
65
-
Guards against unexpected processing of large amount of rows by semantic operators.
66
-
When set to True, the operation automatically fails without asking for user inputs.
67
-
68
-
allow_large_results (bool | None):
69
-
Specifies whether query results can exceed 10 GB. Defaults to False. Setting this
70
-
to False (the default) restricts results to 10 GB for potentially faster execution;
71
-
BigQuery will raise an error if this limit is exceeded. Setting to True removes
72
-
this result size limit.
73
-
74
-
enable_multi_query_execution (bool | None):
75
-
If enabled, large queries may be factored into multiple smaller queries
76
-
in order to avoid generating queries that are too complex for the query
77
-
engine to handle. However this comes at the cost of increase cost and latency.
78
-
79
-
extra_query_labels (Dict[str, Any] | None):
80
-
Stores additional custom labels for query configuration.
81
-
82
-
maximum_bytes_billed (int | None):
83
-
Limits the bytes billed for query jobs. Queries that will have
84
-
bytes billed beyond this limit will fail (without incurring a
85
-
charge). If unspecified, this will be set to your project default.
86
-
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.
87
-
88
-
maximum_result_rows (int | None):
89
-
Limits the number of rows in an execution result. When converting
90
-
a BigQuery DataFrames object to a pandas DataFrame or Series (e.g.,
91
-
using ``.to_pandas()``, ``.peek()``, ``.__repr__()``, direct
92
-
iteration), the data is downloaded from BigQuery to the client
93
-
machine. This option restricts the number of rows that can be
94
-
downloaded. If the number of rows to be downloaded exceeds this
95
-
limit, a ``bigframes.exceptions.MaximumResultRowsExceeded``
96
-
exception is raised.
97
-
98
-
semantic_ops_confirmation_threshold (int | None):
99
-
.. deprecated:: 1.42.0
100
-
Semantic operators are deprecated. Please use AI operators instead
101
-
102
-
semantic_ops_threshold_autofail (bool):
103
-
.. deprecated:: 1.42.0
104
-
Semantic operators are deprecated. Please use AI operators instead
105
56
"""
106
57
107
58
ai_ops_confirmation_threshold: Optional[int] =0
59
+
"""
60
+
Guards against unexpected processing of large amount of rows by semantic operators.
61
+
62
+
If the number of rows exceeds the threshold, the user will be asked to confirm
63
+
their operations to resume. The default value is 0. Set the value to None
64
+
to turn off the guard.
65
+
66
+
Returns:
67
+
Optional[int]: Number of rows.
68
+
"""
69
+
108
70
ai_ops_threshold_autofail: bool=False
71
+
"""
72
+
Guards against unexpected processing of large amount of rows by semantic operators.
73
+
74
+
When set to True, the operation automatically fails without asking for user inputs.
75
+
76
+
Returns:
77
+
bool: True if the guard is enabled.
78
+
"""
79
+
109
80
allow_large_results: Optional[bool] =None
81
+
"""
82
+
Specifies whether query results can exceed 10 GB.
83
+
84
+
Defaults to False. Setting this to False (the default) restricts results to
85
+
10 GB for potentially faster execution; BigQuery will raise an error if this
86
+
limit is exceeded. Setting to True removes this result size limit.
87
+
88
+
89
+
Returns:
90
+
bool | None: True if results > 10 GB are enabled.
91
+
"""
110
92
enable_multi_query_execution: bool=False
93
+
"""
94
+
If enabled, large queries may be factored into multiple smaller queries.
95
+
96
+
This is in order to avoid generating queries that are too complex for the
97
+
query engine to handle. However this comes at the cost of increase cost and
0 commit comments