...
This operator left joins two tables (left, right) on left.lookupFields = right.lookupFields and adds fetchFields column to the left table. This operator is useful if the input table has numerous columns, which can make it difficult to use a simple join.
Operator Usage in Easy Mode
- Click + on the parent node.
- Enter the Lookup operator in the search field and select the operator from the Results to open the configuration form.
- In the Table drop-down, select the step from which to source the data.
- In the Lookup Table dropdown, select the lookup table for the join.
- Match fields from the input table and the lookup table by selecting from the dropdown menus. Select a column from the input table and lookup table and indicate whether to make the match case sensitive. To add additional matching pairs, click Add; to remove a pair, click the trashcan icon.
- Match fields from the lookup table to the output table by selecting from the dropdown menus. If the field you select for the lookup table has the same name as a field in the output table, that field is automatically selected but can be changed. Alternatively, click Add All Fields to include all fields in the match.
To add additional matching pairs, click Add; to remove a pair, click the trashcan icon. - Click Run to view the result.
- Click Save to add the operator to the playbook.
- Click Cancel to discard the operator form.
Usage Details
LQL Command
Code Block |
---|
lookup(table, lookupFields, lookupTable, fetchFields) |
...
Output
The output table is the same as input table with an additional columns named in fetchField. If fetchField column already exists in input table the original one is dropped.
Example
Input
table A with (f1, f2, f3) columns,
...