Skip to content

Commit

Permalink
Fix deprecation error message rather than silencing it
Browse files Browse the repository at this point in the history
  • Loading branch information
ashb committed Sep 9, 2021
1 parent 47e8fa6 commit 5f0701b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def upgrade():
batch_op.create_index(
'idx_dag_run_running_dags',
["state", "dag_id"],
postgres_where=text("state='running'"),
postgresql_where=text("state='running'"),
mssql_where=text("state='running'"),
sqlite_where=text("state='running'"),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def upgrade():
batch_op.create_index(
'idx_dag_run_queued_dags',
["state", "dag_id"],
postgres_where=text("state='queued'"),
postgresql_where=text("state='queued'"),
mssql_where=text("state='queued'"),
sqlite_where=text("state='queued'"),
)
Expand Down
4 changes: 2 additions & 2 deletions airflow/models/dagrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class DagRun(Base, LoggingMixin):
'idx_dag_run_running_dags',
'state',
'dag_id',
postgres_where=text("state='running'"),
postgresql_where=text("state='running'"),
mssql_where=text("state='running'"),
sqlite_where=text("state='running'"),
),
Expand All @@ -118,7 +118,7 @@ class DagRun(Base, LoggingMixin):
'idx_dag_run_queued_dags',
'state',
'dag_id',
postgres_where=text("state='queued'"),
postgresql_where=text("state='queued'"),
mssql_where=text("state='queued'"),
sqlite_where=text("state='queued'"),
),
Expand Down
1 change: 0 additions & 1 deletion dev/provider_packages/prepare_provider_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,6 @@ def summarise_total_vs_bad_and_warnings(total: int, bad: int, warns: List[warnin
),
("SelectableGroups dict interface is deprecated. Use select.", "kombu"),
("The module cloudant is now deprecated. The replacement is ibmcloudant.", "cloudant"),
("The 'postgres' dialect name has been renamed to 'postgresql'", 'sqlalchemy'),
}

# The set of warning messages generated by direct importing of some deprecated modules. We should only
Expand Down

0 comments on commit 5f0701b

Please sign in to comment.