[CT-2704] [Bug] When any of the unique keys is null incremental model duplicates data #7873
Closed
2 tasks done
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
incremental
Incremental modeling with dbt
Is this a new bug in dbt-core?
Current Behavior
When one or more unique keys have NULL values on the table, the incremental model appends a row instead of replacing the existing one.
So:
1, NULL, 1 duplicates the record
1, 2, 1 works ok
Expected Behavior
take null into account on unique keys of incremental models
Steps To Reproduce
set a unique key that could have NULL values.
run the incremental model twice
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: