AltimateAI / vscode-dbt-power-user

This extension makes vscode seamlessly work with dbt™: Auto-complete, preview, column lineage, AI docs generation, health checks, cost estimation etc
https://www.altimate.ai
MIT License
474 stars 94 forks source link

"Execute Query" caches too much about the state of the project and doesn't realize when external issues have been fixed #1453

Open rmargarint-nydig opened 1 month ago

rmargarint-nydig commented 1 month ago

Expected behavior

When I hit Execute Query, and there is a bug in the DBT project outside of that query, the query will fail as expected. Eg "Some other model has a ref on a model that doesn't exist". All as expected. But then you go and you fix that issue, come back to the query you were were trying to run, tell it to execute again, Power DBT seems to not realize that I fixed the underlying issue. Sometimes it will take several seconds, or forever until it realizes that and decides to actually rererun the whole query again.

Actual behavior

Every time I hit execute query it should just try to execute the query.

Steps To Reproduce

Log output/Screenshots

No response

Operating System

mac

dbt version

1.8

dbt Adapter

snowflake

dbt Power User version

latest

Are you willing to submit PR?

kacarmichael commented 3 weeks ago

I've run into this issue many times. Some sort of way to clear whatever underlying cache is being used or to force a rescan/recompile of the full dbt project would be useful.