Skip to content
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

Fix schema assigment in PostgresOperator #39264

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

eladkal
Copy link
Contributor

@eladkal eladkal commented Apr 25, 2024

When passing schema in PostgresOperator it throws deprecation warning as the hook converts it to database in

if "schema" in kwargs:
warnings.warn(
'The "schema" arg has been renamed to "database" as it contained the database name.'
'Please use "database" to set the database name.',
AirflowProviderDeprecationWarning,
stacklevel=2,
)
kwargs["database"] = kwargs["schema"]

@eladkal eladkal merged commit a8afa2e into apache:main Apr 25, 2024
40 checks passed
@eladkal eladkal deleted the postgres branch April 25, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants