-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL Server error 8003 "too many parameters" on large seed with dbt-sqlserver >= 1.4.1 #407
Comments
Looks like this new version it's not respecting this doc https://docs.getdbt.com/reference/resource-configs/mssql-configs, related to set manually a max_batch_size (sorry if I missed some step here). |
Thank you for pointing out the batch size config! |
Sorry to come back so late, we tested overwriting the macro and it indeed worked, thank you ! I think it would still require a systematic solution to avoid this workaround. |
There are two issues here:
Calculated maximum number of parameters I'll create a PR shortly. |
From
dbt-sqlserver
>= 1.4.1, when running one of our big seed, we're getting the SQL Server 2016 error 8003:Would there be a query generated by DBT with a very large
where
condition?The failing seed is 2.2 MB, 10 columns x 17k rows, including 3 large columns around
varchar(250)
.We have another smaller, but still big, seed that woks just fine with 1.4 MB, 5 columns x 24k rows.
Here's the file slightly anonymized to reproduce the error: big_seed.csv
For now, we're stuck with
dbt-sqlserver
==1.3.2 because 1.4.0 has issues with indexes and deadlocks, and versions above have the issue described above with the seed.Despite this issue, it's been a great experience working with
dbt-sqlserver
, thanks for your work!The text was updated successfully, but these errors were encountered: