CtrlK
BlogDocsLog inGet started
Tessl Logo

dbt-labs/dbt-agent-skills

A curated collection of Agent Skills for working with dbt, to help AI agents understand and execute dbt workflows more effectively.

65

Quality

82%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Risky

Do not use without reviewing

Overview
Quality
Evals
Security
Files

dynamic_sql.mdskills/migrating-dbt-core-to-fusion/references/

Limitations of Dynamic SQL

PROBLEM

Some SQL patterns that work in legacy dbt may not be supported by Fusion's static analysis, such as:

PIVOT(...) FOR column_name IN (ANY)

SOLUTION

The first option is always preferred and should be attempted first, if possible.

option 1: refactor

refactor away any instances of PIVOT(...) FOR column_name IN (ANY) to have hard-coded values.

option 2: disable static analysis

For models with unsupported dynamic SQL:

  1. Add static_analysis = 'off' to the model config:
{{
    config(
        materialized = 'table',
        meta = {
            'static_analysis': 'off'
        }
    )
}}
  1. Or disable static analysis globally for the model in dbt_project.yml

CONTRIBUTING.md

README.md

tile.json