Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CT-3564] for deprecation - we should not support spaces in model names #9397

Closed
1 task done
graciegoheen opened this issue Jan 17, 2024 · 4 comments · Fixed by #9886
Closed
1 task done

[CT-3564] for deprecation - we should not support spaces in model names #9397

graciegoheen opened this issue Jan 17, 2024 · 4 comments · Fixed by #9886
Assignees
Labels
enhancement New feature or request Impact: Adapters Impact: Exp user docs [docs.getdbt.com] Needs better documentation
Milestone

Comments

@graciegoheen
Copy link
Contributor

graciegoheen commented Jan 17, 2024

Housekeeping

  • I am a maintainer of dbt-core

Short description

Spaces in model names was only ever supported incidentally & by accident. It’s never been documented.

  • Having a space in a model name makes in impossible to select via --select on the model name because the argument gets split into pieces over spaces very early in the pipeline.
  • Most warehouses will not like a table, or other object, with a space in its name.
  • We may have to support table/view names with spaces for completeness on some platforms, but I we shouldn't support them in dbt's internal identifiers.

Acceptance criteria

We should mark spaces in model names:

  • for deprecation (raise warning) in v1.8
  • fully remove support in v1.9 (raise error)

Suggested Tests

  1. test model name with space returns a warning in v1.8, error in v1.9

Impact to Other Teams

Impact: Exp and Adapters

Will backports be required?

No

Context

Impacting IDE team and file system.
How many customers are experiencing this warning?

@graciegoheen graciegoheen added user docs [docs.getdbt.com] Needs better documentation Impact: Exp labels Jan 17, 2024
@graciegoheen graciegoheen added this to the v1.8 milestone Jan 17, 2024
@github-actions github-actions bot changed the title we should not support spaces in model names [CT-3564] we should not support spaces in model names Jan 17, 2024
@martynydbt martynydbt added the enhancement New feature or request label Mar 11, 2024
@MichelleArk
Copy link
Contributor

Notes from refinement:

@QMalcolm
Copy link
Contributor

QMalcolm commented Mar 29, 2024

@graciegoheen can, we create a separate ticket for the 1.9 to flip the flag?

@graciegoheen
Copy link
Contributor Author

graciegoheen commented Mar 29, 2024

@QMalcolm Yep that's totally fine! We can add it to the 1.9 milestone

#9834

@graciegoheen graciegoheen changed the title [CT-3564] we should not support spaces in model names [CT-3564] for deprecation - we should not support spaces in model names Mar 29, 2024
@FishtownBuildBot
Copy link
Collaborator

Opened a new issue in dbt-labs/docs.getdbt.com: dbt-labs/docs.getdbt.com#5275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Impact: Adapters Impact: Exp user docs [docs.getdbt.com] Needs better documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants