A definition Cube can draw

interface CubeDefinitionFlowReading {
    functionCalls: readonly CubeDefinitionFunctionContainer[];
    kind: "flow";
    lets: ReadonlyMap<string, IR>;
    materializedViews: readonly CubeDefinitionDataSet[];
    outputStepId: string;
    parameters: readonly CubeDefinitionParameter[];
    query: Query;
    relationFunctions: readonly CubeDefinitionRelationFunction[];
    scalarFunctions: ReadonlyMap<
        string,
        readonly CubeDefinitionScalarFunction[],
    >;
    sqlIslands: readonly CubeDefinitionSqlIsland[];
    steps: readonly CubeDefinitionStep[];
    uncheckedStepIds: readonly string[];
    unknownDataSets: readonly CubeDefinitionDataSet[];
}

Properties

functionCalls: readonly CubeDefinitionFunctionContainer[]

Its calls of user-defined functions, in the order met, a call before the calls in its body

kind: "flow"
lets: ReadonlyMap<string, IR>

What each of the lambda's lets binds, by name

materializedViews: readonly CubeDefinitionDataSet[]

The materialized views it reads, as their ingest definition says: data sets whose rows a function over other data sets gives, which declare no columns, so Cube doesn't type them yet. Drawn by name, the steps after them unchecked.

outputStepId: string

The step whose rows the definition gives

parameters: readonly CubeDefinitionParameter[]

The values it takes when it is queried, in order: none for most

query: Query

The steps as Cube holds them, for CubeDefinitionFlow to draw

relationFunctions: readonly CubeDefinitionRelationFunction[]

Its calls of functions that take relations and give one, which Cube has no step of its own for, e.g. ->union(…), each one step (RelationFunction), in the flow's order

scalarFunctions: ReadonlyMap<string, readonly CubeDefinitionScalarFunction[]>

The user-defined functions each step's expressions call, by the step's id

sqlIslands: readonly CubeDefinitionSqlIsland[]

Its SQL, #SQL{…}#, in the flow's order: each a container of its clauses' steps, or one box; its columns aren't known either way, so the steps after it are read unchecked

steps: readonly CubeDefinitionStep[]

Its steps, each after the steps it reads

uncheckedStepIds: readonly string[]

The steps read without being checked, as the columns before them weren't known

unknownDataSets: readonly CubeDefinitionDataSet[]

The ingest data sets it reads whose columns the host didn't give, or Cube couldn't read: drawn by name. A materialized view isn't one of them: see materializedViews.