transformations:merge
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
transformations:merge [2021/04/05 00:33] – craigt | transformations:merge [2023/10/11 20:49] – [Remarks] craigt | ||
---|---|---|---|
Line 5: | Line 5: | ||
\\ | \\ | ||
=====Description===== | =====Description===== | ||
- | This action appends one or more columns from another table where the values in certain columns in both tables match. | + | This action appends one or more columns from another table where the values in certain columns in both tables match. The action is similar to the SQL join. |
There are three possible merge modes:\\ | There are three possible merge modes:\\ | ||
Line 16: | Line 16: | ||
\\ | \\ | ||
====Full Join Mode==== | ====Full Join Mode==== | ||
- | Include all combinations of keys from both tables. | + | Include all combinations of keys from both tables. |
- | + | ||
- | \\ | + | |
- | =====Limitations===== | + | |
- | The resulting table after Merge can't have more than 134,217,728 rows.\\ | + | |
\\ | \\ | ||
Line 36: | Line 32: | ||
|Return columns|From the list, select the columns from the second dataset that will be appended to the current dataset.| | |Return columns|From the list, select the columns from the second dataset that will be appended to the current dataset.| | ||
The reference to the second table will appear as a dotted line connecting this action to the second dataset in the application window. | The reference to the second table will appear as a dotted line connecting this action to the second dataset in the application window. | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | Matching is case-sensitive. | ||
+ | |||
+ | Values must be identical (equal) in order to be matched. If another matching mode is needed (e.g. " | ||
+ | |||
+ | For an inner join use the [[transformations: | ||
+ | |||
\\ | \\ | ||
Line 41: | Line 46: | ||
- | **Objective:** Merge the " | + | **Example:** Merge the " |
**Table 1:** The longest rivers in the world\\ | **Table 1:** The longest rivers in the world\\ | ||
Line 62: | Line 67: | ||
> Add columns from table: Table 2 | > Add columns from table: Table 2 | ||
- | > Where values in the Table 1 " | + | > Where values in Table 1 " |
> Merge mode: Left join (add all matching rows from Table 2 to Table 1) | > Merge mode: Left join (add all matching rows from Table 2 to Table 1) | ||
> Return column: Outflow | > Return column: Outflow | ||
\\ | \\ | ||
- | **Result: | + | **Result |
^River | ^River | ||
Line 75: | Line 80: | ||
| Mississippi | | Mississippi | ||
+ | \\ | ||
+ | ====Community examples==== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
\\ | \\ | ||
Line 80: | Line 92: | ||
* [[transformations: | * [[transformations: | ||
* [[transformations: | * [[transformations: | ||
+ | * [[transformations: | ||
transformations/merge.txt · Last modified: 2024/04/11 23:55 by craigt