Skip to content

Commit

Permalink
Merge pull request #411 from rtkfan/fix-upload_results-typo
Browse files Browse the repository at this point in the history
Fix: typo in upload_results to determine batch size
  • Loading branch information
jared-rimmer authored Jan 25, 2024
2 parents 4220a9c + d71c39f commit 486c5f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/upload_results/upload_results.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 486c5f6

Please sign in to comment.