databricks-dbsql

Guide advanced Databricks SQL features including scripting, stored procedures, and materialized views.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/slysik/databricks-claude-coding --skill databricks-dbsql-slysik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-dbsql
Source: https://github.com/slysik/databricks-claude-coding/tree/main/.agents/skills/databricks-dbsql
Command: npx skills add https://github.com/slysik/databricks-claude-coding --skill databricks-dbsql-slysik

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users leverage the advanced capabilities of Databricks SQL, enabling them to write more efficient, powerful, and feature-rich SQL queries for complex data tasks.

Core Features & Use Cases

  • SQL Scripting & Stored Procedures: Write procedural logic, loops, and error handling directly in SQL.
  • Materialized Views & Temp Tables: Optimize query performance with pre-computed results and temporary data structures.
  • AI Functions & Geospatial: Integrate AI models and perform advanced spatial analysis within SQL.
  • Use Case: A data engineer needs to build a complex ETL pipeline using SQL, involving conditional logic, temporary tables, and calling a stored procedure to process data before loading it into a final table.

Quick Start

Show me how to create a stored procedure that accepts input parameters and returns a count of processed rows.

Frequently Asked Questions about databricks-dbsql

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

FAQPage Schema
How do I write a stored procedure in Databricks SQL with conditional logic?

Stored procedures in Databricks SQL allow writing procedural logic, conditional statements, and error handling directly in SQL. You can define input parameters, implement loops, and execute conditional data processing within the Lakehouse Platform.

What are materialized views and how do they optimize Databricks SQL queries?

Materialized views in Databricks SQL optimize query performance by pre-computing and storing complex query results. They automatically refresh underlying data, enabling faster read access for heavy analytical workloads and complex data modeling tasks.

Can I perform geospatial analysis using H3 and ST functions in Databricks SQL?

Databricks SQL supports advanced geospatial operations using H3 indexing and ST functions. You can perform spatial analysis, manipulate geometric data, and run complex location-based queries directly within your SQL data pipelines.

How do AI functions in Databricks SQL integrate with traditional data queries?

AI functions in Databricks SQL integrate AI models directly into standard queries, allowing you to embed machine learning predictions and generative AI capabilities within traditional SQL data processing workflows.

Does Databricks SQL support recursive CTEs and transactions?

Databricks SQL supports recursive Common Table Expressions for hierarchical data querying and database transactions for reliable data manipulation. These features facilitate complex data transformations and ensure data integrity during processing.

What is pipe syntax in Databricks SQL and when should I use it?

Pipe syntax in Databricks SQL provides an alternative query structure for chaining data transformations sequentially. It improves query readability for complex data pipelines by passing results from one operation directly to the next.