databricks-spark-declarative-pipelines

Generates Lakeflow Spark Declarative Pipelines for Databricks with SDP syntax constraints.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/itsadijmbt/SecureMCP-Servers --skill databricks-spark-declarative-pipelines-itsadijmbt
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: databricks-spark-declarative-pipelines
Source: https://github.com/itsadijmbt/SecureMCP-Servers/tree/main/TEST_SERVERS/PORTED_TO_SECUREMCP/databrickslab-mcp/ai-dev-kit/databricks-skills/databricks-spark-declarative-pipelines
Command: npx skills add https://github.com/itsadijmbt/SecureMCP-Servers --skill databricks-spark-declarative-pipelines-itsadijmbt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

It helps you create and maintain Databricks Lakeflow Spark Declarative Pipelines (SDP/LDP) by giving clear, guardrailed instructions for building correct streaming tables and materialized views using the right syntax and workflow.

Core Features & Use Cases

  • Correct SDP syntax and safety rules: Enforces CREATE OR REFRESH (not CREATE OR REPLACE) and distinguishes streaming tables vs materialized views.
  • Medallion-ready pipeline patterns: Supports bronze/silver/gold architectures, including streaming ingestion, transformations, aggregations, and CDC/SCD Type 1/2.
  • Operational workflows: Guides choosing the right workflow (standalone DAB vs bundle vs MCP prototyping) and validating results using pipeline status + table stats.
  • SQL and Python routing: Selects SQL for simple tasks and Python when appropriate for complex/parametrized needs, including pyspark.pipelines CDC patterns.

Quick Start

Tell the assistant: "Create a serverless Databricks Lakeflow Spark Declarative Pipeline in SQL that ingests JSON files from a Volumes path into a bronze streaming table and creates one silver streaming table for basic cleansing."

Frequently Asked Questions about databricks-spark-declarative-pipelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Databricks streaming table for Auto Loader ingestion?▼

To create a Databricks streaming table, use `CREATE OR REFRESH STREAMING TABLE` syntax and enforce `STREAM` usage when reading from Auto Loader file ingestion sources to build correct serverless pipelines.

What is the correct syntax for Spark Declarative Pipelines in Databricks?▼

Spark Declarative Pipelines require `CREATE OR REFRESH` rather than `CREATE OR REPLACE`, use streaming tables for streaming reads, and default to serverless with Unity Catalog for medallion architecture transformations.

How do I implement CDC and SCD Type 2 flows in Databricks Lakeflow?▼

Implement CDC and SCD Type 2 flows in Databricks Lakeflow by using SQL for simple tasks or `pyspark.pipelines` Python patterns for complex parametrized needs, applying medallion-ready pipeline patterns for silver and gold transformations.

Does Databricks Lakeflow support serverless ingestion with Unity Catalog?▼

Databricks Lakeflow supports serverless ingestion with Unity Catalog by defaulting to serverless environments, allowing you to build bronze-to-silver-to-gold medallion architectures while validating outputs via pipeline run results and table stats.

Why does my Databricks declarative pipeline fail when using CREATE OR REPLACE?▼

Databricks declarative pipelines fail with `CREATE OR REPLACE` because mandatory SDP syntax constraints require `CREATE OR REFRESH` instead, distinguishing between streaming tables and materialized views to ensure correct pipeline execution.

Should I use SQL or Python for building Spark Declarative Pipelines?▼

Use SQL for simple Spark Declarative Pipeline tasks and Python with `pyspark.pipelines` for complex or parametrized needs, including CDC patterns, to route logic appropriately based on transformation complexity.