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

dbt should provide a way to signify that a field is a string at the yaml level #2531

Closed
beckjake opened this issue Jun 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@beckjake
Copy link
Contributor

Describe the feature

Currently, in config files in dbt that are rendered in the native environment, we provide an as_text filter that dbt uses to identify a value that should not be converted to the native env rendering. We should provide a similar feature at the yaml level, so users can mark fields (perhaps even recursively?) as being "really strings" to either be rendered in the non-native jinja renderer or not rendered at all.

The big issue is that it's pretty tedious to mark all the relevant fields as text right now if you have a lot of them.

Describe alternatives you've considered

Users can use "{{ 00 | as_text }}" instead of "00" anywhere. "'00'" should work too in most cases.

Additional context

Any/All dbs

Who will this benefit?

dbt users who configure a lot of numeric-looking strings.

@jtcohen6
Copy link
Contributor

jtcohen6 commented Jul 7, 2020

Closing in favor of #2612

@jtcohen6 jtcohen6 closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants