Repository navigation
v1.12.3 #925
axellpadilla
started this conversation in
General
v1.12.3
#925
Replies: 0 comments
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.
v1.12.3
Behavior changes
date_truncwithhour,minute,secondormillisecondreturns adatetime2truncated to that unit, as other adapters do. It returned midnight as adate, or failed with an overflow. Run a full refresh of incremental models that store these values, to fix old rows and change the column fromdate.Bugfixes
SQLServerConnectionManager.cancel()falls back to the ADBC cursor'sadbc_cancel()when the cursor exposes nocancel(), so interrupting a run withbackend: adbcnow issues the cancel instead of skipping it. The ADBCmssqldriver 1.8.0 accepts the call without stopping the statement; pyodbc keeps thecursor.cancel()path, mssql-python goes through the statement handle, and cancellation stays best-effort. (#922)pyodbcandmssql-pythonconnection strings, so a name containing;,{or}can no longer add or change connection settings.deniessplitting a principal given as a string, such asdenies={"select": "reporting"}, into one principal per letter, so the DENY never applied. A string is now one principal, as ingrants.moneyorsmallmoneybeing built asdecimal(18,0), which rounded every value to a whole number. They now keep the declared type. An incremental model built with the old type keeps it until a full refresh.SQLServerConnectionManager.cancel()now stops in-flight statements on the mssql-python backend. mssql-python has no publicCursor.cancel()([QUESTION/FEATURE] How to cancel a query? microsoft/mssql-python#424), so the adapter feature-detects the statement handle's SQLCancel binding, which is the cross-thread cancel the driver itself uses. A publiccancel()takes over as soon as the driver ships one.date_truncwithweekreturned the following Monday for a Sunday. It now returns the Monday on or before the date. Incremental models that store weekly values need a full refresh to correct their Sunday rows.Under the hood
sqlserver__generate_surrogate_keyfordbt_utils.generate_surrogate_key. It casts inputs tovarchar(8000)instead ofdbt.type_string()(varchar(max)), so the key expression no longer forces surrounding joins and aggregates into row mode. Hashes are unchanged, sincesqlserver__hashalready hashes only the first 8,000 bytes. Opt in by addingdbtto thedbt_utilsdispatch search order. (#912)%sand%rplaceholders instead of their values.What's Changed
New Contributors
Full Changelog: v1.12.2...v1.12.3
This discussion was created from the release v1.12.3.
All reactions