databricks
Skill by rocky-data
Databricks is a REST API and SQL reference for Rocky's warehouse adapter. It covers SQL execution, authentication, Unity Catalog and permission reconciliation. It is for developers working in the rocky-databricks crate.
Install databricks
Built from the published package, never by AI.
git clone --depth 1 https://github.com/rocky-data/rocky /tmp/rocky && mkdir -p ~/.claude/skills && cp -r /tmp/rocky/engine/.claude/skills/databricks ~/.claude/skills/databricksRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/rocky-data/rocky /tmp/rocky && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/rocky/engine/.claude/skills/databricks ~/.gemini/antigravity-cli/skills/databricksAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The databricks skill is a reference document for Rocky's warehouse adapter. It lists Databricks REST endpoints and the SQL statements Rocky generates. It covers statement submission and polling, PAT and OAuth M2M authentication, Unity Catalog catalog isolation and workspace bindings, and permission reconciliation. It also describes incremental copy, schema drift handling, and data quality row counts.
The file also sets validation rules for SQL identifiers and principal names, and a retry strategy for transient errors. Rocky generates SQL statements such as CREATE CATALOG and GRANT itself. It is aimed at developers implementing Databricks integration in the rocky-databricks crate. The source describes the API calls in plain REST, with no SDK required.
Written from the project's SKILL.md and checked against it.
What it can do
- SQL statement executionSubmits, polls, and cancels SQL statements through the Databricks SQL Statement Execution REST API.
- AuthenticationExplains PAT and OAuth M2M service principal auth, with token caching and auto-detection logic.
- Unity Catalog catalog isolationShows how to set a catalog's isolation mode to ISOLATED through the Unity Catalog API.
- Workspace bindingsCovers reading and adding or removing workspace bindings for a catalog.
- Incremental copyDescribes full refresh and watermark-based incremental copy SQL generated by Rocky.
- Schema drift detectionDescribes evolving columns on safe type widening and dropping tables on unsafe changes.
- Permission reconciliationCovers inspecting, granting, and revoking catalog and schema privileges for principals.
- Data quality checksShows single and batched row count queries and column introspection SQL.
- Error handling and retriesLists common Databricks errors and a retry strategy with exponential backoff for transient errors.
What you need
- A Databricks workspace host
- A personal access token or OAuth service principal client ID and secret
- A Databricks SQL warehouse
Try asking
- Show me how to submit a SQL statement to a Databricks warehouse
- How do I set up OAuth M2M auth for Databricks in Rocky?
- Write the GRANT and REVOKE SQL for catalog permissions in Unity Catalog
Good to know
- Maximum SQL statement size is 100KB.
- Max concurrent statements per warehouse varies by warehouse size.
- EXTERNAL_LINKS for large results is noted as future work (Arrow Flight).
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: engine/.claude/skills/databricks/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to databricks
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
databricks: common questions
Does the Databricks skill need an SDK?
No. The source says SQL execution is pure REST with no SDK needed.
Which authentication methods does it cover?
It covers PAT auth using DATABRICKS_TOKEN and OAuth M2M using a client ID and secret. It also describes auto-detection between the two.
How does Rocky handle incremental copies?
Rocky reads the prior watermark from its redb state store and inserts it as a literal in the generated SQL. It does not subquery the target table.
How do I install databricks?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is databricks free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is databricks safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to databricks?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
