v1.2.0b2
Pre-releasePossibly breaking change: connection encryption
For compatibility with MS ODBC Driver 18, the settings Encrypt
and TrustServerCertificate
are now always added to the connection string.
These are configured with the keys encrypt
and trust_cert
in your profile.
In previous versions, these settings were only added if they were set to True
.
The new version of the MS ODBC Driver sets Encrypt
to True
by default.
The adapter is following this change and also defaults to True
for Encrypt
.
The default value for TrustServerConnection
remains False
as it would be a security risk otherwise.
This means that connections made with this version of the adapter will now have Encrypt=Yes
and TrustServerCertificate=No
set if you are using the default settings.
You should change the settings encrypt
or trust_cert
to accommodate for your use case.
This behaviour might still change in the final release of 1.2.0 based on feedback gathered during the beta phase.
Features
- Support for dbt-core 1.2
- Support for MS ODBC Driver 18
- Support automatic retries with new
retries
setting introduced in core - The correct owner of a table/view is now visible in generated documentation (and in catalog.json)
- A lot of features of dbt-utils & T-SQL utils are now available out-of-the-box in dbt-core and this adapter. A new release of T-SQL utils will follow.
- Support for all
type_*
macros - Support for all cross-database macros, except:
bool_or
listagg
will only work in SQL Server 2017 or newer or the cloud versions. Thelimit_num
option is unsupported.DISTINCT
cannot be used in the measure.
- Support for all
Fixes
- In some cases the
TIMESTAMP
would be used as data type instead ofDATETIMEOFFSET
, fixed that
Chores
- Update adapter testing framework to 1.2.1
- Update pre-commit, tox, pytest and pre-commit hooks
- Type hinting in connection class
- Automated testing with SQL Server 2017, 2019 and 2022
- Automated testing with MS ODBC 17 and MS ODBC 18
Outstanding work for official release
- Add documentation about new features to official dbt docs pages