Skip to main content

analysis-paths

dbt_project.yml
analysis-paths: [directorypath]
Report incorrect code

Definition​

Specify a custom list of directories where analyses are located.

Default​

Without specifying this config, dbt will not compile any .sql files as analyses.

However, the dbt init command populates this value as analyses (source).

Paths specified in analysis-paths must be relative to the location of your dbt_project.yml file. Avoid using absolute paths like /Users/username/project/analyses, as it will lead to unexpected behavior and outcomes.
  • ✅ Do

    • Use relative path:
      analysis-paths: ["analyses"]
      Report incorrect code
  • ❌ Don't

    • Avoid absolute paths:
      analysis-paths: ["/Users/username/project/analyses"]
      Report incorrect code

Examples​

Use a subdirectory named analyses​

This is the value populated by the dbt init command.

dbt_project.yml
analysis-paths: ["analyses"]
Report incorrect code

Use a subdirectory named custom_analyses​

dbt_project.yml
analysis-paths: ["custom_analyses"]
Report incorrect code

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0
Loading