Open kandji-stephen opened 3 months ago
We are also experiencing this issue on
MacOS 14.5
Python 3.9.16
dbt 1.8.1
dbt-snowflake 1.8.2
dbt-adapters 1.2.1
Same problem here with dbt & Snowflake.
dbt --version
Core:
- installed: 1.8.3
- latest: 1.8.3 - Up to date!
Plugins:
- snowflake: 1.8.3 - Up to date!
Is this a new bug in dbt-core?
Current Behavior
I'm trying unit tests with a model that has a couple
run_query
macro calls. I found that this macro causes the unit test to fail with a SQL compilation error. This model can be run without the unit test and it will compile correctly.Here's a simple model and unit test which will produce this error.
simple_test_model.sql
:Unit test:
Expected Behavior
Expect the unit test to succeed (or at least not crash)
Steps To Reproduce
simple_test_model.sql
using example model above.dbt test --select simple_test_model
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response