Skip to content

[Bug] Most adapters don't know how to lookup a relation for a function #1488

@QMalcolm

Description

@QMalcolm

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Which packages are affected?

  • dbt-adapters
  • dbt-tests-adapter
  • dbt-athena
  • dbt-athena-community
  • dbt-bigquery
  • dbt-postgres
  • dbt-redshift
  • dbt-snowflake
  • dbt-spark

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

  1. add {{ log('function relation: ' ~ load_cached_relation(this), info=True) }} to a function
  2. build the function twice
  3. observe that it is always logged as none

Relevant log output

Environment

- OS:
- Python:
- dbt-adapters:
- <adapter>:

Additional Context

No response

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working as documented

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions