GithubHelp home page GithubHelp logo

etl's Introduction

ELT

This is an ELT process, were we have the data located in the bucket s3, and we are going to import it into snowflake.

In this ELT, we will follow this process:

  1. Connect to snowflake
  2. Create the databases (Landing, Production)
  3. Create a temporary stage to load the data
  4. Create a transient table, were we will load the data
  5. Create the production table
  6. Transform the data and load it into the production table

In order to be able to accomplish this, we require the following packages:

Package Description
Jinja2 To read a SQL template
parse To read the initial parameters
snowflake-connector-python To connect to snowflake
pyyaml To read tables parameters

To be able to run this ELT in Docker, it is needed to run the following commands:

  1. docker build -t etl:1.0 .
  2. docker run --entrypoint python etl:1.0 main.py --user <username> --password <password> --account <account> --warehouse <warehouse> --file_format <file_format> --database <database> --schema <schema> --table <table> --bucket <bucket> --table_config <table_config>

The parameters needed in order to be able to run the ETL are:

Parameter Description
--user User to connect to snowflake
--password Password to connect to snowflake
--account Snowflake account
--warehouse Snowflake warehouse
--file_format File format to create the Stage
--database Destination Database
--schema Destination Schema
--table Destination Table
--bucket Bucket URL
--table_config Initial configuration of the table

etl's People

Contributors

miriramire avatar

Watchers

Alejandro Gómez Montoya avatar  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.