Interface: CompiledColumn
Defined in: server/insights/compiler/compile.ts:58
A result column plus the internal positional alias used to read rows.
Extends
Properties
isAggregate
isAggregate: boolean;Defined in: server/insights/compiler/compile.ts:61
true for an aggregate (a measure), false for a groupBy output (a
dimension). The compiler knows this for every column; without it a client
has to guess the category axis from type, which is wrong whenever a report
groups by a numeric field (a year, a rating, a tier).
Optional only because hand-built fixtures predate it — every column produced
by executeReport sets it.
Overrides
key
key: string;Defined in: shared/insights/types/results.ts:23
Inherited from
label
label: string;Defined in: shared/insights/types/results.ts:24
Inherited from
money?
optional money?: {
currencyCode?: string;
representation: "decimal" | "minorUnits";
scale: number;
};Defined in: shared/insights/types/results.ts:27
Present iff type is money; drives currency/scale formatting.
currencyCode?
optional currencyCode?: string;representation
representation: "decimal" | "minorUnits" = moneyRepresentationSchema;scale
scale: number;Inherited from
sqlAlias
sqlAlias: string;Defined in: server/insights/compiler/compile.ts:60
Positional SQL alias (col_0, …) — decouples SQL from logical keys.
type
type: "string" | "number" | "boolean" | "date" | "enum" | "datetime" | "money";Defined in: shared/insights/types/results.ts:25