Skip to content

Commit

Permalink
Replacing non-attribute template_fields for BigQueryToMsSqlOperator (#…
Browse files Browse the repository at this point in the history
…19052)

* Replacing non-attribute template_fields for BigQueryToMsSqlOperator

* Updating source_project_dataset_table arg in example DAG
  • Loading branch information
josh-fell committed Oct 22, 2021
1 parent 4d1f14a commit d9192a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
) as dag:
bigquery_to_mssql = BigQueryToMsSqlOperator(
task_id="bigquery_to_mssql",
source_project_dataset_table=f'{DATASET_NAME}.{TABLE}',
source_project_dataset_table=f'{PROJECT_ID}.{DATASET_NAME}.{TABLE}',
mssql_table=destination_table,
replace=False,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,7 @@ class BigQueryToMsSqlOperator(BaseOperator):
:type impersonation_chain: Union[str, Sequence[str]]
"""

template_fields = (
'dataset_id',
'table_id',
'mssql_table',
'impersonation_chain',
)
template_fields = ('source_project_dataset_table', 'mssql_table', 'impersonation_chain')

def __init__(
self,
Expand Down

0 comments on commit d9192a5

Please sign in to comment.