Skip to content
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

Pymongo 4.11 breaks Mongo provider #46215

Open
1 of 2 tasks
jscheffl opened this issue Jan 28, 2025 · 0 comments
Open
1 of 2 tasks

Pymongo 4.11 breaks Mongo provider #46215

jscheffl opened this issue Jan 28, 2025 · 0 comments
Labels

Comments

@jscheffl
Copy link
Contributor

Apache Airflow Provider(s)

mongo

Versions of Apache Airflow Providers

Failed CI run:
https://github.com/apache/airflow/actions/runs/13018061271/job/36312691670

Errors when using pymongo 4.11:
FAILED providers/mongo/tests/provider_tests/mongo/hooks/test_mongo.py::TestMongoHook::test_replace_many - TypeError: BulkOperationBuilder.add_replace() got an unexpected keyword argument 'sort'
FAILED providers/mongo/tests/provider_tests/mongo/hooks/test_mongo.py::TestMongoHook::test_replace_many_with_upsert - TypeError: BulkOperationBuilder.add_replace() got an unexpected keyword argument 'sort'

PR as workaround coming

Apache Airflow version

main

Operating System

any

Deployment

Other

Deployment details

No response

What happened

No response

What you think should happen instead

No response

How to reproduce

breeze testing providers-tests --test-type "Providers[mongo]" --python 3.12

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@jscheffl jscheffl added area:providers kind:bug This is a clearly a bug needs-triage label for new issues that we didn't triage yet labels Jan 28, 2025
@RNHTTR RNHTTR removed the needs-triage label for new issues that we didn't triage yet label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants