DISTINCT

In a data query, you can use the DISTINCT operator to remove duplicate elements from the input stream. It relies on a key, which is computed using an expression.

This page discusses:

See Also
UC1 - Get 2 Tables with 2nd Table Showing Details
SORT
Expression Language
Defining Data Queries

Input

There is one input. There are no constraints on the element type or on the number of elements in the stream.

Note: You can use a SORT operator before the DISTINCT operator in the query to sort elements.

Output

There must be one output. The element type must be identical to the input.

The output stream must contain as many elements as the input stream. When the input stream is sorted, the operator keeps the first of the multiple duplicates.

General Parameters

Parameter Description
Label

Specify the label to display below the operator type in the data query.

Description

Add a description to display as tooltip on hover over the operator icon.

Tip: It is useful to explain what the operator does, especially when you share the data query with other users.
Operator input variable Specify the name to give to the variable that contains the input data. The variable is then available when you define expressions.

Distinction Criteria Parameters

Configure the operator with the following parameter:

Parameter Description
Distinction criteria Defines the value to use to get distinct objects.

Example

Use names as distinction criteria.