DBT - [警告]:未找到补丁的匹配节点

fmb*_*ney 7 dbt

当我使用dbt run时,我不断收到以下错误- 我在 dbt 文档中找不到任何有关发生此错误的原因或如何修复它的信息。

[WARNING]: Did not find matching node for patch with name 'vGenericView' in the 'models' section of file 'models\generic_schema\schema.sql'
Run Code Online (Sandbox Code Playgroud)

And*_*son 9

您最近是否偶然升级到 dbt 1.0.0?如果是这样,这意味着您有一个vGenericView在 a 中定义的模型,schema.yml但没有vGenericView.sql与其对应的模型文件。


San*_*ord 5

因此,错误在于命名:文件

中的模型名称models.yml应为:employees
并且 sql 文件应命名为: employees.sql

所以你的models.yml意志看起来像:

version: 2

models:
  - name: employees
    description: "View of employees"
Run Code Online (Sandbox Code Playgroud)

并且必须有一个文件名的模型:employees.sql