【发布时间】:2022-01-03 17:52:48
【问题描述】:
我在我的 dbt(data build tool) 中创建了模型,并在其中指定了列描述。在我的 dbt_project.yml 文件中如下所示
models:
sakila_dbt_project:
# Applies to all files under models/example/
+persist_docs:
relation: true
columns: true
events:
materialized: table
+schema: examples
我已经添加了 +persist_docs,正如 dbt 所描述的那样,作为使列描述出现但仍然没有描述出现在 bigquery 表中的修复。
我的models/events/events.yml 看起来像这样
version: 2
models:
- name: events
description: This table contains clickstream events from the marketing website
columns:
- name: event_id
description: This is a unique identifier for the event
tests:
- unique
- not_null
- name: user-id
quote: true
description: The user who performed the event
tests:
- not_null
我错过了什么?
p.s 我使用的是 dbt 版本 0.21.0
【问题讨论】:
标签: google-bigquery yaml etl dbt