Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 08923ac

Browse files
authored
Merge branch 'main' into owl-bot-update-lock-3b3a31be60853477bc39ed8d9bac162cac3ba083724cecaad54eb81d4e4dae9c
2 parents bab32d9 + 156e518 commit 08923ac

13 files changed

Lines changed: 92 additions & 27 deletions

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
[1]: https://pypi.org/project/google-cloud-bigquery/#history
66

77

8+
## [3.32.0](https://github.com/googleapis/python-bigquery/compare/v3.31.0...v3.32.0) (2025-05-12)
9+
10+
11+
### Features
12+
13+
* Add dataset access policy version attribute ([#2169](https://github.com/googleapis/python-bigquery/issues/2169)) ([b7656b9](https://github.com/googleapis/python-bigquery/commit/b7656b97c1bd6c204d0508b1851d114719686655))
14+
* Add preview support for incremental results ([#2145](https://github.com/googleapis/python-bigquery/issues/2145)) ([22b80bb](https://github.com/googleapis/python-bigquery/commit/22b80bba9d0bed319fd3102e567906c9b458dd02))
15+
* Add WRITE_TRUNCATE_DATA enum ([#2166](https://github.com/googleapis/python-bigquery/issues/2166)) ([4692747](https://github.com/googleapis/python-bigquery/commit/46927479085f13fd326e3f2388f60dfdd37f7f69))
16+
* Adds condition class and assoc. unit tests ([#2159](https://github.com/googleapis/python-bigquery/issues/2159)) ([a69d6b7](https://github.com/googleapis/python-bigquery/commit/a69d6b796d2edb6ba453980c9553bc9b206c5a6e))
17+
* Support BigLakeConfiguration (managed Iceberg tables) ([#2162](https://github.com/googleapis/python-bigquery/issues/2162)) ([a1c8e9a](https://github.com/googleapis/python-bigquery/commit/a1c8e9aaf60986924868d54a0ab0334e77002a39))
18+
* Update the AccessEntry class with a new condition attribute and unit tests ([#2163](https://github.com/googleapis/python-bigquery/issues/2163)) ([7301667](https://github.com/googleapis/python-bigquery/commit/7301667272dfbdd04b1a831418a9ad2d037171fb))
19+
20+
21+
### Bug Fixes
22+
23+
* `query()` now warns when `job_id` is set and the default `job_retry` is ignored ([#2167](https://github.com/googleapis/python-bigquery/issues/2167)) ([ca1798a](https://github.com/googleapis/python-bigquery/commit/ca1798aaee2d5905fe688d3097f8ee5c989da333))
24+
* Empty record dtypes ([#2147](https://github.com/googleapis/python-bigquery/issues/2147)) ([77d7173](https://github.com/googleapis/python-bigquery/commit/77d71736fcc006d3ab8f8ba17955ad5f06e21876))
25+
* Table iterator should not use bqstorage when page_size is not None ([#2154](https://github.com/googleapis/python-bigquery/issues/2154)) ([e89a707](https://github.com/googleapis/python-bigquery/commit/e89a707b162182ededbf94cc9a0f7594bc2be475))
26+
827
## [3.31.0](https://github.com/googleapis/python-bigquery/compare/v3.30.0...v3.31.0) (2025-03-20)
928

1029

google/cloud/bigquery/dataset.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ class Dataset(object):
589589
"default_rounding_mode": "defaultRoundingMode",
590590
"resource_tags": "resourceTags",
591591
"external_catalog_dataset_options": "externalCatalogDatasetOptions",
592+
"access_policy_version": "accessPolicyVersion",
592593
}
593594

594595
def __init__(self, dataset_ref) -> None:
@@ -979,6 +980,16 @@ def external_catalog_dataset_options(self, value):
979980
self._PROPERTY_TO_API_FIELD["external_catalog_dataset_options"]
980981
] = (value.to_api_repr() if value is not None else None)
981982

983+
@property
984+
def access_policy_version(self):
985+
return self._properties.get("accessPolicyVersion")
986+
987+
@access_policy_version.setter
988+
def access_policy_version(self, value):
989+
if not isinstance(value, int) and value is not None:
990+
raise ValueError("Pass an integer, or None")
991+
self._properties["accessPolicyVersion"] = value
992+
982993
@classmethod
983994
def from_string(cls, full_dataset_id: str) -> "Dataset":
984995
"""Construct a dataset from fully-qualified dataset ID.
@@ -1217,8 +1228,8 @@ def from_api_repr(cls, resource: Dict[str, Any]) -> "Condition":
12171228

12181229
return cls(
12191230
expression=resource["expression"],
1220-
title=resource.get("title", None),
1221-
description=resource.get("description", None),
1231+
title=resource.get("title"),
1232+
description=resource.get("description"),
12221233
)
12231234

12241235
def __eq__(self, other: object) -> bool:

google/cloud/bigquery/enums.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ class WriteDisposition(object):
338338
WRITE_TRUNCATE = "WRITE_TRUNCATE"
339339
"""If the table already exists, BigQuery overwrites the table data."""
340340

341+
WRITE_TRUNCATE_DATA = "WRITE_TRUNCATE_DATA"
342+
"""For existing tables, truncate data but preserve existing schema
343+
and constraints."""
344+
341345
WRITE_EMPTY = "WRITE_EMPTY"
342346
"""If the table already exists and contains data, a 'duplicate' error is
343347
returned in the job result."""

google/cloud/bigquery/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "3.31.0"
15+
__version__ = "3.32.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-testutils==1.6.0
1+
google-cloud-testutils==1.6.2
22
pytest==8.3.5
33
mock==5.2.0
44
pytest-xdist==3.6.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
google-cloud-bigquery==3.31.0
2-
google-auth-oauthlib==1.2.1
2+
google-auth-oauthlib==1.2.2

samples/geography/requirements.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
attrs==25.3.0
2-
certifi==2025.1.31
2+
certifi==2025.4.26
33
cffi==1.17.1
4-
charset-normalizer==3.4.1
5-
click==8.1.8
4+
charset-normalizer==3.4.2
5+
click===8.1.8; python_version == '3.9'
6+
click==8.2.0; python_version >= '3.10'
67
click-plugins==1.1.1
78
cligj==0.7.2
8-
db-dtypes==1.4.2
9+
db-dtypes==1.4.3
910
Fiona==1.10.1
1011
geojson==3.2.0
1112
geopandas==1.0.1
1213
google-api-core==2.24.2
13-
google-auth==2.38.0
14+
google-auth==2.40.1
1415
google-cloud-bigquery==3.31.0
15-
google-cloud-bigquery-storage==2.30.0
16+
google-cloud-bigquery-storage==2.31.0
1617
google-cloud-core==2.4.3
1718
google-crc32c==1.7.1
1819
google-resumable-media==2.7.2
19-
googleapis-common-protos==1.69.2
20+
googleapis-common-protos==1.70.0
2021
grpcio==1.71.0
2122
idna==3.10
2223
munch==4.0.0
23-
mypy-extensions==1.0.0
24-
packaging==24.2
24+
mypy-extensions==1.1.0
25+
packaging==25.0
2526
pandas==2.2.3
2627
proto-plus==1.26.1
27-
pyarrow==19.0.1
28+
pyarrow==20.0.0
2829
pyasn1==0.6.1
2930
pyasn1-modules==0.4.2
3031
pycparser==2.22
@@ -33,10 +34,10 @@ python-dateutil==2.9.0.post0
3334
pytz==2025.2
3435
PyYAML==6.0.2
3536
requests==2.32.3
36-
rsa==4.9
37+
rsa==4.9.1
3738
Shapely===2.0.7; python_version == '3.9'
3839
Shapely==2.1.0; python_version >= '3.10'
3940
six==1.17.0
40-
typing-extensions==4.13.1
41+
typing-extensions==4.13.2
4142
typing-inspect==0.9.0
42-
urllib3==2.3.0
43+
urllib3==2.4.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-testutils==1.6.0
1+
google-cloud-testutils==1.6.2
22
pytest==8.3.5
33
mock==5.2.0
44
pytest-xdist==3.6.1

samples/magics/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
bigquery_magics==0.9.0
2-
db-dtypes==1.4.2
2+
db-dtypes==1.4.3
33
google.cloud.bigquery==3.31.0
4-
google-cloud-bigquery-storage==2.30.0
4+
google-cloud-bigquery-storage==2.31.0
55
ipython===8.18.1
66
pandas==2.2.3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-testutils==1.6.0
1+
google-cloud-testutils==1.6.2
22
pytest==8.3.5
33
mock==5.2.0
44
pytest-xdist==3.6.1

0 commit comments

Comments
 (0)