Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
There may be a better way to handle this but this eventually worked for me. It's necessary to add quote: true below each field name with a dash. E.g.: tables: - name: my_table ...
Answer
#2: Post edited
There may be a better way to handle this but this eventually worked for me. It's necessary to add `quote: true` below each field name with a dash. E.g.:- ```
- tables:
- - name: my_table
- columns:
- - name: some-field-with-dash
- quote: true
- ```
- I found this answer in the dbt docs here: [quote property](https://docs.getdbt.com/reference/resource-properties/quote) However, if there is any kind of way to set this universally for safety, I'd love to get a different answer.
- There may be a better way to handle this but this eventually worked for me. It's necessary to add `quote: true` below **each** field name with a dash. E.g.:
- ```
- tables:
- - name: my_table
- columns:
- - name: some-field-with-dash
- quote: true
- ```
- I found this answer in the dbt docs here: [quote property](https://docs.getdbt.com/reference/resource-properties/quote) However, if there is any kind of way to set this universally for safety, I'd love to get a different answer.
#1: Initial revision
There may be a better way to handle this but this eventually worked for me. It's necessary to add `quote: true` below each field name with a dash. E.g.: ``` tables: - name: my_table columns: - name: some-field-with-dash quote: true ``` I found this answer in the dbt docs here: [quote property](https://docs.getdbt.com/reference/resource-properties/quote) However, if there is any kind of way to set this universally for safety, I'd love to get a different answer.