Skip to content

Commit

Permalink
Add warning about the PostgresOperator being deprecated (apache#40662)
Browse files Browse the repository at this point in the history
PostgresOperator's reference page says it's deprecated. I am not knowledgeable enough to write a tutorial. I think if someone reads the guide (I linked to in my change) they will be able to use this tutorial as well.
  • Loading branch information
a1ea321 authored and romsharon98 committed Jul 26, 2024
1 parent 076e6fe commit f031764
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/apache-airflow/tutorial/pipeline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Building a Running Pipeline

Lets look at another example: we need to get some data from a file which is hosted online and insert it into our local database. We also need to look at removing duplicate rows while inserting.

*Be advised:* The operator used in this tutorial is `deprecated <https://airflow.apache.org/docs/apache-airflow-providers-postgres/stable/_api/airflow/providers/postgres/operators/postgres/index.html>`_.
Its recommended successor, `SQLExecuteQueryOperator <https://airflow.apache.org/docs/apache-airflow-providers-common-sql/stable/_api/airflow/providers/common/sql/operators/sql/index.html#airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator>`_ works similarly.
You might find `this guide <https://airflow.apache.org/docs/apache-airflow-providers-postgres/stable/operators/postgres_operator_howto_guide.html#creating-a-postgres-database-table>`_ helpful.

Initial setup
-------------

Expand Down

0 comments on commit f031764

Please sign in to comment.