02-merge-patterns

Official

Gold Layer MERGE Patterns

Authordatabricks-solutions
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides robust and production-grade patterns for performing MERGE operations when transitioning data from the Silver to the Gold layer in a data lakehouse, ensuring data integrity and consistency.

Core Features & Use Cases

  • SCD Type 1 & 2: Implements patterns for handling slowly changing dimensions, allowing for either overwriting historical data or tracking changes over time.
  • Fact Table Aggregation: Offers templates for aggregating transactional data from Silver into summarized fact tables in the Gold layer.
  • Schema Evolution: Provides guidance on handling data type changes and adding derived columns during the merge process.
  • Use Case: When migrating customer data from a Silver table to a Gold dimension table, use this Skill to correctly apply SCD Type 2 logic, ensuring that historical changes in customer addresses or status are preserved and queryable.

Quick Start

Use the 02-merge-patterns skill to implement an SCD Type 1 merge for the dim_product table.

Dependency Matrix

Required Modules

None required

Components

referencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 02-merge-patterns
Download link: https://github.com/databricks-solutions/vibe-coding-workshop-template/archive/main.zip#02-merge-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.