5.6.1. Naïve Deduplicate (High-Speed clip0090 action)

<< Click to Display Table of Contents >>

Navigation:  5. Detailed description of the Actions > 5.6. Cleaning >

5.6.1. Naïve Deduplicate (High-Speed clip0090 action)

 

Icon: clip0210

 
Function: NaiveDeduplicate
 

Property window:

 

ANATEL~3_img551

 

Short description:

 

Remove Duplicate rows.

 

Long Description:

 

This action remove duplicates rows.

 

Two rows are considered as "duplicate" when all their primary key(s) match.

 

The input table of this action must be sorted on its primary key(s).
 

Only the primary key(s) are checked to search for duplicates, it means that two rows that have :

 

different values on NON-primary columns.

the same primary key(s).

 
… will still be “de-duplicated” (to only keep one row).

 

 

ANATEL~2_img8

Pre-requisite

The input table of this action must be sorted on its primary key(s).

 

 

The clip0210 NaïveDeDuplicate Action is very often combined with the ANATEL~3_img69 Flatten Action. For example, let’s say that we want to know the 2 most purchased products in each department of the store. We’ll have:

 

 

clip0211

 

E.g. For the “Food” department, the two most purchased products are “Sweets” (with 100 sales) and “Lemonade“ (with 50 sales).

 

The clip0210 NaïveDeDuplicate Action is also very often used to investigate data quality issues initially detected with the clip0212 MultiJoin Action or the ANATEL~3_img115 FilterOnKey Action. These 2 actions requires no duplicates values inside the “key” column of the SLAVE tables. When a key-duplication is detected, you can see the duplicates in the following way:

clip0213