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

Commit baa5981

Browse files
authored
Merge branch 'main' into feat-geodataframe-dtypes
2 parents e49e808 + 0217637 commit baa5981

17 files changed

Lines changed: 160 additions & 42 deletions

File tree

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:a7aef70df5f13313ddc027409fc8f3151422ec2a57ac8730fce8fa75c060d5bb
17-
# created: 2025-04-10T17:00:10.042601326Z
16+
digest: sha256:3b3a31be60853477bc39ed8d9bac162cac3ba083724cecaad54eb81d4e4dae9c
17+
# created: 2025-04-16T22:40:03.123475241Z

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/client.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,7 @@ def update_table(
13891389
self,
13901390
table: Table,
13911391
fields: Sequence[str],
1392+
autodetect_schema: bool = False,
13921393
retry: retries.Retry = DEFAULT_RETRY,
13931394
timeout: TimeoutType = DEFAULT_TIMEOUT,
13941395
) -> Table:
@@ -1419,6 +1420,10 @@ def update_table(
14191420
fields (Sequence[str]):
14201421
The fields of ``table`` to change, spelled as the
14211422
:class:`~google.cloud.bigquery.table.Table` properties.
1423+
autodetect_schema (bool):
1424+
Specifies if the schema of the table should be autodetected when
1425+
updating the table from the underlying source. Only applicable
1426+
for external tables.
14221427
retry (Optional[google.api_core.retry.Retry]):
14231428
A description of how to retry the API call.
14241429
timeout (Optional[float]):
@@ -1438,12 +1443,18 @@ def update_table(
14381443
path = table.path
14391444
span_attributes = {"path": path, "fields": fields}
14401445

1446+
if autodetect_schema:
1447+
query_params = {"autodetect_schema": True}
1448+
else:
1449+
query_params = {}
1450+
14411451
api_response = self._call_api(
14421452
retry,
14431453
span_name="BigQuery.updateTable",
14441454
span_attributes=span_attributes,
14451455
method="PATCH",
14461456
path=path,
1457+
query_params=query_params,
14471458
data=partial,
14481459
headers=headers,
14491460
timeout=timeout,

google/cloud/bigquery/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def __ne__(self, other):
512512
return not self == other
513513

514514
def __repr__(self):
515-
return f"<AccessEntry: role={self.role}, {self._entity_type}={self.entity_id}>"
515+
return f"<AccessEntry: role={self.role}, {self.entity_type}={self.entity_id}>"
516516

517517
def _key(self):
518518
"""A tuple key that uniquely describes this field.
@@ -531,7 +531,7 @@ def _key(self):
531531
properties["condition"] = condition_key
532532

533533
prop_tup = tuple(sorted(properties.items()))
534-
return (self.role, self._entity_type, self.entity_id, prop_tup)
534+
return (self.role, self.entity_type, self.entity_id, prop_tup)
535535

536536
def __hash__(self):
537537
return hash(self._key())

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"

owlbot.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,6 @@
109109

110110
python.py_samples()
111111

112-
s.replace(
113-
"docs/conf.py",
114-
r'\{"members": True\}',
115-
'{"members": True, "inherited-members": True}',
116-
)
117-
s.replace(
118-
"docs/conf.py",
119-
r"exclude_patterns = \[",
120-
'\\g<0>\n "google/cloud/bigquery_v2/**", # Legacy proto-based types.',
121-
)
122112
s.replace(
123113
"samples/**/noxfile.py",
124114
'BLACK_VERSION = "black==22.3.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

0 commit comments

Comments
 (0)