Loading...
Loading...
dbt Expert Engineer Skill - Comprehensive guide for dbt development best practices, command execution, and environment configuration Use when: - Running dbt commands (debug, compile, run, test, show) - Setting up Issue-specific targets in profiles.yml - Working with Databricks SQL dialect in dbt
npx skill4agent add i9wa4/dotfiles dbt--profiles-dir ~/.dbt --no-use-colorsdbt debug --profiles-dir ~/.dbt --no-use-colorsdbt show# Basic query execution
dbt show --inline "select 1 as test, current_timestamp() as now" --profiles-dir ~/.dbt --no-use-colors
# Specify row limit (default is 5)
dbt show --inline "select * from table_name" --limit 10 --profiles-dir ~/.dbt --no-use-colors
# Reference dbt models
dbt show --inline "select * from {{ ref('model_name') }}" --profiles-dir ~/.dbt --no-use-colors
# Direct reference using catalog.schema.table format
dbt show --inline "select * from catalog_name.schema_name.table_name" --limit 3 --profiles-dir ~/.dbt --no-use-colors--limitdbt rundbt compile --profiles-dir ~/.dbt --no-use-colorstarget/compiled/bq querydatabricksdbt rundbt run --select +model_name --profiles-dir ~/.dbt --no-use-colorsdbt test --select +model_name --profiles-dir ~/.dbt --no-use-colors--select--select "staging.target,tag:tag_name"dbt run~/.dbt/profiles.ymldevmy_databricks_dbt:
outputs:
dev:
# Existing settings...
issue_123: # Name based on issue number
catalog: dbt_dev_{username} # Same as dev
host: dbc-xxxxx.cloud.databricks.com # Same as dev
http_path: /sql/1.0/warehouses/xxxxx # Same as dev
schema: dwh_issue_123 # Include issue number in schema name
threads: 1
token: dapixxxxx # Same as dev
type: databricks
target: dev--target# Execute with issue_123 target
dbt run --select +model_name --target issue_123 --profiles-dir ~/.dbt --no-use-colors
# Verify connection
dbt debug --target issue_123 --profiles-dir ~/.dbt --no-use-colors{schema}_dbt_intermediates-- Reference catalog name with hyphen
select * from `catalog-name`.schema_name.table_name;
-- Reference full-width column name
select `full-width column` from table_name;[Documentation-based response]
Source: [source_url]
Fetched: [fetched_at]