/databricks:databricks-spark-structured-streamingfrom databricks
Guides building production Spark Structured Streaming pipelines on Databricks: Kafka ingestion, Real-Time Mode, triggers, stateful ops with transformWithState, stream joins, multi-sink writes, and cost/performance tuning.
Ships in databricks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Production-ready streaming pipelines with Spark Structured Streaming. This skill provides navigation to detailed patterns and best practices.
from pyspark.sql.functions import col, from_json
# Basic Kafka to Delta streaming
df = (spark
.readStream
.format("kafka")
.option("kafka.bootstrap.servers", "broker:9092")
.option("subscribe", "topic")
.load()
.select(from_json(col("value").cast("string"), schema).alias("data"))
.select("data.*")
)
df.writeStream \
.format("delta") \
.outputMode("append") \
.option("checkpointLocation", "/Volumes/catalog/checkpoints/stream") \
.trigger(processingTime="30 seconds") \
.start("/delta/target_table")
| Pattern | Description | Reference |
|---|---|---|
| Kafka Streaming | Kafka to Delta, Kafka to Kafka, Real-Time Mode | See references/kafka-streaming.md |
| Real-Time Mode (RTM) | Sub-second E2E latency — cluster setup, slot math, supported ops (incl. stream-stream inner join on DBR 18+), transformWithState, observability, error classes, delivery semantics | See references/real-time-mode.md |
| Lakebase Sink | Write streaming records into Lakebase Postgres with transactional upserts. Native format("postgresql") sink (DBR 18.3+) and manual foreach sink as a fallback | See references/lakebase-sink-python.md |
| Stream Joins | Stream-stream joins, stream-static joins | See references/stream-stream-joins.md, references/stream-static-joins.md |
| Multi-Sink Writes | Write to multiple tables, parallel merges | See references/multi-sink-writes.md |
| Merge Operations | MERGE performance, parallel merges, optimizations | See references/merge-operations.md |
Custom State (transformWithState) | Built-in stateful operator or transformWithState; timers (timeMode="ProcessingTime" never lets AvailableNow jobs finish), TTL, initial state, schema evolution, state reader, migrating from applyInPandasWithState | See references/transform-with-state.md |
| Topic | Description | Reference |
|---|---|---|
| Checkpoints | Checkpoint management and best practices | See references/checkpoint-best-practices.md |
| Stateful Operations | Watermarks, state stores, RocksDB configuration | See references/stateful-operations.md |
| Trigger & Cost | Trigger selection, cost optimization, RTM | See references/trigger-and-cost-optimization.md |
| Topic | Description | Reference |
|---|---|---|
| Production Checklist | Comprehensive best practices | See references/streaming-best-practices.md |
transformWithState where supported, with timeMode="EventTime" or "None" in scheduled or serverless jobsagents/openai.yaml (opens in a new tab)assets/databricks.png (opens in a new tab)assets/databricks.svg (opens in a new tab)references/checkpoint-best-practices.md (opens in a new tab)references/kafka-streaming.md (opens in a new tab)references/lakebase-sink-python.md (opens in a new tab)references/merge-operations.md (opens in a new tab)references/multi-sink-writes.md (opens in a new tab)references/real-time-mode.md (opens in a new tab)references/stateful-operations.md (opens in a new tab)references/stream-static-joins.md (opens in a new tab)references/stream-stream-joins.md (opens in a new tab)references/streaming-best-practices.md (opens in a new tab)references/transform-with-state.md (opens in a new tab)references/trigger-and-cost-optimization.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
37 skills in this plugin
/databricks-aibi-dashboardsCreate Databricks AI/BI dashboards. Must use when creating, updating, or deploying Lakeview dashboards as Databricks Dashboard have a unique json structure. CRITICAL: You MUST test ALL SQL queries via CLI BEFORE deploying. Follow guidelines strictly./databricks-ai-functionsUse Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar, ai_gen, ai_analyze_sentiment, ai_similarity, ai_parse_document, ai_prep_search, ai_query, ai_forecast) to add AI capabilities directly to SQL and PySpark pipelines without managing model endpoints. Also covers document parsing and building custom RAG pipelines (parse → prep_search → index → query)./databricks-npx claudepluginhub databricks/databricks-agent-skills --plugin databricksOther plugins' skills for the same job