dbt - YAML 文件中的 +/- 是什么?

mon*_*mon 5 yaml dbt

在 DBT YAML 文件(例如 dbt_project.yml)中,元素是什么+或符号是什么?-

models:
  # Be sure to namespace your model configs to your project name
  dbt_labs:

    # This configures models found in models/events/
    events:
      +enabled: true            # <--- What is the meaning of +?
      +materialized: view       # <--- What is the meaning of +?

      # This configures models found in models/events/base
      # These models will be ephemeral, as the config above is overridden
      base:
        +materialized: ephemeral       # <--- What is the meaning of +?
Run Code Online (Sandbox Code Playgroud)

pau*_*sm4 3

“-”是标准 YAML 语法,表示“列表”项:docs.ansible.com > YAML Basisc

“+”是 DBT 特有的,表示一个子类别,如“+indexes”、“+tags”。这只是 DBT 约定。docs.getdbt.com > Materialize 配置