Skip to content

Commit c1fb282

Browse files
Refactor BigQueryHook dataset operations (#8477)
* Refactor database methods of BigQueryHook * fixup! Refactor database methods of BigQueryHook * Apply suggestions from code review Co-Authored-By: Michał Słowikowski <michalslowikowski00@gmail.com> * fixup! fixup! Refactor database methods of BigQueryHook * fixup! fixup! fixup! Refactor database methods of BigQueryHook * Pass credentials to BQ client Co-authored-by: Michał Słowikowski <michalslowikowski00@gmail.com>
1 parent 1291ded commit c1fb282

File tree

5 files changed

+323
-275
lines changed

5 files changed

+323
-275
lines changed

UPDATING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ https://developers.google.com/style/inclusive-documentation
6262
6363
-->
6464

65+
### Change signature of BigQueryGetDatasetTablesOperator
66+
Was:
67+
```python
68+
BigQueryGetDatasetTablesOperator(dataset_id: str, dataset_resource: dict, ...)
69+
```
70+
and now it is:
71+
```python
72+
BigQueryGetDatasetTablesOperator(dataset_resource: dict, dataset_id: Optional[str] = None, ...)
73+
```
74+
6575
### Unify `hostname_callable` option in `core` section
6676

6777
The previous option used a colon(`:`) to split the module from function. Now the dot(`.`) is used.
@@ -75,6 +85,9 @@ other parameters are ignored.
7585
if parameters were passed in `dataset_reference` and as arguments to method. Additionally validation
7686
of `dataset_reference` is done using `Dataset.from_api_repr`. Exception and log messages has been
7787
changed.
88+
- `update_dataset` requires now new `fields` argument (breaking change)
89+
- `delete_dataset` has new signature (dataset_id, project_id, ...)
90+
previous one was (project_id, dataset_id, ...) (breaking change)
7891

7992
### Added mypy plugin to preserve types of decorated functions
8093

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy