什么是数据'在DBT测试命令中的含义?

发布于 2025-02-02 19:31:49 字数 464 浏览 3 评论 0原文

我们的一些自动化管道长期以来一直使用以下 dbt测试命令。

dbt测试-target target_name - 数据 -M test_file_name -vars-Vars“ {'branch':'branch_name','execdate':'2020/01/01'}“ - -no-version-check

它没有麻烦,直到DBT版本从0.17.0升级到1.0.0。

现在,遇到错误

dbt:错误:未识别的参数:-data

我现在可以从dbt命令中删除- 数据,但我很好奇地知道为什么人们在管道中添加了dbt命令中的data - data开发很久以来,在DBT命令中正在做什么?

有什么帮助吗?

A few of our automated pipelines have been using the below dbt test command for a long time.

dbt test --target target_name --data --m test_file_name --vars "{'branch':'branch_name','execdate':'2020/01/01'}" --no-version-check

It worked without trouble until the dbt version was upgraded from 0.17.0 to 1.0.0.

Now, getting an error as,

dbt: error: unrecognized arguments: --data

I can remove the --data from the dbt command now but I am curious to know why the people have added --data in the dbt command during the pipeline development long back and what it is doing in the dbt command?

Any help, please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

二货你真萌 2025-02-09 19:31:49

该部分描述为:测试选择示例:

通过直接和间接选择的结合,有许多方法可以完成相同的结果。假设我们有一个数据测试,名为assert_total_payment_amount_is_positive,该数据取决于名为付款的模型。以下所有操作都将设法选择和执行该测试:

$ DBT测试-Select assert_total_payment_amount_is_positive#直接按名称

选择测试

$ dbt测试 - 选择付款, test_type:数据#间接选择,v0.18.0

$ dbt测试 - 选择付款 - 数据#间接选择,早期版本

语法- 数据在版本中支持低于V.0.18.0的版本。

This part is described: Test selection examples:

Through the combination of direct and indirect selection, there are many ways to accomplish the same outcome. Let's say we have a data test named assert_total_payment_amount_is_positive that depends on a model named payments. All of the following would manage to select and execute that test specifically:

$ dbt test --select assert_total_payment_amount_is_positive # directly select the test by name

$ dbt test --select payments,test_type:data # indirect selection, v0.18.0

$ dbt test --select payments --data # indirect selection, earlier versions

Syntax --data was supported in version lower than v.0.18.0.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文