Complete the code to specify the directory for models in the dbt project configuration.
models: [1]: # directory name +materialized: view
The staging directory is commonly used to organize raw source data models in dbt.
Complete the code to define a subdirectory for customer models inside the models directory.
models:
[1]:
+materialized: tableThe customers subdirectory organizes models related to customer data.
Fix the error in the dbt project configuration to correctly organize models in the 'analytics' directory.
models:
analytics:
+materialized: [1]The table materialization creates persistent tables, suitable for analytics models.
Fill both blanks to configure the 'finance' directory with incremental models and the 'marketing' directory with views.
models:
finance:
+materialized: [1]
marketing:
+materialized: [2]Finance models often use incremental materialization for efficiency. Marketing models commonly use view materialization for flexibility.
Fill all three blanks to create a dictionary comprehension that maps model names to their materializations, filtering only models with materialization 'table'.
model_materializations = {model: config[1] for model, config in models_config.items() if config[1][2] 'table' and model[3]('sales')}This comprehension extracts the 'materialized' value from each config, filters for models materialized as 'table', and only includes models whose names start with 'sales'.