Content-Length: 314782 | pFad | https://github.com/apache/airflow/commit/c1fb28230fa0d36ef86c452c70254b253a113f9c

D3 Refactor BigQueryHook dataset operations (#8477) · apache/airflow@c1fb282 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/apache/airflow/commit/c1fb28230fa0d36ef86c452c70254b253a113f9c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy