dbt-labs / dbt-labs/dbt

[CT-2904] [Bug] Should clone with --full-refresh respect the model config?

Open
#8,274 2 comments 0 reactions 0 assignees View on GitHub
clone engine:v1 Refinement type:feature
Dominant language
Rust
Stars
13.8k
Forks
2.6k
Avg merge
21h 31m
Merged PRs (30d)
56

Description

### Is this a new bug in dbt-core?

- [X] I believe this is a new bug in dbt-core
- [X] I have searched the existing issues, and I could not find an existing issue for this bug

### Current Behavior

given the config:

```{{
config(
materialized = 'incremental',
unique_key = 'event_key',
on_schema_change = 'fail',
incremental_strategy = 'delete+insert',
transient=false,
full_refresh=false,
)
}}
```

when using the `dbt clone -s --full-refresh` - the model is cloned.

### Expected Behavior

Not sure what I'd want here. Personally I was pleased to see it not respected.. but it probably should be? Or it's a mix of concepts and it should be some `--force` flag or something with `dbt clone` to say "I don't care that it exists, clone it"

### Steps To Reproduce

create an incremental model..

set full_refresh=false in it's config..

run dbt clone --full-refresh.

### Which database adapter are you using with dbt?

dbt-snowflake==1.6.0

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.