Skip to content

hubdev04/snowflake_assingment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published