What a node's emitter knows besides its own settings: the schemas Cube inferred around it

interface EmitContext {
    databaseType?: string;
    inputOrder?: RowOrder;
    inputSchemas: readonly Schema[];
    schema: Schema;
}

Properties

databaseType?: string

The engine's name for the database the query runs on, e.g. SqlServer, given only when the relation is emitted to run: some take some operations another way (getDialectWorkarounds)

inputOrder?: RowOrder

The order of the node's input rows, given only to a node that takes rows by it (consumesInputOrder) and only when the relation is emitted to run (PLAN §11.4): typing needs no sort

inputSchemas: readonly Schema[]

The node's input schemas, in port order

schema: Schema

The node's own output schema