xinbinhuang commented on a change in pull request #15680:
URL: https://github.com/apache/airflow/pull/15680#discussion_r627073207



##########
File path: airflow/providers/amazon/aws/transfers/mongo_to_s3.py
##########
@@ -117,7 +117,6 @@ def execute(self, context) -> bool:
                 mongo_collection=self.mongo_collection,
                 query=cast(dict, self.mongo_query),
                 mongo_db=self.mongo_db,
-                allowDiskUse=self.allow_disk_use,

Review comment:
       Not ideal, but it seems to be the only way:
   ```python
   find_method = partial(MongoHook(self.mongo_conn_id).find, 
                   mongo_collection=self.mongo_collection,
                   query=cast(dict, self.mongo_query),
                   mongo_db=self.mongo_db)
   
   if self.allow_disk_use:
       results = find_method(allow_disk_use=self.allow_disk_use)
   else:
       results = find_method()
   




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to