diff --git a/macros/upload_results/upload_results.sql b/macros/upload_results/upload_results.sql index fcadc199..114a667d 100644 --- a/macros/upload_results/upload_results.sql +++ b/macros/upload_results/upload_results.sql @@ -18,8 +18,8 @@ {# Get the results that need to be uploaded #} {% set objects = dbt_artifacts.get_dataset_content(dataset) %} - {# Upload in chunks to reduce query size #} - {% if dataset == 'model' %} + {# Upload in chunks to reduce the query size #} + {% if dataset == 'models' %} {% set upload_limit = 50 if target.type == 'bigquery' else 100 %} {% else %} {% set upload_limit = 300 if target.type == 'bigquery' else 5000 %}