# Unique Rows (HashSet)

## ![](/files/THnYXEMUyeozKsw5s77o) Unique Rows (HashSet)

### Description <a href="#description" id="description"></a>

The Unique Rows (HashSet) transform removes duplicate rows and filters only the unique rows as input data for the transform.

This transform differs from the [Unique Rows](/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/uniquerows.md) pipeline transform by keeping track of the duplicate rows in memory and does not require a sorted input to process duplicate rows.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | X            |
| Flink      | X            |
| Dataflow   | X            |

{% hint style="danger" %}
Warning: When using this transform on larger sets of data there is a risk of hash collisions unless "Compare using stored row values" is enabled.
{% endhint %}

### Options

| Option                          | Description                                                                                                                                                                                            |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Transform Name                  | Name of the transform this name has to be unique in a single pipeline.                                                                                                                                 |
| 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. |
| Redirect duplicate row          | Select this option to process duplicate rows as an error and redirect them to the error stream of the transform. If you do not select this option, the duplicate rows are deleted.                     |
| Error description               | Specify the error handling description that displays when the transform detects duplicate rows. This description is only available when Redirect duplicate row is selected.                            |
| Fields to compare table         | <p>Specify the field names for which you want to find unique values.</p><p>-OR-</p><p>Select Get to insert all the fields from the input stream.</p>                                                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/uniquerowsbyhashset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
