In most join operations, the values in primary keys across two tables must match exactly for the related columns to be included in the join. In a range join, you can change the comparative operator for the keys from Equal to one of the following additional comparisons:
- Not equal to
- Greater than
- Greater than or equal to
- Less than
- Less than or equal to
NOTE: A Trifacta administrator may need to enable this feature in your environment. See Workspace Settings Page.
Range joins allow you to include many more matching values and therefore rows in the join. Depending on the matches and the included columns, your resulting dataset can become very large. You should use this feature with some caution.
- Range joins apply only keys whose data types can be compared. For example, for joins involving keys of Binary data type, you can use Equal to or Not equal to joins.
- Any range comparison that includes one or more string columns as keys uses the string comparison greater/less than, not the numerical comparison.
After range joins have been enabled, you can specify them as part of performing any join operation.
- In the Search panel, enter
join datasetsin the search box.
- Select the dataset with which to join the current one. Then, click Accept.
- In the Join window, select the join type.
- In the Join Keys area, click the Pencil icon.
- Specify the fields in the current dataset and the joined-in dataset.
From the Condition drop-down, select the range operator to use:
Specify other properties for the matching keys.
Click Save and Continue.
Specify other elements of the join. When finished, click Add to Recipe.
For more information, see Join Window.
This page has no comments.