Skip to content

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