170170 run__dw_dbc_configs : " {{ run__dw_dbc_configs | default([]) | union([config]) }}"
171171 vars :
172172 include : " {{ lookup('template', __dw_config.include | default('experiences_config_placeholder.j2')) | from_yaml }}"
173- use_default_dbc : " {{ True if __dw_config.name is not defined else False | bool }}"
174173 config :
175174 name : " {{ __dw_config.name | default('') }}"
176175 load_demo_data : " {{ __dw_config.load_demo_data | default(False) | bool }}"
177- use_default_dbc : " {{ use_default_dbc }}"
176+ use_default_dbc : " {{ __dw_config.name is undefined | bool }}"
178177 virtual_warehouses : " {{ __dw_config.virtual_warehouses | default([]) }}"
179178 loop : " {{ run__dw_definitions }}"
180179 loop_control :
186185 run__dw_vw_configs : " {{ run__dw_vw_configs | default([]) | union([config]) }}"
187186 vars :
188187 config :
189- name : " {{ item .1.name | default([run__namespace, run__dw_vw_suffix ,__dw_dbc_index] | join('-')) }}"
190- dbc_name : " {{ item .0.name }}"
191- use_default_dbc : " {{ item .0.use_default_dbc }}"
192- type : " {{ item .1.type | default('hive' ) }}"
193- template : " {{ item .1.template | default('xsmall' ) }}"
194- autoscaling_min_nodes : " {{ item .1.autoscaling.min_nodes | default(None) }}"
195- autoscaling_max_nodes : " {{ item .1.autoscaling.max_nodes | default(None) }}"
196- common_configs : " {{ item .1.configs.common_configs | default({}) }}"
197- application_configs : " {{ item .1.configs.application_configs | default({}) }}"
198- ldap_groups : " {{ item .1.configs.ldap_groups | default(None) }}"
199- enable_sso : " {{ item .1.configs.enable_sso | default(None) }}"
200- tags : " {{ item .1.tags | default({}) | combine(run__dw_tags) }}"
188+ name : " {{ __dw_config .1.name | default([run__namespace, run__dw_vw_suffix ,__dw_dbc_index] | join('-')) }}"
189+ dbc_name : " {{ __dw_config .0.name }}"
190+ use_default_dbc : " {{ __dw_config .0.use_default_dbc }}"
191+ type : " {{ __dw_config .1.type | default(run__dw_default_vw_type ) }}"
192+ template : " {{ __dw_config .1.template | default(run__dw_default_template_type ) }}"
193+ autoscaling_min_nodes : " {{ __dw_config .1.autoscaling.min_nodes | default(None) }}"
194+ autoscaling_max_nodes : " {{ __dw_config .1.autoscaling.max_nodes | default(None) }}"
195+ common_configs : " {{ __dw_config .1.configs.common_configs | default({}) }}"
196+ application_configs : " {{ __dw_config .1.configs.application_configs | default({}) }}"
197+ ldap_groups : " {{ __dw_config .1.configs.ldap_groups | default(None) }}"
198+ enable_sso : " {{ __dw_config .1.configs.enable_sso | default(None) }}"
199+ tags : " {{ __dw_config .1.tags | default({}) | combine(run__dw_tags) }}"
201200 loop : " {{ run__dw_dbc_configs | subelements('virtual_warehouses')}}"
202201 loop_control :
202+ loop_var : __dw_config
203203 index_var : __dw_dbc_index
204- label : " {{ item .0.name }}"
204+ label : " {{ __dw_config .0.name }}"
0 commit comments