uranusjr commented on a change in pull request #20001:
URL: https://github.com/apache/airflow/pull/20001#discussion_r763692419
##########
File path: airflow/providers/google/cloud/transfers/bigquery_to_mssql.py
##########
@@ -111,47 +109,23 @@ def __init__(
self.batch_size = batch_size
self.location = location
self.impersonation_chain = impersonation_chain
+ try:
+ _, self.dataset_id, self.table_id =
source_project_dataset_table.split('.')
+ except ValueError:
+ raise ValueError(f'Could not parse {source_project_dataset_table}
as <project>.<dataset>.<table>')
Review comment:
```suggestion
raise ValueError(f'Could not parse
{source_project_dataset_table} as <project>.<dataset>.<table>') from None
```
to hide the original exception raised by `split()`. This makes the traceback
cleaner.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]