-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Fix missing get_backup method for Dataproc Metastore #20326
Conversation
Found during apache#19891 fixing (yay! MyPy actually found some real errors). The `get_backup` method was missing in Dataproc Metastore implementation.
Yay! Found a real error thanks to MyPY :) |
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
@potiuk what errors we had without this? because we didn't add this method intentionally. |
Why Intentionally? It does not look like this was intentional, because it has been called in the operator (in case of error, but it was). It could be that there was another mistake in the operator that called this method - but this did seem like a missing method that is used elsewhere?
What do you think is the right fix @lwyszomi ? Should id be replaced with something else here? |
BTW: we still have a chance to fix it today as I am preparing to publish RC2 for providers - so if this is wrong - it would be great to get a better fix today. |
BTW ^^ this is what MyPy discovered :). I have no such hawk-eye :) |
@potiuk We decided that we should not have a operator for this hook method, I didn't know that we using this in the create backup operator. I don't know how this happen and we didn't discovered this in the tests. This is really good fix to add this method to the hook. |
Cool :) |
Thank MyPy for that, not me :). I merely followed MyPy screaming " pleeeeease add the method " at me. |
Found during #19891 fixing (yay! MyPy actually found some real errors).
The
get_backup
method was missing in Dataproc Metastoreimplementation.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.