Skip to content

Commit dc2a9ff

Browse files
committed
agate_to_dict -> dbt_object_to_dict
1 parent 271e601 commit dc2a9ff

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

macros/edr/dbt_artifacts/upload_dbt_invocation.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
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) -}}

macros/utils/graph/get_run_result_dict.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
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

@@ -20,7 +20,7 @@
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 %}

macros/utils/run_queries/agate_to_dict.sql renamed to macros/utils/run_queries/dbt_object_to_dict.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 %}

0 commit comments

Comments
 (0)