- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 DBT 项目,主要由雪花外部 TableView 的模型组成。每个模型 View 均由单独的 dbt run 语句同时触发。
dbt run --models model_for_view_1
我在 dbt 项目中还有另一个模型,它具体化为使用这些 View 的表。我使用与上面相同的 DBT 运行语句在气流中的单独 DAG 中触发此模型。它不使用将其连接到 View 的引用或源语句。
我最近注意到,每当我构建 View 模型时,DBT 就会构建这个表模型。我认为这是因为 DBT 推断这是一个引用模型,但经过一些实验(我什至将表模型 SQL 设置为 SELECT 1+1 as column1 之类的东西),它仍然在构建。我已将它放在 dbt 项目中的不同文件夹中,重命名该文件等。没有乐趣。不知道为什么运行其他模型会导致构建这个不相关的模型。与 View 模型的唯一联系是它们在数据库中共享相同的架构。是什么触发了这个模型的构建?
最佳答案
选择语法可能很挑剔,因为选择模型的方法有很多种。来自 the docs :
The --select flag accepts one or more arguments. Each argument can be one of:
- a package name
- a model name
- a fully-qualified path to a directory of models
- a selection method (path:, tag:, config:, test_type:, test_name:)
(请注意,--models
在 v0.21 中已重命名为 --select
,但 --models
具有相同的行为)
所以我的猜测是,您的 model_for_view_1
名称不是唯一的,并且与您的项目(在本例中充当包)或它所在的目录共享。
因此,如果您的项目如下所示:
models
|- some_name
|- some_name.sql # the view
|- another_name.sql # the table
dbt run --models some_name
将运行 some_name.sql
和 another_name.sql
中的代码,因为它正在选择目录名为some_name
。
关于dbt - 为什么 DBT 运行的模型没有在 DBT 运行语句中明确定位?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72043221/
我在 linux 上工作。我对windows没有太多想法。 windows中文件的权限是如何组织的?我们在unix中是否有像chmod这样的api来更改权限? 最佳答案 对于 Windows,有一个名
应用程序编程接口(interface) (API) 是一组用于访问基于 Web 的软件应用程序的编程指令和标准。 如果出现 ,有人可以向我解释一下吗?谷歌地图 或 优酷 这是API哪个是softwar
我有两个应用程序,A 和 B,它们使用 android 库 C。B 有一个服务 A 想通过 C 使用,例如 在我的库中有一个类试图将它绑定(bind)到服务,
我正在正常或安全模式下启动相机应用程序,具体取决于使用我的应用程序执行的手势,但一旦用户选择应用程序并点击始终,则没有选项可以更改默认值,即使是从 Android 的设置菜单中也是如此. camera
我有一个数据集,本质上是一个稀疏二进制矩阵,表示两个集合的元素之间的关系。例如,让第一组是人(用他们的名字表示),例如像这样的东西: people = set(['john','jane','mike
何为pythonic? pythonic如果翻译成中文的话就是很python。很+名词结构的用法在中国不少,比如:很娘,很国足,很CCTV等等。 我的理解为,很+名词表达了一种特殊和强调的意味。
某些 Prolog 目标的确定性成功问题已经一次又一次地出现在 - 至少 - 以下问题: Reification of term equality/inequality Intersection an
我指的是 DateTime.TryParse(string s, out DateTime result) 重载,它尝试从字符串中解析 DateTime - 没有特定的格式正在指定。 我可以从http
2020 年 04 月 10 日,《中共中央国务院关于构建更加完善的要素市场化配置体制机制的意见》正式公布,将数据确立为五大生产要素(土地、资本、劳动力以及技术)之
有人可以解释一下 NSNotification 的 addObserver 函数中 notificationSender 的用途吗? 这是 Apple 文档的解释: notificationSende
我是一名优秀的程序员,十分优秀!