Posts

Showing posts from April, 2024

Databricks Medallion Architecture: Data Modeling Guide, Best practices, Standards, Examples

  Hello Data Pros, and welcome back to another exciting blog in our Databricks learning series! In our last blog, we explored various platform architectures, specifically focusing on the modern Data Lakehouse architecture and its implementation using the Delta Lake framework. But today, we're moving to the next big question: With this powerful platform architecture in place, how do we organize and model our data effectively? And that’s where the Medallion Architecture comes in! So, what exactly is Medallion Architecture? It’s a data design pattern, developed to logically structure and organize your data within a Lakehouse! Its main purpose is to progressively improve the quality and usability of your data, as it moves through different stages, such as Bronze, Silver, and Gold. Think of it as a transformation journey, where raw data is refined step by step into a polished and analysis-ready state! Some people call it a multi-hop architecture because the data flows through several tr...

SNOWFLAKE STAGES HANDS-ON -- DATA LOADING AND UNLOADING LAB

---------------------------------------------------------------------------------- -- SNOWFLAKE STAGES HANDS-ON   -- DATA LOADING AND UNLOADING LAB   -- ----------------------------------------------------------------------------      --- ---> set the Role use role ACCOUNTADMIN ; ---> set the Warehouse use warehouse COMPUTE_WH ; ---> create Database and Schemas create database SLEEK_OMS ; create schema L1_LANDING ; ---> Use Database and Schemas use database SLEEK_OMS ; use schema L1_LANDING ; ---> Create Tables create table if not exists DATES_DIM ( date date , day varchar ( 3 ), month varchar ( 10 ), year varchar ( 4 ), quarter int null , dayofweek varchar ( 10 ), weekofyear int ); create table if not exists CUSTOMERS_DIM ( customerid varchar ( 10 ), firstname varchar ( 50 ), lastname varchar ( 50 ), email varchar ( 100 ), phone varchar ( 100 ), address varchar ( 100 ), city varchar ( 50 ), sta...