lidalei commented on PR #25342:
URL: https://github.com/apache/airflow/pull/25342#issuecomment-1199455724
> Some errors though
Fixed the failed test case. The `Conflict` exception will be raised when we
call `_begin`.
```
Traceback (most recent call last):
File "/Users/dalei/.pyenv/versions/3.8.10/lib/python3.8/code.py", line 90,
in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File
"/Users/dalei/go/src/github.com/lidalei/airflow/airflow/providers/google/common/hooks/base_google.py",
line 463, in inner_wrapper
return func(self, *args, **kwargs)
File
"/Users/dalei/go/src/github.com/lidalei/airflow/airflow/providers/google/cloud/hooks/bigquery.py",
line 1542, in insert_job
job._begin()
File
"/Users/dalei/go/src/github.com/lidalei/airflow/venv/lib/python3.8/site-packages/google/cloud/bigquery/job/query.py",
line 1298, in _begin
super(QueryJob, self)._begin(client=client, retry=retry, timeout=timeout)
File
"/Users/dalei/go/src/github.com/lidalei/airflow/venv/lib/python3.8/site-packages/google/cloud/bigquery/job/base.py",
line 510, in _begin
api_response = client._call_api(
File
"/Users/dalei/go/src/github.com/lidalei/airflow/venv/lib/python3.8/site-packages/google/cloud/bigquery/client.py",
line 759, in _call_api
return call()
File
"/Users/dalei/go/src/github.com/lidalei/airflow/venv/lib/python3.8/site-packages/google/api_core/retry.py",
line 283, in retry_wrapped_func
return retry_target(
File
"/Users/dalei/go/src/github.com/lidalei/airflow/venv/lib/python3.8/site-packages/google/api_core/retry.py",
line 190, in retry_target
return target()
File
"/Users/dalei/go/src/github.com/lidalei/airflow/venv/lib/python3.8/site-packages/google/cloud/_http/__init__.py",
line 494, in api_request
raise exceptions.from_http_response(response)
google.api_core.exceptions.Conflict: 409 POST
https://bigquery.googleapis.com/bigquery/v2/projects/xxx/jobs?prettyPrint=false:
Already Exists: Job xxx:EU.abc_test
Location: EU
Job ID: abc_test
```
--
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]