The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

Duplicate records in Merge

We are merging according to three columns. 2 of them are Varchar and the last one is Int.

Somehow, due to the integer column, we get duplicate rows, that instead of going to the update, go to the insert.


There are no null values in none of these columns.


When casting this column to varchar, the duplicates don’t get inserted but the cost raise to a number we can’t handle because our dwh table contains a lot of records.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file