Code Monkey home page Code Monkey logo

snowflake_assingment's Introduction

Snowflake Assignment Readme

This repository contains code and documentation for the Snowflake assignment.

Data Infrastructure Overview

  • The Snowflake warehouse used for this assignment is named assingment_wh .
  • The database utilized in this assignment is called assingment_db under and schema my_schema.

CSV File Used

The CSV file used in this assignment is named emp_assignment.csv. It contains the data required for the loading.

External Stage Table

An external stage table was created so that using Amazon S3 we can get the data back . The stage table provides a way to load data from files stored in an S3 bucket directly into Snowflake.

Stage Table Details

Name: my_emp_stage for internal staging , my_emp_external_stage for external staging

Folder Strucutre

.
├── src 
    ├── assingment.sql                        # Source files (containing .sql file)
├── data
    ├── emp_assingment.csv                    # contains emp_assingment.csv dataset
└── README.md

Usage

  • According to the sql commands written in ./src/assingment.sql we have created warehouse,database and schema
  • After that according to question requirements, created different roles and assinged grants accordingly
  • Using admin role run all the queries according to the comments (sometimes we need accountadmin to grant privileges to admin)
  • Created Table and loaded data from internal and external stages as mentioned above.

Loaded data in table

  • for internal staging
Screenshot 2024-04-10 at 12 15 43 PM
  • from external staging Screenshot 2024-04-10 at 12 28 49 PM

  • for parquet file

Screenshot 2024-04-04 at 3 35 14 PM

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.