Closed jeremyyeo closed 2 months ago
Addressed in #201 PR
Please release a version that includes this fix as soon as possible.
This issue causes the fantastic "Power user for dbt" VSCode extension to not work properly with fabric which is very unfortunate.
@prdpsvs please estimate a release date for this fix. It is a really confounding error to come across.
With dbt 1.8+, the macro name we have here
get_limit_subquery_sql
:https://github.com/microsoft/dbt-fabric/blob/d4f99e79c3083d8584c228ce3136285c18da77de/dbt/include/fabric/macros/adapters/show.sql#L1-L14
No longer apply - that macro has been renamed to
get_limit_sql
:https://github.com/dbt-labs/dbt-adapters/blob/main/dbt/include/global_project/macros/adapters/show.sql#L21-L26
Therefor, users doing
dbt show
with 1.8+ will run into the syntax error:^ You can see from the SQL statement - we basically used the SQL from dbt-adapters.
Workaround
The workaround is to simply add this macro to your project: