Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

dbt-projects-on-snowflake

БесплатноЗапускает вложенные скриптыНе проверен

Deploying, managing, executing, and monitoring dbt projects natively within Snowflake using dbt PROJECT objects and event tables. Use this skill when you want…

sfc-gh-dflippoот sfc-gh-dflippo★ 35 звёзд на GitHub14 установок в других каталогах

Об этом скилле

dbt Projects on Snowflake

Deploy, manage, and monitor dbt projects natively within Snowflake using web-based workspaces, schema-level DBT PROJECT objects, and comprehensive event table telemetry.

Quick Start

Three Ways to Use dbt Projects:

  1. Snowsight Workspaces - Web-based IDE for interactive development
  2. DBT PROJECT Objects - Deployed projects for production execution
  3. Snowflake CLI - Command-line deployment and execution

Setup

Complete setup instructions including prerequisites, external access integration, Git API integration, and event table configuration are in references/SETUP.md.

Deployment Methods

Method 1: Snowflake CLI (Recommended)

# Deploy project
snow dbt deploy my_project --source .

# Execute commands
snow dbt execute my_project run
snow dbt execute my_project build

Method 2: Snowsight

  • Navigate to Projects → My Workspace
  • Create new project from Git repository
  • Configure profiles.yml
  • Deploy as DBT PROJECT object

Method 3: SQL Execution

Execute directly in SQL:

EXECUTE DBT PROJECT <db>.<schema>.<project> args='build';
EXECUTE DBT PROJECT <db>.<schema>.<project> args='build --full-refresh';
EXECUTE DBT PROJECT <db>.<schema>.<project> args='build --select tag:gold';

Check and pin supported dbt versions

Run this to see the live list of versions currently available in the Snowflake managed runtime:

-- List the dbt versions supported by dbt Projects on Snowflake (Fusion + Core)
SELECT SYSTEM$SUPPORTED_DBT_VERSIONS();

SYSTEM$SUPPORTED_DBT_VERSIONS() returns each supported version along with its engine type. Use this instead of relying on a hardcoded number — preview builds advance frequently.

The DBT_VERSION attribute implicitly selects the engine:

  • < 2.0 (e.g. 1.11.11) → dbt Core (Python engine)
  • ≥ 2.0 (e.g. 2.0.0-preview.186) → dbt Fusion (Rust engine)
-- Set an account-wide default (a DBT_VERSION >= 2.0 selects the dbt Fusion engine)
ALTER ACCOUNT SET DEFAULT_DBT_VERSION = '2.0.0-preview.186';

-- Pin a project to a specific version at creation
CREATE OR REPLACE DBT PROJECT my_dbt_project
  FROM '@my_stage/dbt_files'
  DBT_VERSION = '2.0.0-preview.186';

-- Change an existing project's version
ALTER DBT PROJECT my_dbt_project SET DBT_VERSION = '2.0.0-preview.186';

Per-execution override (without changing the project definition):

EXECUTE DBT PROJECT my_db.my_schema.my_dbt_project
  DBT_VERSION = '2.0.0-preview.186'
  args='build';

Snowflake keeps versions supported even after dbt Labs deprecates them, so you are not forced into immediate upgrades.

Scheduling & Automation

For automated scheduling with Snowflake Tasks, see the "Optional: Schedule Automated Runs" section in references/SETUP.md.

Event Table Monitoring

Event Table Configuration

Configure event tables following the Event Table Monitoring Configuration section in references/SETUP.md. This enables OpenTelemetry-based monitoring of dbt project executions.

Monitoring Queries

All monitoring scripts use parameterized event table references. Specify your event table location when running:

# Example: Query recent executions
snow sql -f scripts/recent_executions.sql --enable-templating JINJA \
  -D event_table=MY_DATABASE.MY_SCHEMA.EVENT_LOG

# Example: Check for errors
snow sql -f scripts/execution_errors.sql --enable-templating JINJA \
  -D event_table=LOGS_DB.PUBLIC.DBT_EVENTS

# Example: Performance metrics
snow sql -f scripts/performance_metrics.sql --enable-templating JINJA \
  -D event_table=MY_DATABASE.MY_SCHEMA.EVENT_LOG

Core Monitoring:

  • recent_executions.sql - Lists recent dbt project executions with severity
  • execution_errors.sql - Query ERROR logs to identify failures
  • performance_metrics.sql - Query CPU and memory usage metrics
  • trace_spans.sql - Query execution spans for timing analysis
  • execution_summary.sql - Summarize executions by project with error counts

Advanced Use Cases:

  • alert_failures.sql - Alert trigger for execution failures (returns error count)
  • performance_regression.sql - Week-over-week performance comparison
  • resource_usage.sql - CPU and memory consumption by project
  • audit_trail.sql - Complete execution audit trail for compliance

Event Table Structure

Event tables follow the OpenTelemetry data model with these key columns:

Column Description
TIMESTAMP UTC timestamp when event was created (end of time span for span events)
START_TIMESTAMP For span events, the start of the time span
TRACE Tracing context with trace_id and span_id
Полный SKILL.md на GitHub

Установить dbt-projects-on-snowflake в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/alert_failures.sqlscripts/audit_trail.sqlscripts/execution_errors.sqlscripts/execution_summary.sqlscripts/performance_metrics.sqlscripts/performance_regression.sqlscripts/recent_executions.sqlscripts/resource_usage.sqlscripts/trace_spans.sql

FAQ

Что делает скилл dbt-projects-on-snowflake?

Deploying, managing, executing, and monitoring dbt projects natively within Snowflake using dbt PROJECT objects and event tables. Use this skill when you want to set up dbt development workspaces, deploy projects to Snowflake, schedule automated runs, monitor execution with event tables, or enable team collaboration directly in Snowflake.

Как установить скилл dbt-projects-on-snowflake?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dbt-projects-on-snowflake запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить dbt-projects-on-snowflake с