Skip to content

merge BigQueryTableExistenceAsyncSensor into BigQueryTableExistenceSensor #30235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Lee-W
Copy link
Member

@Lee-W Lee-W commented Mar 22, 2023

Why making this change?

apache-airflow-providers-google treats the deferred execution of its operators and sensors differently, which might cause confusion. For example, BigQueryCheckOperator uses the deferrable parameter to toggle deferred execution while we need to use another sensor for BigQueryTableExistenceSensor (i.e., BigQueryTableExistenceAsyncSensor) to achieve the same thing.

What's changed?

In this pull request, I move the deferred logic from BigQueryTableExistenceAsyncSensor to BigQueryTablePartitionExistenceSensor so that we can keep the consistency and reduce maintenance effort. Instead of removing BigQueryTableExistenceAsyncSensor, I add a deprecation warning in case users're using it.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Lee-W added 3 commits March 22, 2023 17:57
…ableExistenceAsyncSensor to BigQueryTableExistenceSensor
…or deferrable mode and BigQueryTableExistenceAsyncSensor deprecation
…or when its deferrable attribute is set to True
@Lee-W Lee-W changed the title Merge big query table existence async sensor to big query table existence sensor merge BigQueryTableExistenceAsyncSensor into BigQueryTableExistenceSensor Mar 22, 2023
@Lee-W
Copy link
Member Author

Lee-W commented Mar 27, 2023

@uranusjr Does it timeout again? If so, could you please help rerun it? Thanks!

@Lee-W
Copy link
Member Author

Lee-W commented Mar 30, 2023

@uranusjr The CI passes now. Could you please take a look when you're available? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants