GaryLiuTelus commented on issue #32870:
URL: https://github.com/apache/airflow/issues/32870#issuecomment-1665788565
@rohan472000
As you can see from below, with the `BigQueryValueCheckOperator`, I need to
run a query against the target table to get some information (the total records
in below case), and then compare with the target number. If the target table is
in a different project, I need the impersonation chain to get the result back.
```python
tbl_check = BigQueryValueCheckOperator(
task_id="value_check",
sql=f"select count(1) from `{project_id}.{DATASET}.{TABLE_NAME}`",
pass_value=1_000_000,
tolerance=0.05,
use_legacy_sql=False,
# project_id=project_id,
location=location,
impersonation_chain=[service_email]
)
```
--
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]