File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 144144 {% set all_vars = {} %}
145145 {% set config = elementary .get_runtime_config () %}
146146 {%- if config .vars - %}
147- {% do all_vars .update (elementary .agate_to_dict (config .vars )) %}
147+ {% do all_vars .update (elementary .dbt_object_to_dict (config .vars )) %}
148148 {%- endif - %}
149149 {% do all_vars .update (elementary .get_invocation_vars ()) %}
150150 {{- return(all_vars) - }}
Original file line number Diff line number Diff line change 33 {% set major = major | int %}
44 {% set minor = minor | int %}
55 {% if major < 1 or major == 1 and minor < 8 %}
6- {% do return(elementary .agate_to_dict (run_result)) %}
6+ {% do return(elementary .dbt_object_to_dict (run_result)) %}
77 {% else %}
88 {# There's a bug in dbt 1.8 which causes run_result.to_dict to fail on an exception #}
99 {% set timing_dicts = [] %}
1010 {% if run_result .timing %}
1111 {% for item in run_result .timing %}
12- {% do timing_dicts .append (elementary .agate_to_dict (item)) %}
12+ {% do timing_dicts .append (elementary .dbt_object_to_dict (item)) %}
1313 {% endfor %}
1414 {% endif %}
1515
2020 ' failures' : run_result .failures ,
2121 ' execution_time' : run_result .execution_time ,
2222 ' timing' : timing_dicts,
23- ' node' : elementary .agate_to_dict (run_result .node ) if run_result .node else None,
23+ ' node' : elementary .dbt_object_to_dict (run_result .node ) if run_result .node else None,
2424 ' thread_id' : run_result .thread_id
2525 }) %}
2626 {% endif %}
Original file line number Diff line number Diff line change 1- {% macro agate_to_dict (agate_table) %}
1+ {% macro dbt_object_to_dict (agate_table) %}
22 {% if elementary .is_dbt_fusion () %}
33 {% do return(agate_table) %}
44 {% endif %}
You can’t perform that action at this time.
0 commit comments