Divooka Reference

Table Combination

3 nodes

On this page 3

Append Columns

Function

Two 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

nametypedefaultdescription
leftTable—The left table.
rightTable—The right table, with as many rows.
suffixText(right)What is added to a right column's name that the left table already uses.

Returns

TableTable
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Combination
Package
Data Analytics

Append Rows

Function

Tables 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: Text
Table AppendRows(
    Table[] tables,
    AppendMode mode = AppendMode.Union,
    string sourceColumn = "")

Parameters

nametypedefaultdescription
tablesTable Array—The tables, in the order to stack them.
modeAppend ModeUnionWhich columns to keep.
sourceColumnText—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

TableTable
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Combination
Package
Data Analytics

Join

Function

Two 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: Text
Table Join(
    Table left,
    Table right,
    string[] leftKeys,
    string[] rightKeys,
    JoinKind how = JoinKind.Left,
    string suffix = " (right)")

Parameters

nametypedefaultdescription
leftTable—The left table.
rightTable—The right table.
leftKeysText Array—The left table's key columns.
rightKeysText Array—The right table's key columns, in the same order; the same names as the left's when empty.
howJoin KindLeftWhich rows the join keeps.
suffixText(right)What is added to a right column's name that the left table already uses.

Returns

TableTable
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Table Combination
Package
Data Analytics