You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-mintlify/reference/core-data-apis/rest-api/reference.mdx
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,11 @@ Response
41
41
-`lastRefreshTime` - An ISO 8601 timestamp indicating when the data was last refreshed.
42
42
-`external` - A boolean indicating whether the query was served from a
43
43
pre-aggregation in Cube Store. Present only when the query hit a pre-aggregation.
44
+
-`usedPreAggregations` - The pre-aggregations this result was served from, keyed
45
+
by pre-aggregation table name. Each entry carries `preAggregationId` (the name in
46
+
the data model, e.g. `Orders.main`, stable across rebuilds), `targetTableName`
47
+
(the table of one specific build), `lastUpdatedAt` and `type`. Absent when the
48
+
query hit no pre-aggregation.
44
49
-`total` - The total number of rows returned for the query. Useful for
45
50
paginating results.
46
51
@@ -420,8 +425,10 @@ This endpoint is part of the [SQL API][ref-sql-api].
420
425
|`x-request-id`| Custom request identifier. When provided, this ID is used to track the query through the system and can be used to [cancel the query](#base_path/v1/running-query/requestid). If not provided, a unique ID is generated automatically. | ❌ No |
421
426
422
427
Response: a stream of newline-delimited JSON objects. The first object contains
423
-
the `schema` property with column names and types, and optionally
424
-
`lastRefreshTime` indicating when the data was last refreshed.
428
+
the `schema` property with column names and types, optionally
429
+
`lastRefreshTime` indicating when the data was last refreshed, and optionally
430
+
`usedPreAggregations` naming the pre-aggregations the result was served from
431
+
(same shape as in the [JSON query](#base_path/v1/load) response).
425
432
The following objects contain chunks of the result set under the `data` property.
426
433
Each chunk includes one or more rows of the result set; the maximum number of rows
Copy file name to clipboardExpand all lines: packages/cubejs-api-gateway/openspec.yml
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -462,6 +462,23 @@ components:
462
462
type: "object"
463
463
lastRefreshTime:
464
464
type: "string"
465
+
external:
466
+
type: "boolean"
467
+
description: "`true` when the result was served from an external (CubeStore) pre-aggregation."
468
+
usedPreAggregations:
469
+
type: "object"
470
+
description: "Pre-aggregations this result was served from, keyed by pre-aggregation table name. Each entry carries `preAggregationId`, `targetTableName`, `lastUpdatedAt` and `type`. Absent when the query hit no pre-aggregation. In dev mode and for the Playground the entries also carry `refreshKeyValues`."
0 commit comments