Invalid airflow.providers.amazon.aws.transfers.mongo_to_s3.MongoToS3Operator execute function signature #16479
Labels
duplicate
Issue that is duplicated
kind:bug
This is a clearly a bug
pending-response
provider:amazon
AWS/Amazon - related issues
Apache Airflow version: 2.1.0
Kubernetes version (if you are using kubernetes) (use
kubectl version
): not useEnvironment:
uname -a
): Darwin Kernel Version 20.3.0requirements
pymongo==3.11.4
apache-airflow-providers-amazon==1.4.0
What happened: I ran MongoToS3Operator, but the error below occurred.
So when I look at the signature of pymongo.cursor.Cursor class, the allow_disk_use arg name is snake_case.
airflow.providers.amazon.aws.transfers.mongo_to_s3.MongoToS3Operator execute method is odd
In other words, MongoHook's function aggregate, find's allowDiskUse arg name is different from pymongo's Cursor arg allow_disk_use name. So it works well if changed the name of the arg as below code.
I'd appreciate it if you could give me an answer.
The text was updated successfully, but these errors were encountered: