You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}
{% set batch_size = calc_batch_size(cols_sql|length, max_batch_size) %}
Hi!
I've noticed that in the above cols_sql|length is not actually returning the number of columns. I'm not entirely sure what number is returning, but it is a far larger number, therefore, causing seeds to insert one row at a time for a 55 column csv. When I overwrite "cols_sql|length" with a hardcoded 55 in the source code, the optimal number of rows per binding appears to be inserted within the 2100 parameter limitation. Fortunately, the fix is simple and I'll submit a PR for review.
Thanks!
The text was updated successfully, but these errors were encountered:
rlshuhart
added a commit
to rlshuhart/dbt-sqlserver
that referenced
this issue
Feb 25, 2022
dbt-sqlserver/dbt/include/sqlserver/macros/materializations/seeds/helpers.sql
Lines 62 to 63 in 3d202ea
Hi!
I've noticed that in the above
cols_sql|length
is not actually returning the number of columns. I'm not entirely sure what number is returning, but it is a far larger number, therefore, causing seeds to insert one row at a time for a 55 column csv. When I overwrite "cols_sql|length" with a hardcoded 55 in the source code, the optimal number of rows per binding appears to be inserted within the 2100 parameter limitation. Fortunately, the fix is simple and I'll submit a PR for review.Thanks!
The text was updated successfully, but these errors were encountered: