简体   繁体   中英

BigQueryCheckAsyncOperator in airflow does not exist

I am trying to use async operators for bigquery; however,

from airflow.providers.google.cloud.operators.bigquery import BigQueryCheckAsyncOperator

gives the error:

ImportError: cannot import name 'BigQueryCheckOperatorAsync' from 'airflow.providers.google.cloud.operators.bigquery'

The documentation in https://airflow.apache.org/docs/apache-airflow-providers-google/stable/operators/cloud/bigquery.html mentions that BigQueryCheckAsyncOperator exists.

I am using airflow 2.4.

How to import it?

The operator you are trying to import was never released. It was added in PR and removed in PR both were part of Google provider 8.4.0 release thus overall the BigQueryCheckAsyncOperator class was never part of the release.

You can use defer mode in the existed class BigQueryCheckOperator by setting the deferrable parameter to True .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM