-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Remove offset-based pagination from list_jobs function in DatabricksHook
#34926
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
Remove offset-based pagination from list_jobs function in DatabricksHook
#34926
Conversation
49b264f to
4ed46c1
Compare
|
@alexott could you please take a look and assign a maintainer to review if you can? |
|
Do we need to do something like #34738 (comment) in this PR as well? Looks like a breaking change. |
|
Yes we do. Or to not make this a breaking change, we can continue to accept the argument but just ignore it with a warning. I would prefer dropping it entirely though. |
|
Thanks @uranusjr, I have added the breaking change note the changelog |
92f50c9 to
1df7863
Compare
|
Hi @eladkal, could you ptal? This is ready to be merged |
|
Please also add airflow/airflow/providers/databricks/provider.yaml Lines 25 to 28 in e9987d5
|
|
Thanks @eladkal ! Applied changes |
harishkesavarao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, agree with removing the offset altogether.
|
I have spent some time but I'm really not sure where the bad revision error is coming from in provider docs GH workflow. I suspect it's the different commit introducing v4.7.0 in between before I added 5.0.0. @eladkal could I ask you to take over and merge? Or at least provide advice how to solve this? |
|
You need to wait until 4.7.0 is released. It is being voted currently - but not yet released and the error you see is when documentation is generated to show the difference between released 4.7.0 and your 5.0.0 - but since 4.7.0 is not yet released (and tag not set) this is impossible to generate the difference from 4.7.0. Just wait until 4.7.0 is released (will be announced on the devlist - likely tomorrow) and rebase. It should get fixed. See https://lists.apache.org/thread/mpbkbdwftq7bmfx5vdnd9tz36xmq8rwc |
|
Ah, thank you very much @potiuk! Will wait for a few days |
Databricks has deprecated the offset parameter from ListJobs API, and to soften and control the inevitable breaking change for Airflow users, as well as to conceal the implementation details we are removing the offset-based pagination from all connectors.
This is a follow-up to #33472. Airflow users passing offsets to
list_jobsshould be receiving deprecation warnings already starting from this release.