uranusjr commented on a change in pull request #16084:
URL: https://github.com/apache/airflow/pull/16084#discussion_r640671421
##########
File path: docs/apache-airflow/tutorial.rst
##########
@@ -368,11 +368,154 @@ Here's a few things you might want to do next:
.. seealso::
- Read the :doc:`/concepts/index` section for detailed explanation of
Airflow concepts such as DAGs, Tasks, Operators, and more.
- - Take an in-depth tour of the UI - click all the things!
- - Keep reading the docs!
+ - Take an in-depth tour of the UI - click all the things!
+ - Keep reading the docs!
- Review the :doc:`how-to guides<howto/index>`, which include a guide to
writing your own operator
- Review the :ref:`Command Line Interface Reference<cli>`
- Review the :ref:`List of operators <pythonapi:operators>`
- Review the :ref:`Macros reference<macros>`
- Write your first pipeline!
+
+
+Another Example
+---------------------------
+
+Lets look at another example; we need to get some data from a file which is
hosted online and need to insert into our local database. We also need to look
at removing duplicate rows while inserting.
+
+Inital setup
+''''''''''''
+We need to have docker and postgres installed. We will be using this [docker
file](https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html#docker-compose-yaml)
+Follow the instructions properly to set up Airflow.
+
+Clone this repo to your system using:
+.. code-block:: bash
+
+ git clone https://github.com/puckel/docker-airflow.git
+ cd docker-airflow
+
+Create a Employee table in postgres using this
+
+.. code-block:: python
+
+ create table "Employees"
+ (
+ "Serial Number" numeric not null
+ constraint employees\_pk
+ primary key,
+ "Company Name" text,
+ "Employee Markme" text,
+ "Description" text,
+ "Leave" integer
+ );
+
+ create table "Employees_temp"
+ (
+ "Serial Number" numeric not null
+ constraint employees\_pk
+ primary key,
+ "Company Name" text,
+ "Employee Markme" text,
+ "Description" text,
+ "Leave" integer
+ );
Review comment:
This is not `python`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]