Skip to content

Commit

Permalink
chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
haritamar committed Nov 5, 2024
1 parent 99cf24d commit a91feb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion macros/edr/system/system_utils/get_config_var.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
'long_string_size': 65535,
'collect_model_sql': true,
'query_max_size': 1000000,
'insert_rows_method': 'max_query_size',
'insert_rows_method': 'chunk',
'upload_artifacts_method': 'diff',
'project_name': none,
'elementary_full_refresh': false,
Expand Down
2 changes: 1 addition & 1 deletion macros/utils/list_utils/split_list_to_chunks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% set current_length = 0 %}
{% endif %}
{% do current_chunk.append(item) %}
{% do current_length + item | length %}
{% set current_length = current_length + item | length %}
{% endfor %}
{% if current_chunk %}
{% do chunks.append(current_chunk) %}
Expand Down

0 comments on commit a91feb8

Please sign in to comment.