Postgres hook uses deprecated parameter from base_aws.py #21845
Unanswered
akennedy4155
asked this question in
General
Replies: 2 comments
-
|
I don't see the issue. The reference to Can you provide example DAG to reproduce the warning? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Converted it to a discussion until more information is provided. Please epxlain how to reproduce it @akennedy4155 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Apache Airflow Provider(s)
postgres
Versions of Apache Airflow Providers
Most recent
Apache Airflow version
2.2.3 (latest released)
Operating System
macOS Big Sur 11.3.1
Deployment
Astronomer
Deployment details
Nothing else needed here. The source means that this is deployment agnostic I believe.
What happened
Postgres hook calls AwsBaseHook, and uses the client_type parameter from the conn cached property. Using client_type as a parameter here is deprecated, and it should be specified as part of the class initialization I believe.
Warning message is:
client_type is deprecated. Set client_type from class attribute.What you expected to happen
No deprecated calls or warning messages.
How to reproduce
Use postgres_hook.get_iam_token
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions