dbt-labs / dbt-labs/dbt

Remove unused `add_ephemeral_model_prefix` method

Open
#10,471 0 comments 0 reactions 0 assignees View on GitHub
engine:v1 type:tech-debt
Dominant language
Rust
Stars
13.8k
Forks
2.6k
Avg merge
21h 31m
Merged PRs (30d)
56

Description

### Housekeeping

- [X] I am a maintainer of dbt-core

### Short description

This method appears to be **unused** across dbt-core, dbt-common, and dbt-adapters:

https://github.com/dbt-labs/dbt-core/blob/c668846404c78ea7317dc0523b49703c61c9885f/core/dbt/utils.py#L140-L141

Instead, [this](https://github.com/dbt-labs/dbt-adapters/blob/e3465c2a7baaea66f71b1da94647a193c281a992/dbt/adapters/base/relation.py#L235-L236) is the method that is in-use:

```python
def add_ephemeral_prefix(name: str):
return f"__dbt__cte__{name}"
```

### Acceptance criteria

Remove this method.

### Suggested Tests

1. Confirm that existing CI passes
1. Confirm that is is not used within each relevant repo with a code search like `git grep "add_ephemeral_model_prefix" .`

### Impact to Other Teams

Should have zero impact to other teams.

### Will backports be required?

No backports required.

### Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.