Giter Club home page Giter Club logo

airflow_data_pipeline's Introduction

Airflow-data-Pipline

This project demonstrates an Apache Airflow data pipeline for loading employee data from an S3 bucket to Snowflake. The pipeline automates the process of extracting data from PostgreSQL, uploading it to S3, joining and detecting new or changed rows, and finally loading the data into Snowflake.

Project Overview

The main objective of this project is to enable seamless synchronization of employee salary data between the PostgreSQL source system and the Snowflake data warehouse. The project follows these key steps:

Extraction: Utilizing the PostgresOperator, the project extracts employee salary data from the PostgreSQL source system hosted on AWS. This step requires appropriate credentials and permissions to access the source system. Staging: The extracted data is then staged in the Amazon S3 storage system using the S3UploadOperator. This operator securely uploads the data to a designated S3 bucket, preparing it for further processing. Transformation: The project applies custom transformations to the extracted data using the powerful data manipulation capabilities of Pandas. The transformations are executed within the PythonOperator, allowing flexibility and customization in the transformation logic. Update and Insert: Leveraging the SnowflakeOperator, the project updates existing employee salary records in the Snowflake data warehouse. The BranchPythonOperator is utilized to check if an employee record already exists in the data warehouse. If the record exists, it performs an update; otherwise, it inserts the new record.

Project Structure

The project structure is organized as follows:

dags/: Directory containing the Airflow DAG definition file.

includes/: Directory containing custom Python modules used in the DAG.

queries/: Directory containing SQL queries used in the DAG.

image

airflow_data_pipeline's People

Contributors

habibaamohey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.