Closed frco9 closed 1 year ago
@frco9 Try:
dbt --quiet list --resource-types model --output json --output-keys name columns # whatever else you want
{"name": "my_model", "columns": {"id": {"name": "id", "description": "This is my id column", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}}
(This is mentioned in the docs, though only briefly)
It works Thanks ! I thought it would only apply to keys already shown, but indeed it is not !
Is this a new bug in dbt-core?
Current Behavior
I have define a model with columns and an enforced contract. When using
dbt --quiet list --resource-types model --output json
it outputs models definition without its columnsExpected Behavior
When using the list and has columns were defined, I was expecting to get the columns definition.
Steps To Reproduce
Given this model config :
Then run the following command :
dbt --quiet list --resource-types model --output json
Relevant log output
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
athena: 1.5.1