Normally, a test query will calculate failures as part of its
execution. If you set the optional store-failures flag or
store_failures config, dbt will first save the results of a test query
to a table in the database, and then query that table to calculate the
number of failures.
This workflow allows you to query and examine failing records much
more quickly in development
我想你可能误解了
store-failures
的作用。 假设有一个id
列mytbl
,我想测试它以确保它是唯一的。如果我调用dbt test -m mytbl store-failures
,我要求dbt创建一个表,其中包含mytbl
的行,其中id
不是唯一的,而不仅仅是将该信息打印到控制台因此,它创建了一个表,其中包括:
yml
文件的名称dbt test
关联的guid李>这样,我就可以在事后查询我的失败,而不必在控制台中滚动查找错误,一次只处理一个问题
The docs关于这方面有很多信息:
这有意义吗
相关问题 更多 >
编程相关推荐