From 0ea6b37b5b52d81a0f269a1671b3f531482008cd Mon Sep 17 00:00:00 2001 From: Sam Wischnewsky Date: Wed, 31 May 2023 09:15:45 -0700 Subject: [PATCH] Update macros/upload_results.sql Co-authored-by: Jared Rimmer <100997264+jared-rimmer@users.noreply.github.com> --- macros/upload_results.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/upload_results.sql b/macros/upload_results.sql index 50b195f8..dbfb8051 100644 --- a/macros/upload_results.sql +++ b/macros/upload_results.sql @@ -127,7 +127,7 @@ {% do log("Uploading sources", true) %} {% set sources = dbt_artifacts.get_relation('sources') %} {% set sources_set = [] %} - {% for node in graph.nodes.values() | selectattr("resource_type", "equalto", "source") %} + {% for node in graph.sources.values() %} {% do sources_set.append(node) %} {% endfor %} {# upload sources in chunks of 5000 sources (300 for BigQuery), or less #}