Open guaripete-github opened 1 month ago
Hi.
This is likely related to the fact that AutomateDV does not yet support SQL server for dbt 1.8, as stated in our latest release notes and our dbt Compatibility page.
It is to be expected that there will be unpredictable behaviour due to this.
I will leave this issue open until we have upgraded to the latest SQL Server dbt adapter in the next AutomateDV release. Thanks for your patience.
Describe the bug Executing
dbt run --empty
on a model with stage macro with a source relation as source_model fails. Model runs successfully if--empty
is not invocated.Environment
dbt version: 1.8.6 automate_dv version: 0.11.0 Database/Platform: sqlserver 1.8.4
Expected behavior The model to run.
Additional context
Issue seems to be related to
in https://github.com/dbt-msft/dbt-sqlserver/blob/ec30afe13b3bd487535f5342ef3be79d06c63edc/dbt/adapters/sqlserver/sqlserver_relation.py#L33
effectively replacing
source()
to return a sub-query instead of the expected relation object and breaking subsequent logicsuggested change
AB#5620