Skip to main content

osi-paths

💡Did you know...
Available from dbt v1.12 or with the dbt "Latest" release track.
dbt_project.yml
osi-paths: [directorypath]

Definition

Optionally specify a custom list of directories where Open Semantic Interchange (OSI) semantic layer documents are located.

Default

By default, dbt will search for OSI documents in the OSI directory, for example, osi-paths: ["OSI"].

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

    • Use relative path:
      osi-paths: ["OSI"]
  • Don't:

    • Avoid absolute paths:
      osi-paths: ["/Users/username/project/OSI"]

Examples

Use a subdirectory named semantic_interchange instead of OSI:

dbt_project.yml
osi-paths: ["semantic_interchange"]

Use multiple directories to organize your OSI documents:

dbt_project.yml
osi-paths: ["OSI", "external_osi"]

Was this page helpful?

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

0
Loading