databricks-dbsql

Guide Databricks SQL advanced features including scripting, AI functions, and materialized views.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to leverage the advanced capabilities of Databricks SQL, enabling complex data manipulation, AI integration, and efficient querying.

Core Features & Use Cases

  • SQL Scripting & Stored Procedures: Write procedural logic, automate ETL, and create reusable database objects.
  • AI Functions: Integrate LLMs directly into SQL for data enrichment, classification, and extraction.
  • Geospatial & Collations: Perform advanced spatial analysis and manage string comparisons with locale-aware rules.
  • Materialized Views & Pipe Syntax: Optimize query performance and write more readable SQL.
  • Use Case: A data analyst needs to build a complex reporting view that involves calling an external API for data enrichment and then performing geospatial analysis on the results. This Skill provides all the necessary functions and syntax.

Quick Start

Use the databricks-dbsql skill 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 write stored procedures and procedural logic in Databricks SQL?

Stored procedures in Databricks SQL are created using SQL scripting to write procedural logic, automate ETL pipelines, and build reusable database objects. This approach enables complex control flow and variable declarations directly within your data warehouse environment.

Can I integrate LLMs directly into Databricks SQL for data enrichment?

Yes, you can integrate LLMs directly into Databricks SQL using built-in AI functions. These functions allow you to perform data enrichment, text classification, and information extraction seamlessly within standard SQL queries without moving data externally.

What is the best way to perform geospatial analysis in Databricks SQL?

Geospatial analysis in Databricks SQL is handled through native geospatial operations. You can perform advanced spatial analysis and manage locale-aware string comparisons using collations directly in your queries to calculate distances, areas, and spatial relationships.

How do materialized views and pipe syntax optimize query performance in Databricks SQL?

Materialized views optimize query performance by pre-computing and caching complex aggregation results. Pipe syntax enhances query readability by structuring SQL sequentially, making procedural data transformations easier to write and maintain in Databricks SQL.

Does Databricks SQL support complex reporting views with external API calls and spatial analysis?

Yes, Databricks SQL supports building complex reporting views that combine external API data enrichment with geospatial analysis. This is achieved by integrating AI functions for data retrieval and native geospatial operations within a single materialized view.