리소스 이름에 공백 금지
리소스 이름에 공백 금지 (No spaces in resource names)
require_resource_names_without_spaces 플래그는 리소스 이름에 공백이 있으면 경고 대신 오류를 발생시켜요. 리소스 이름은 문자, 숫자, 밑줄만 포함해야 해요. 이 플래그는 v2에서 제거됐고 새 동작이 항상 활성화돼요.
출처: 문서
본문
이 플래그는 v2에서 제거됐어요. 새 동작이 항상 활성화돼요. 업그레이드한다면 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는 리소스 이름에 공백이 있는 걸 감지하면 오류를 발생시켜요. 리소스 이름은 문자, 숫자, 밑줄만 포함해야 해요.
dbt는 리소스 이름에 공백이 있으면 ResourceNamesWithSpacesDeprecation 경고를 발생시켜요. 이 플래그를 true로 설정하면(v2에서는 항상 켜짐) dbt는 대신 오류를 발생시켜요.
models/model name with spaces.sql
-- This model file should be renamed to model_name_with_underscores.sql
이 동작을 소스와 시맨틱 모델 이름까지 확장하는 require_source_and_semantic_model_names_without_spaces도 참고하세요.