Is this a new bug?
Which packages are affected?
Current Behavior
The existing_relation set here is always None
Expected Behavior
The existing_relation during the function materialization shouldn't be None if the function exists.
Steps To Reproduce
- add
{{ log('function relation: ' ~ load_cached_relation(this), info=True) }} to a function
- build the function twice
- observe that it is always logged as
none
Relevant log output
Environment
- OS:
- Python:
- dbt-adapters:
- <adapter>:
Additional Context
No response