No spaces in resource names
Removed in v2
This flag was removed in v2. The new behavior is always enabled. If you're upgrading, remove this flag from your dbt_project.yml.
| require_resource_names_without_spaces | dbt v1 Latest | dbt v1 |
|---|---|---|
| Introduced | 2024.05 | 1.8.0 |
Matured (default → true) | 2025.05 | 1.10.0 |
| Removed | — | v2.0 |
dbt raises an error if it detects a space in a resource name. Resource names should contain letters, numbers, and underscores only.
dbt raises the ResourceNamesWithSpacesDeprecation warning if it detects a space in a resource name. When this flag is set to true (now always-on in v2), dbt raises an error instead.
models/model name with spaces.sql
-- This model file should be renamed to model_name_with_underscores.sql
See also require_source_and_semantic_model_names_without_spaces, which extends this behavior to source and semantic model names.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0