A call of a function that takes relations and gives one, which Cube has no step of its own for, e.g. ->union(…): one step, whose inputs are the relations it takes, and its other values kept as Pure prints them. For a function in Cube's list (CUBE_RELATION_FUNCTIONS), its columns follow its entry's rule; for any other, they aren't known, and the steps after it aren't checked. A definition's flow draws it; Cube's editor doesn't read one yet, so it has no emitter or saved form.

Hierarchy (View Summary)

Properties

definition: undefined | CubeRelationFunction

Its entry in Cube's list; undefined for a function Cube doesn't know

functionName: string

The function as the query names it, e.g. union or my::pkg::latest

id: string

Unique within the query and shown to users, e.g. filter101

key: number

Assigned at construction from a monotonic sequence: the node's identity for change detection

rest: JsonObject

The keys of the node's saved JSON that this version does not know, kept so a re-save writes them back (PLAN §10.3); edits keep them too

values: readonly string[]

The values it takes after its relations, as Pure prints them, e.g. a condition's lambda

Accessors

  • get consumesInputOrder(): boolean

    Whether the node takes rows by their order, as a Limit does: the emitter then writes its input's order as a sort just before it (PLAN §11.4)

    Returns boolean

  • get portLabels(): readonly string[]

    Labels for the input ports, shown on the edges that feed them

    Returns readonly string[]

  • get ports(): readonly string[]

    The named input slots, in order: none for a source, one for a unary transform, two for a binary one

    Returns readonly string[]

Methods

  • The description without the values users typed, which may be sensitive, for logs and telemetry. By default the description, which has none.

    Returns string

  • Whether the node has none of the settings it needs yet, e.g. a Join with no key pair: the canvas shows it as not set, not by its description

    Returns boolean

  • Checks the node against its input schemas, given in port order, and appends a message to errors for each problem found.

    Parameters

    • inputSchemas: readonly Schema[]
    • Optionalerrors: string[]

    Returns boolean

  • The node to keep once its two inputs swap ports: by default this node. A node whose settings name its inputs by side, such as a Join's key columns, returns a new node (same id) with those settings swapped too.

    Returns QueryNode