-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Add distinct function to MongoHook in apache-airflow-providers-mongo #34466
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
There are some test failures. Please run static checks and also check the unit test you wrote, it is failing. |
There are still some static checks failures. You should be able to fix them automatically by looking at documentation |
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
This PR adds a
distinct()
function to theMongoHook
inapache-airflow-providers-mongo
, which reffers pymongo.collection.distinct. This function allows users to return a list of distinct values from a MongoDB collection. I think the distinct function fits well with the other collection functions in the hook.Before:
After: