Skip to content

Commit

Permalink
Fix BigQuery system test (#21320)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksYermak committed Feb 4, 2022
1 parent 6fc6edf commit e840acf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
task_id="update_table",
dataset_id=DATASET_NAME,
table_id="test_table",
fields=["emp_name", "salary"],
fields=["friendlyName", "description"],
table_resource={
"friendlyName": "Updated Table",
"description": "Updated Table",
Expand Down
4 changes: 4 additions & 0 deletions airflow/providers/google/cloud/operators/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,10 @@ def __init__(
self.table_resource = None
else:
self.table_resource = table_resource
self.bucket = ""
self.source_objects = []
self.schema_object = None
self.destination_project_dataset_table = ""

if table_resource and kwargs_passed:
raise ValueError("You provided both `table_resource` and exclusive keywords arguments.")
Expand Down

0 comments on commit e840acf

Please sign in to comment.