我有一个dbt_project.yml
赞:
name: rdb
profile: rdb
source-paths: ['models']
version: "0.1"
models:
rdb:
schema: cin
materialized: table
post-hook: 'grant select on {{ this }} to rer'
on-run-end:
# TODO: fix
- 'grant usage on schema "{{ target.schema }}" to rer'
DBT 工作得非常好。但是随着on-run-end
条目,它失败了Compilation Error 'target' is undefined
。注释掉该行后,它可以正常工作。
我犯了一个基本的错误吗?谢谢!