You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Taragolis (via GitHub)" <gi...@apache.org> on 2023/10/25 16:14:07 UTC
Re: [PR] Add distinct function to MongoHook in apache-airflow-providers-mongo [airflow]
Taragolis commented on code in PR #34466:
URL: https://github.com/apache/airflow/pull/34466#discussion_r1372017572
##########
airflow/providers/mongo/hooks/mongo.py:
##########
@@ -366,3 +366,22 @@ def delete_many(
collection = self.get_collection(mongo_collection, mongo_db=mongo_db)
return collection.delete_many(filter_doc, **kwargs)
+
+ def distinct(
+ self, mongo_collection: str, distinct_key: str, filter_doc: dict | None = None, mongo_db: str | None = None, **kwargs
Review Comment:
```suggestion
self,
mongo_collection: str,
distinct_key: str,
filter_doc: dict | None = None,
mongo_db: str | None = None,
**kwargs,
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org