Skip to main content

No spaces in resource names

Removed in dbt Core v2

This flag was removed in dbt Core v2 and in Fusion. The new behavior is always enabled. If you're upgrading, remove this flag from your dbt_project.yml.

require_resource_names_without_spacesdbt Latestdbt Core
Introduced2024.051.8.0
Matured (default → true)2025.051.10.0
Removedv2.0
Loading table...

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 dbt Core 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