databricks-dbsql

Document advanced Databricks SQL features with syntax examples and best practices.

1|1|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/Paldom/databricks-apps-streamlit-vibe-coding-starter --skill databricks-dbsql-paldom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-dbsql
Source: https://github.com/Paldom/databricks-apps-streamlit-vibe-coding-starter/tree/main/.agents/skills/databricks-dbsql
Command: npx skills add https://github.com/Paldom/databricks-apps-streamlit-vibe-coding-starter --skill databricks-dbsql-paldom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and examples for leveraging advanced Databricks SQL (DBSQL) features, helping users write more efficient, powerful, and maintainable SQL queries.

Core Features & Use Cases

  • Advanced SQL Features: Covers SQL scripting, stored procedures, materialized views, pipe syntax, geospatial functions, AI functions, and more.
  • Performance Optimization: Offers best practices for data modeling, query tuning, and warehouse configuration.
  • Use Case: A data engineer needs to implement complex ETL logic using stored procedures and materialized views for a BI dashboard. This Skill provides the necessary syntax, examples, and best practices to accomplish this efficiently.

Quick Start

Show me how to create a materialized view that aggregates daily sales by region.

Frequently Asked Questions about databricks-dbsql

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

FAQPage Schema
How do I create a materialized view in Databricks SQL to aggregate daily sales by region?

To create a materialized view in Databricks SQL, use the CREATE MATERIALIZED VIEW statement to pre-aggregate daily sales by region. This Skill provides syntax examples and best practices for implementing materialized views to optimize BI dashboard query performance.

Can I use SQL scripting and stored procedures for complex ETL logic in Databricks SQL?

Yes, Databricks SQL supports SQL scripting and stored procedures for complex ETL logic. This Skill covers the necessary syntax, examples, and best practices to implement procedural data transformations efficiently on the Databricks Lakehouse Platform.

What are the best practices for Databricks SQL performance tuning and query optimization?

Databricks SQL performance tuning involves best practices for data modeling, query tuning, and warehouse configuration. This Skill provides optimization techniques to help you write efficient SQL queries and improve execution speed on the Databricks Lakehouse Platform.

Does Databricks SQL support geospatial functions and AI functions for advanced analytics?

Yes, Databricks SQL supports geospatial functions and AI functions for advanced analytics. This Skill provides in-depth documentation and syntax examples for leveraging these features to perform spatial analysis and integrate AI directly within your SQL queries.

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

Pipe syntax in Databricks SQL allows chaining data transformations sequentially for improved readability. This Skill explains how the mechanism works and provides examples of when to use pipe syntax for writing maintainable and complex SQL queries.

Are there limitations when using stored procedures or materialized views in Databricks SQL?

While Databricks SQL supports advanced features like stored procedures and materialized views, specific limitations exist regarding their execution contexts and refresh schedules. This Skill outlines best practices to navigate constraints and anticipate edge cases effectively.