The Unique Rows (HashSet) step removes duplicate rows and filters only the unique rows as input data for the step.
This step differs from the Unique Rows transformation step by keeping track of the duplicate rows in memory and does not require a sorted input to process duplicate rows.
The Unique Rows (HashSet) step requires you to define parameters for your output and how you want to sort and track duplicate rows.
Enter the following information for the Step name field:
- Step name: Specify the unique name of the transformation on the canvas. You can customize the name or leave it as the default
The Unique Rows (HashSet) step requires definitions for the following options and parameters:
|Compare using stored row values
|Select this option to store values for the selected fields in
memory for every record. Storing row values requires more memory, but it prevents
possible false positives if there are hash collisions.
NoteSelecting this option is not necessary when using this step with the Spark engine. Hash collisions do not occur in Spark processing.
|Redirect duplicate row
|Select this option to process duplicate rows as an error and redirect them to the error stream of the step. If you do not select this option, the duplicate rows are deleted.
|Specify the error handling description that displays when the step detects duplicate rows. This description is only available when Redirect duplicate row is selected.
|Fields to compare table
Specify the field names for which you want to find unique values.
Select Get to insert all the fields from the input stream.