Skip to content

Commit

Permalink
chore(deps): update dependency google-cloud-bigquery to v2.14.0 (#627)
Browse files Browse the repository at this point in the history
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-bigquery](https://togithub.com/googleapis/python-bigquery) | `==2.13.1` -> `==2.14.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.14.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.14.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.14.0/compatibility-slim/2.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-bigquery/2.14.0/confidence-slim/2.13.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-bigquery</summary>

### [`v2.14.0`](https://togithub.com/googleapis/python-bigquery/blob/master/CHANGELOG.md#&#8203;2140-httpswwwgithubcomgoogleapispython-bigquerycomparev2131v2140-2021-04-26)

[Compare Source](https://togithub.com/googleapis/python-bigquery/compare/v2.13.1...v2.14.0)

##### Features

-   accept DatasetListItem where DatasetReference is accepted ([#&#8203;597](https://www.github.com/googleapis/python-bigquery/issues/597)) ([c8b5581](https://www.github.com/googleapis/python-bigquery/commit/c8b5581ea3c94005d69755c4a3b5a0d8900f3fe2))
-   accept job object as argument to `get_job` and `cancel_job` ([#&#8203;617](https://www.github.com/googleapis/python-bigquery/issues/617)) ([f75dcdf](https://www.github.com/googleapis/python-bigquery/commit/f75dcdf3943b87daba60011c9a3b42e34ff81910))
-   add `Client.delete_job_metadata` method to remove job metadata ([#&#8203;610](https://www.github.com/googleapis/python-bigquery/issues/610)) ([0abb566](https://www.github.com/googleapis/python-bigquery/commit/0abb56669c097c59fbffce007c702e7a55f2d9c1))
-   add `max_queue_size` argument to `RowIterator.to_dataframe_iterable` ([#&#8203;575](https://www.github.com/googleapis/python-bigquery/issues/575)) ([f95f415](https://www.github.com/googleapis/python-bigquery/commit/f95f415d3441b3928f6cc705cb8a75603d790fd6))
-   add type hints for public methods ([#&#8203;613](https://www.github.com/googleapis/python-bigquery/issues/613)) ([f8d4aaa](https://www.github.com/googleapis/python-bigquery/commit/f8d4aaa335a0eef915e73596fc9b43b11d11be9f))
-   DB API cursors are now iterable ([#&#8203;618](https://www.github.com/googleapis/python-bigquery/issues/618)) ([e0b373d](https://www.github.com/googleapis/python-bigquery/commit/e0b373d0e721a70656ed8faceb7f5c70f642d144))
-   retry google.auth TransportError by default ([#&#8203;624](https://www.github.com/googleapis/python-bigquery/issues/624)) ([34ecc3f](https://www.github.com/googleapis/python-bigquery/commit/34ecc3f1ca0ff073330c0c605673d89b43af7ed9))
-   use pyarrow stream compression, if available ([#&#8203;593](https://www.github.com/googleapis/python-bigquery/issues/593)) ([dde9dc5](https://www.github.com/googleapis/python-bigquery/commit/dde9dc5114c2311fb76fafc5b222fff561e8abf1))

##### Bug Fixes

-   consistent percents handling in DB API query ([#&#8203;619](https://www.github.com/googleapis/python-bigquery/issues/619)) ([6502a60](https://www.github.com/googleapis/python-bigquery/commit/6502a602337ae562652a20b20270949f2c9d5073))
-   missing license headers in new test files ([#&#8203;604](https://www.github.com/googleapis/python-bigquery/issues/604)) ([df48cc5](https://www.github.com/googleapis/python-bigquery/commit/df48cc5a0be99ad39d5835652d1b7422209afc5d))
-   unsetting clustering fields on Table is now possible ([#&#8203;622](https://www.github.com/googleapis/python-bigquery/issues/622)) ([33a871f](https://www.github.com/googleapis/python-bigquery/commit/33a871f06329f9bf5a6a92fab9ead65bf2bee75d))

##### Documentation

-   add sample to run DML query ([#&#8203;591](https://www.github.com/googleapis/python-bigquery/issues/591)) ([ff2ec3a](https://www.github.com/googleapis/python-bigquery/commit/ff2ec3abe418a443cd07751c08e654f94e8b3155))
-   update the description of the return value of `_QueryResults.rows()` ([#&#8203;594](https://www.github.com/googleapis/python-bigquery/issues/594)) ([8f4c0b8](https://www.github.com/googleapis/python-bigquery/commit/8f4c0b84dac3840532d7865247b8ad94b625b897))

##### [2.13.1](https://www.github.com/googleapis/python-bigquery/compare/v2.13.0...v2.13.1) (2021-03-23)

##### Bug Fixes

-   add ConnectionError to default retry ([#&#8203;571](https://www.github.com/googleapis/python-bigquery/issues/571)) ([a3edb8b](https://www.github.com/googleapis/python-bigquery/commit/a3edb8b921e029e2c03d33302d408ad5d4e9d4ad))

</details>

---

### Configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-bigquery).
  • Loading branch information
renovate-bot committed Apr 27, 2021
1 parent a322433 commit f4e34c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/geography/requirements.txt
@@ -1,4 +1,4 @@
geojson==2.5.0
google-cloud-bigquery==2.13.1
google-cloud-bigquery==2.14.0
google-cloud-bigquery-storage==2.1.0
Shapely==1.7.1
12 changes: 10 additions & 2 deletions samples/snippets/conftest.py
Expand Up @@ -20,21 +20,29 @@


RESOURCE_PREFIX = "python_bigquery_samples_snippets"
RESOURCE_DATE_FORMAT = "%Y%m%d_%H%M%S"
RESOURCE_DATE_LENGTH = 4 + 2 + 2 + 1 + 2 + 2 + 2


def resource_prefix() -> str:
timestamp = datetime.datetime.utcnow().strftime("%Y%m%d_%H%M%S")
timestamp = datetime.datetime.utcnow().strftime(RESOURCE_DATE_FORMAT)
random_string = hex(random.randrange(1000000))[2:]
return f"{RESOURCE_PREFIX}_{timestamp}_{random_string}"


def resource_name_to_date(resource_name: str):
start_date = len(RESOURCE_PREFIX) + 1
date_string = resource_name[start_date : start_date + RESOURCE_DATE_LENGTH]
return datetime.strptime(date_string, RESOURCE_DATE_FORMAT)


@pytest.fixture(scope="session", autouse=True)
def cleanup_datasets(bigquery_client: bigquery.Client):
yesterday = datetime.datetime.utcnow() - datetime.timedelta(days=1)
for dataset in bigquery_client.list_datasets():
if (
dataset.dataset_id.startswith(RESOURCE_PREFIX)
and dataset.created < yesterday
and resource_name_to_date(dataset.dataset_id) < yesterday
):
bigquery_client.delete_dataset(
dataset, delete_contents=True, not_found_ok=True
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
@@ -1,4 +1,4 @@
google-cloud-bigquery==2.13.1
google-cloud-bigquery==2.14.0
google-cloud-bigquery-storage==2.3.0
google-auth-oauthlib==0.4.4
grpcio==1.37.0
Expand Down

0 comments on commit f4e34c0

Please sign in to comment.