You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The preview feature should send a valid SQL query to my Fabric Synapse datawarehouse, using the ODBC Driver 18 for SQL Server. Running dbt, debugging, testing works as expected in the warehouse.
Actual behavior
The dispatched query is
select * from <table> limit 500
which is not valid T-SQL
Steps To Reproduce
In settings.json I first tried to set the query template:
"dbt.queryTemplate": "select top {limit} * from ({query}) as query"
I realized that the query template is deprecated, and set the field to blank, reinstalled extension, restarted VS Code etc.
Log output/Screenshots
Database Error
('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Incorrect syntax near '500'. (102) (SQLExecDirectW)")
Operating System
Windows 11
dbt version
1.8.7
dbt Adapter
Fabric
dbt Power User version
0.47.0
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Can confirm the same behaviour with dbt-sqlserver and ODBC Driver 17 for SQL Server. This started around Monday. Downgrading to a previous version didn't fix the issue either. Compile works though.
tabit01
changed the title
Query template not working
Query preview not working for ODBC driver
Oct 10, 2024
Expected behavior
The preview feature should send a valid SQL query to my Fabric Synapse datawarehouse, using the ODBC Driver 18 for SQL Server. Running dbt, debugging, testing works as expected in the warehouse.
Actual behavior
The dispatched query is
which is not valid T-SQL
Steps To Reproduce
In settings.json I first tried to set the query template:
I realized that the query template is deprecated, and set the field to blank, reinstalled extension, restarted VS Code etc.
Log output/Screenshots
Operating System
Windows 11
dbt version
1.8.7
dbt Adapter
Fabric
dbt Power User version
0.47.0
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: