yml table 雪花中的具体化不起作用
yml table materialization in snowflake not working
我正在学习基础课程。在 yml 的模型部分,我指定了 +materialized: table 指令,但 dim_customers 仍然作为雪花中的视图创建。
但是如果我将配置块放在 sql 块的顶部,它就可以正常工作。
你有什么建议吗?
yml
name: 'jaffle_shop'
version: '1.0.0'
config-version: 2
profile: 'default'
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_packages"
models:
jaffle:
marts:
core:
+materialized: table
staging:
+materialized: view
项目结构
您需要将项目名称添加到 dbt_project.yml 中的 models:
配置中:
models:
jaffle_shop:
jaffle:
marts:
core:
+materialized: table
staging:
+materialized: view
我正在学习基础课程。在 yml 的模型部分,我指定了 +materialized: table 指令,但 dim_customers 仍然作为雪花中的视图创建。
但是如果我将配置块放在 sql 块的顶部,它就可以正常工作。
你有什么建议吗?
yml
name: 'jaffle_shop'
version: '1.0.0'
config-version: 2
profile: 'default'
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_packages"
models:
jaffle:
marts:
core:
+materialized: table
staging:
+materialized: view
项目结构
您需要将项目名称添加到 dbt_project.yml 中的 models:
配置中:
models:
jaffle_shop:
jaffle:
marts:
core:
+materialized: table
staging:
+materialized: view