Table Combination
3 nodes
On this page 3
Append Columns
FunctionTwo tables of the same number of rows set side by side: the left table's columns, then the right's - with the suffix where the left already uses a name.
Signature
AppendColumns(left: Table, right: Table, suffix: Text) -> Table
Table AppendColumns(
Table left,
Table right,
string suffix = " (right)")Parameters
| name | type | default | description |
|---|---|---|---|
| left | Table | — | The left table. |
| right | Table | — | The right table, with as many rows. |
| suffix | Text | (right) | What is added to a right column's name that the left table already uses. |
Returns
| Table | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Table Combination
- Package
- Data Analytics
Append Rows
FunctionTables stacked one above another, rows of the first table first. Columns are matched by name, ignoring letter case; Union keeps every column (empty where a table lacks it) and Intersect only the columns every table has.
Signature
AppendRows -> Table
tables: Table Array
mode: Append Mode
sourceColumn: TextTable AppendRows(
Table[] tables,
AppendMode mode = AppendMode.Union,
string sourceColumn = "")Parameters
| name | type | default | description |
|---|---|---|---|
| tables | Table Array | — | The tables, in the order to stack them. |
| mode | Append Mode | Union | Which columns to keep. |
| sourceColumn | Text | — | When given, a column of this name saying which table each row came from: 1 for the first, 2 for the second, and so on. |
Returns
| Table | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Table Combination
- Package
- Data Analytics
Join
FunctionTwo tables joined on key columns: each row of the left table beside the rows of the right table whose keys match it. Which rows survive depends on the kind of join - matching rows only (Inner), every left row (Left), every right row (Right), every row of both (Full), or the left rows that have a match (Semi) or have none (Anti).
Signature
Join -> Table
left: Table
right: Table
leftKeys: Text Array
rightKeys: Text Array
how: Join Kind
suffix: TextTable Join(
Table left,
Table right,
string[] leftKeys,
string[] rightKeys,
JoinKind how = JoinKind.Left,
string suffix = " (right)")Parameters
| name | type | default | description |
|---|---|---|---|
| left | Table | — | The left table. |
| right | Table | — | The right table. |
| leftKeys | Text Array | — | The left table's key columns. |
| rightKeys | Text Array | — | The right table's key columns, in the same order; the same names as the left's when empty. |
| how | Join Kind | Left | Which rows the join keeps. |
| suffix | Text | (right) | What is added to a right column's name that the left table already uses. |
Returns
| Table | Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Table Combination
- Package
- Data Analytics