【发布时间】:2021-09-05 05:51:01
【问题描述】:
我在models文件夹下的sources.yml文件下写了曝光
exposures:
- name: data_sources
description: '{{ doc("orders_status") }}'
type: dashboard
url: urlname
owner:
name: name
email: mailid
我在models文件夹下也有docs.md
{% docs orders_status %}
Orders can be one of the following statuses:
| status | description |
|----------------|---------------------------------------------------------------------------|
| placed | The order has been placed but has not yet left the warehouse |
| shipped | The order has ben shipped to the customer and is currently in transit |
| completed | The order has been received by the customer |
| returned | The order has been returned by the customer and received at the warehouse |
{% enddocs %}
当我执行 dbt 文档生成时,我得到了
Encountered an error:
Compilation Error
Failed to render models\sources.yml from project cemd_transformations: Compilation Error
Could not render {{ doc("orders_status") }}: 'doc' is undefined
还有什么我应该包括的东西才能让它工作吗?
【问题讨论】:
标签: dbt