Tentang
A SQL transformation engine that type-checks your whole pipeline and catches breaking changes before they run — branches, replay, column-level lineage, compile-time contracts, per-model cost. Adapters: Databricks, Snowflake, BigQuery, DuckDB. Single static Rust binary. Apache 2.0.
Data dan analisisPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +3
- dalam 1 bulan
- +5
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
Rocky checks your SQL models before they run, and helps you review a change before it reaches production.
You write SQL and TOML. Rocky finds type, reference and contract errors without a warehouse connection. (A contract states the columns and types a model must have.) Then it runs the SQL on your warehouse. Your data stays there. It works with Databricks, Snowflake, BigQuery, DuckDB and more. Apache 2.0.
Install
macOS or Linux:
curl -fsSL https://raw.githubusercontent.com/rocky-data/rocky/main/engine/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"
rocky --version
Add the export line to your shell profile to keep it.
Windows (PowerShell):
irm https://raw.githubusercontent.com/rocky-data/rocky/main/engine/install.ps1 | iex
rocky --version
Other options, such as a container image or a source build: Installation.
Run your first project
This project runs on local DuckDB. You need no credentials.
rocky playground my-first-project
cd my-first-project
rocky compile
rocky test
rocky run
rocky preview rows --model revenue_summary --limit 5
You get three models, built in dependency order, and five rows of the last one. rocky compile shows three W005 warnings about freshness. They are expected here.
Catch a broken model
Open models/raw_orders.sql. Change the line amount, to amount AS total,. Then compile:
rocky compile
Rocky stops with error E039, before any SQL runs:
error[E039]: column 'amount' does not exist in complete upstream model 'raw_orders'
The model that still reads amount is customer_orders. It is a .rocky file, Rocky's optional language, which compiles to SQL. Undo the edit before you continue. More: the compiler.
Ship a change through a branch
A branch builds your models into a separate schema. You can check the result before production changes.
rocky branch create pr1 # once per branch
rocky run --branch pr1 # builds into schema branch__pr1, runs [[tests]]
rocky branch compare pr1 # compares the branch with production
rocky plan promote pr1 # saves the production change as a plan
The last command prints the rocky apply <plan-id> line that ships the plan. With no edit, the branch matches production. The steps are the same for a real change. By default, rocky plan promote refuses a branch with no run, a failed newest run, or a failing error-severity test (exact rules). The playground declares no tests.
Next: the playground guide, then connect your warehouse.
See your project
In your browser. From a project directory, run:
rocky serve --ui --read-only
Open the address it prints. You see your models and their lineage, recent runs, and changes that wait for approval. Without --read-only, the page on your own machine can also run, approve and apply. See the browser UI guide.
In VS Code. The Rocky extension shows errors as you type, column types on hover, and go-to-definition across models.
What else Rocky does
Find your task, then follow the link.
| You want to | Use | Read more |
|---|---|---|
| See what a change breaks downstream | rocky lineage-diff main, on committed changes |
Lineage diff |
| Test your data | Checks and [[tests]] |
Checks and tests |
| Estimate what a run cost | rocky cost latest |
Administration commands |
| Let AI agents work under rules | rocky mcp and [policy]: allow, require review or deny |
Operating Rocky with agents |
| Declare a data product | rocky product |
Products |
| Have an agent draft a data product, with your approval (experimental) | rocky fulfill |
Fulfill |
| Copy source tables into your warehouse | A replication pipeline. Plain rocky plan previews it; rocky plan promote is the branch form. |
Copy Fivetran tables into Databricks |
| Move from dbt Core | rocky import-dbt |
Migrate from dbt |
| Leave Rocky | rocky emit-sql writes plain SQL |
No lock-in |
Runnable demos: examples/playground/pocs/.
Know the limits
- A clean compile does not prove that every query runs or returns correct values.
- A check that runs after a warehouse write cannot undo that write.
- An AI-written plan needs an approval marker. The marker shows that someone approved on that machine. It does not prove who, and it is not a signature.
- Rocky adds the grants you declare and never revokes one (permissions).
See Who enforces what.
Warehouses
Maturity differs by adapter.
| Status | Adapters |
|---|---|
| Generally available | Databricks, the most complete adapter |
| Supported for local work | DuckDB: the playground and rocky test |
| Beta | Snowflake, BigQuery, Trino, PostgreSQL, Redshift, ClickHouse, SQL Server, Apache Spark |
| Sources (read) | Fivetran, Airbyte, Iceberg REST catalog, a manual table list |
rocky compile needs no warehouse connection. What rocky run supports differs by adapter. For example, Trino and ClickHouse refuse strategy = "merge".
In this repository
engine/ is the rocky CLI (Rust) and the browser UI. Also here: the VS Code extension, the Python SDK, the Dagster integration, examples and deployment files (Docker Compose, Helm). To build from source, run just build. See CONTRIBUTING.md.
Learn more
Jelajahi proyek terkait
Memuat…