v1.12.0 #788
axellpadilla
started this conversation in
General
v1.12.0
#788
Replies: 1 comment 3 replies
|
One of the serious issues dbt transactions model leaves on sql server is contention when reading the catalog and deadlocks, one of the paths that causes this is delete insert process, does anyone sees a fix to this? using the other model will require more changes on upstream for v2 but I hope there is a solution, like using #temp tables where needed. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dbt-sqlserver v1.12.0
Together with @Benjamin-Knight and @joshmarkovic, we used the releases leading up to
v1.11.0to bring the adapter closer to currentdbt-coreversions while fixing several bugs along the way.The
v1.12.xrelease series formalizes that work and addresses the deprecations and behavior changes required to align the adapter with upcomingdbt-corev2.0 behavior (including support for the v2 parser). Please leave any feedback or insights on the GitHub Discussions page!Review these items before upgrading, as several default settings have changed:
pyodbcis no longer installed by default:You must explicitly install and configure a backend. Use
mssql-pythonfor standard setups or the experimental ADBC backend for future compatibility testing.dbt_sqlserver_use_dbt_transactionsdefaults toTrue:dbt-managed transaction hooks now issue explicit
BEGIN TRANSACTION/COMMIT TRANSACTIONstatements. Failed model executions roll back automatically instead of leaving partial state.Falseindbt_project.ymlto retain legacy autocommit behavior (Deprecated; will be removed in a future release).dbt_sqlserver_use_native_string_typesdefaults toTrue:String type mappings are now:
STRING→VARCHAR(MAX)NCHAR→NCHAR(1)NVARCHAR→NVARCHAR(4000)Falseto preserve legacyVARCHAR(8000)andCHAR(1)mappings (Deprecated; will be removed in a future release).dbt_sqlserver_use_default_schema_concatdefaults toTrue:Custom schemas now concatenate with
target.schema, matching dbt-core's defaultgenerate_schema_namemacro behavior.Falseto retain legacy behavior (Deprecated; will be removed in a future release). Alternatively, overridesqlserver__generate_schema_namefor custom schema handling (#800).Configure with
backend: adbc. Requires installing thedbt-sqlserver[adbc]extra and the ADBC driver via thedbcCLI. Currently supports SQL Server username/password authentication (#771).🛠️ Other Compatibility Changes
sql_headeris deprecated and rejected: Usepre_hookorquery_optionsinstead.adapter.quote(). Review custom macros or downstream packages expecting bracket-style SQL formatting ([schema].[table]).dbt-core >= 1.12.0anddbt-adapters >= 1.24.5.📋 Upgrade Checklist
Before deploying this release to production environments:
mssql-pythonoradbcif relying on implicitpyodbc.VARCHAR(MAX)orNVARCHAR(4000)type shifts.sql_header.What's Changed
deniesconfig so object-level DENY survives a rebuild by @Benjamin-Knight in feat: adddeniesconfig so object-level DENY survives a rebuild #802Full Changelog: v1.11.1...v1.12.0rc3
This discussion was created from the release v1.12.0rc1.
All reactions