databricks-dbsql

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

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LaurentPRAT-DB/LPT_claude_config --skill databricks-dbsql-laurentprat-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-dbsql
Source: https://github.com/LaurentPRAT-DB/LPT_claude_config/tree/main/skills/databricks-dbsql
Command: npx skills add https://github.com/LaurentPRAT-DB/LPT_claude_config --skill databricks-dbsql-laurentprat-db

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to leverage the full potential of Databricks SQL, from advanced scripting and AI functions to geospatial analysis and efficient data modeling.

Core Features & Use Cases

  • Advanced SQL Features: Utilize SQL scripting, stored procedures, recursive CTEs, and materialized views for complex data manipulation and analysis.
  • AI Integration: Seamlessly integrate AI functions for text analysis, classification, extraction, and more directly within SQL queries.
  • Geospatial & Collations: Perform sophisticated spatial analysis and manage string comparisons with advanced collation options.
  • Performance Optimization: Learn and apply best practices for data modeling and query optimization to ensure efficient data processing.
  • Use Case: A data analyst needs to build a real-time dashboard. They can use this Skill to create materialized views for fast data retrieval, leverage AI functions to enrich data with sentiment analysis, and optimize queries for sub-second performance.

Quick Start

Use the databricks-dbsql skill to create a materialized view for daily sales aggregations.

Frequently Asked Questions about databricks-dbsql

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

FAQPage Schema
How do I use AI functions in Databricks SQL for text analysis?

Databricks SQL AI functions enable text analysis, classification, and extraction directly within SQL queries. You can enrich datasets with sentiment analysis or other AI-driven insights without moving data to external processing environments.

What is the best way to optimize Databricks SQL query performance?

Optimizing Databricks SQL query performance involves applying data modeling best practices and leveraging materialized views for fast retrieval. Following these performance strategies ensures efficient data processing and sub-second query speeds for analytics.

Can I perform geospatial analysis directly in Databricks SQL?

Yes, Databricks SQL supports sophisticated geospatial analysis capabilities natively. You can perform spatial queries and manage string comparisons using advanced collation options directly within your Lakehouse data warehousing environment.

How do I create stored procedures and recursive CTEs in DBSQL?

Databricks SQL supports advanced SQL scripting, stored procedures, and recursive CTEs for complex data manipulation. You can encapsulate logic and handle iterative data transformations directly on the Lakehouse platform.

When should I use materialized views in Databricks data warehousing?

Use materialized views in Databricks data warehousing when building real-time dashboards or requiring fast data retrieval for aggregations. They pre-compute complex queries, enabling sub-second performance for repeated analytical workloads.

Does Databricks SQL support advanced collation options for string comparisons?

Yes, Databricks SQL provides advanced collation options to manage string comparisons accurately. This allows precise control over character sorting and matching rules within your data warehousing and analytics workflows.