Skip to content

Commit

Permalink
[AIRFLOW-6223] Refactor BigQuery hook tests (apache#6777)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobKed authored and mik-laj committed Dec 17, 2019
1 parent b9de267 commit d51b110
Show file tree
Hide file tree
Showing 2 changed files with 631 additions and 360 deletions.
3 changes: 2 additions & 1 deletion airflow/gcp/hooks/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,8 @@ def create_empty_dataset(self,

if not dataset_reference["datasetReference"].get("datasetId") and not dataset_id:
raise ValueError(
"{} not provided datasetId. Impossible to create dataset")
"dataset_id not provided and datasetId not exist in the datasetReference. "
"Impossible to create dataset")

dataset_required_params = [(dataset_id, "datasetId", ""),
(project_id, "projectId", self.project_id)]
Expand Down
Loading

0 comments on commit d51b110

Please sign in to comment.