Skip to main content

No spaces in source and semantic model names

require_source_and_semantic_model_names_without_spacesdbt Latestdbt Core
Introduced2026.41.12.0
Matured (default → true)
Removed
Loading table...

The require_source_and_semantic_model_names_without_spaces flag is set to false by default.

Source names and semantic model names should contain letters, numbers, and underscores — not spaces. dbt raises the ResourceNamesWithSpacesDeprecation warning if it detects a space in a source name or semantic model name. When the require_source_and_semantic_model_names_without_spaces flag is set to true, dbt raises an error.

This flag extends require_resource_names_without_spaces to cover source and semantic model names specifically.

Was this page helpful?

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

0