dbt_date.get_date_dimension macro not working with SQL Server. Tested with latest package versions (as of posting) and versions matching the dbt_datepinned commit from the tsql-utils repo.
('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'with'. (156) (SQLMoreResults); [42000] [Microsoft][ODBC Driver 17 for SQL Server]
[SQL Server]Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be termina
ted with a semicolon. (319); [42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near ')'. (102)")
SQL Server version
Microsoft SQL Server 2019 (RTM-GDR) (KB5029377) - 15.0.2104.1 (X64)
Aug 16 2023 00:09:21
Copyright (C) 2019 Microsoft Corporation
Developer Edition (64-bit) on Windows Server 2019 Datacenter 10.0 <X64> (Build 17763: ) (Hypervisor)
dbt_date.get_date_dimension
macro not working with SQL Server. Tested with latest package versions (as of posting) and versions matching thedbt_date
pinned commit from thetsql-utils
repo.dbt model
Error message
SQL Server version
dbt_project.yml
dispatch configurationIntended
packages.yml
packages.yml
testingdbt_date
pinned commit