@malloy-publisher/app 0.12.5 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-doc.yaml +785 -57
- package/dist/assets/{EnvironmentPage-gNvDKTtA.js → EnvironmentPage-B74sWMJb.js} +1 -1
- package/dist/assets/{HomePage-lrIG8Qjk.js → HomePage-BOb2eaod.js} +1 -1
- package/dist/assets/{MainPage-CJf3Uuul.js → MainPage-D6QvMDBc.js} +1 -1
- package/dist/assets/{ModelPage-t_Ln0qr1.js → ModelPage-DOac8VF3.js} +2 -2
- package/dist/assets/{PackagePage-Cxa0_alv.js → PackagePage-CpahRMLt.js} +1 -1
- package/dist/assets/{PackageSplatRoute-FyScmoYw.js → PackageSplatRoute-BBPH3864.js} +2 -2
- package/dist/assets/{RenderedResult-DqPvGZgL.es-BNxk46Vn.js → RenderedResult-D5HJr2Xo.es-CFweT1ny.js} +3 -3
- package/dist/assets/{RouteError-BZUUKmNE.js → RouteError-r7ydeLAE.js} +1 -1
- package/dist/assets/{ThemeEditorPage-vDnfPmZz.js → ThemeEditorPage-dxaIYM0S.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DdUWm7cB.js → ToggleButtonGroup-B8CQst36.js} +1 -1
- package/dist/assets/{documentRoutes-DtWdqG6B.js → documentRoutes-Dn5OclPv.js} +1 -1
- package/dist/assets/{editPageMounted-vEdUjhAX.js → editPageMounted-BXWQAQvv.js} +2 -2
- package/dist/assets/{index-CRAwrhYM.js → index-B0BUzE-t.js} +8 -2
- package/dist/assets/index-BiZnC_i6.js +1318 -0
- package/dist/assets/{index-dUom3Bdm.js → index-C2rpVa58.js} +1 -1
- package/dist/assets/index-Co7C9Gew.js +2724 -0
- package/dist/assets/{index-D-htCO4q.js → index-D3PvzI_V.js} +38 -38
- package/dist/assets/{index-DYHeNKEh.js → index-jw6yCO3t.js} +1 -1
- package/dist/assets/{index.es-DpNxHwgw.js → index.es-BfpodLFo.js} +1 -1
- package/dist/assets/usePackageLinkNavigate-CpjXFkgK.js +1 -0
- package/dist/assets/{usePackageRoute-CjGpnrTp.js → usePackageRoute-CwvWFoYD.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/mcp-app/report.css +1 -0
- package/dist/mcp-app/report.js +3422 -0
- package/package.json +5 -4
- package/dist/assets/index-DgBiwYeC.js +0 -2714
- package/dist/assets/index-diN_kmcj.js +0 -1314
- package/dist/assets/usePackageLinkNavigate-D2TepxAX.js +0 -1
package/dist/api-doc.yaml
CHANGED
|
@@ -298,7 +298,15 @@ paths:
|
|
|
298
298
|
$ref: "#/components/schemas/IdentifierPattern"
|
|
299
299
|
- name: reload
|
|
300
300
|
in: query
|
|
301
|
+
deprecated: true
|
|
301
302
|
description: |
|
|
303
|
+
**Deprecated.** Re-reads the environment's block of `publisher.config.json` and reloads
|
|
304
|
+
the environment from it. Nothing first-party calls it, and the v1 API has no environment
|
|
305
|
+
reload. A response to `reload=true` carries `Deprecation: true`, and each use is counted in
|
|
306
|
+
`publisher_deprecated_usage_total{feature="environment_reload"}`; it is removed once that
|
|
307
|
+
reads zero (#1540). Under `frozenConfig` it is refused with 403, like any change to an
|
|
308
|
+
environment. To pick up a package's changed files, reload the package.
|
|
309
|
+
|
|
302
310
|
Load / reload the environment before returning result.
|
|
303
311
|
|
|
304
312
|
Only the two spellings OpenAPI serializes a boolean as are accepted:
|
|
@@ -1490,7 +1498,9 @@ paths:
|
|
|
1490
1498
|
name (if any) is untouched, no version is recorded, and the load's connections are
|
|
1491
1499
|
closed. The answer is what a publish would answer for the tree itself: the same 400 or
|
|
1492
1500
|
424 refusal, or 200 with the package as it would load, its `warnings` included, plus the
|
|
1493
|
-
`location` it was loaded from.
|
|
1501
|
+
`location` it was loaded from. The 200 also carries what a publish would build and serve:
|
|
1502
|
+
the `buildPlan`, and `serveVerdicts`, each materialized source's serve verdict with each
|
|
1503
|
+
stored source's named views compiled against a serve shape (no table is built). With package versioning on, the tree's `publisher.json`
|
|
1494
1504
|
must declare a valid version, as a versioned publish requires (400
|
|
1495
1505
|
`MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as
|
|
1496
1506
|
`versionId`. Version lifecycle checks (a version that already exists, `latest`) are not
|
|
@@ -1505,7 +1515,7 @@ paths:
|
|
|
1505
1515
|
|
|
1506
1516
|
## Versioned publish
|
|
1507
1517
|
|
|
1508
|
-
Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`
|
|
1518
|
+
Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by
|
|
1509
1519
|
default; `ServerStatus.packageVersioning` reports it), and a transition: a later release
|
|
1510
1520
|
removes the setting and always publishes versions.
|
|
1511
1521
|
|
|
@@ -1693,6 +1703,23 @@ paths:
|
|
|
1693
1703
|
At EITHER home, omitting it preserves the package's tags and so does sending
|
|
1694
1704
|
null — a client that serializes unset fields as null must not untag a package
|
|
1695
1705
|
by accident. Send an empty object to clear.
|
|
1706
|
+
|
|
1707
|
+
A package fetched from a `location` keeps none of these on reload: a reload fetches
|
|
1708
|
+
it again and replaces its files, `publisher.json` included, keeping only its
|
|
1709
|
+
`location` and manifest binding. So when the package will be fetched from a
|
|
1710
|
+
location once this request is applied (the `location` it sends, or else the one it
|
|
1711
|
+
was installed from), a change to `description`, `explores`, `queryableSources`,
|
|
1712
|
+
`scope`, `queryMetadata` or `materialization` is refused with 409 (`reason`
|
|
1713
|
+
`PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request
|
|
1714
|
+
would leave in force: clearing a set field is a change, a null is omitted, and a
|
|
1715
|
+
value equal to the current one (`explores` normalized as stored) is not. A request
|
|
1716
|
+
that names a new `location` is judged against the tree fetched from it, and a
|
|
1717
|
+
refusal leaves the previous install serving. When the package it replaces was
|
|
1718
|
+
itself installed from a location, a field sent with that package's value is the
|
|
1719
|
+
package sent back, not a change: it is left out and the new tree's value serves,
|
|
1720
|
+
so a whole package read back with only its `location` changed is accepted.
|
|
1721
|
+
Make the change in the package's
|
|
1722
|
+
source and reload it, or publish it as a version.
|
|
1696
1723
|
parameters:
|
|
1697
1724
|
- name: environmentName
|
|
1698
1725
|
in: path
|
|
@@ -1786,8 +1813,8 @@ paths:
|
|
|
1786
1813
|
Lists every version published to the package, highest version first, including archived
|
|
1787
1814
|
ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a
|
|
1788
1815
|
request names no `versionId`. An unversioned package (one registered from a directory,
|
|
1789
|
-
|
|
1790
|
-
and returns an empty list.
|
|
1816
|
+
mounted in a watched environment, or loaded or published with versioning off) has no
|
|
1817
|
+
versions and returns an empty list.
|
|
1791
1818
|
parameters:
|
|
1792
1819
|
- $ref: "#/components/parameters/environmentName"
|
|
1793
1820
|
- $ref: "#/components/parameters/packageName"
|
|
@@ -1976,6 +2003,11 @@ paths:
|
|
|
1976
2003
|
This is serving state, not package content, which is why it is the one thing about a
|
|
1977
2004
|
published version that can change. It replaces the deprecated
|
|
1978
2005
|
`PATCH .../packages/{packageName}` for rebinding a manifest.
|
|
2006
|
+
|
|
2007
|
+
An absent `manifestLocation` (an empty body, `{}`) clears the binding too, as null does:
|
|
2008
|
+
a PUT replaces the binding, and many generated clients drop a null field from the JSON
|
|
2009
|
+
they send. `manifestLocation` is the body's only field, so any other field is refused
|
|
2010
|
+
with 400 naming it, rather than read as a clear.
|
|
1979
2011
|
parameters:
|
|
1980
2012
|
- $ref: "#/components/parameters/environmentName"
|
|
1981
2013
|
- $ref: "#/components/parameters/packageName"
|
|
@@ -2242,8 +2274,9 @@ paths:
|
|
|
2242
2274
|
with `includeHiddenFilesAndSources=true`. When the file on disk no
|
|
2243
2275
|
longer hashes to it, the write is refused with 409 and nothing is
|
|
2244
2276
|
merged: the caller re-opens and reapplies its change. Omit it to CREATE
|
|
2245
|
-
the file: a file that already exists is then refused with 409 too,
|
|
2246
|
-
|
|
2277
|
+
the file: a file that already exists is then refused with 409 too,
|
|
2278
|
+
`reason` `FILE_EXISTS`, so a caller choosing a name can try the next,
|
|
2279
|
+
and an unconditional overwrite is not something a caller can ask for by
|
|
2247
2280
|
leaving a field out. A path over an existing file the package does not
|
|
2248
2281
|
read as a report answers 400 instead, with or without a hash, because
|
|
2249
2282
|
that check comes before the hash. The check, the write,
|
|
@@ -2267,6 +2300,11 @@ paths:
|
|
|
2267
2300
|
`versionId` names: change the file in the package's source and publish
|
|
2268
2301
|
a new version. A `versionId` on a package with no versions answers 404
|
|
2269
2302
|
(`reason` `VERSION_NOT_FOUND`).
|
|
2303
|
+
|
|
2304
|
+
A package installed from a `location` is fetched again from there on
|
|
2305
|
+
reload, which replaces its files, so it refuses this write with 409
|
|
2306
|
+
(`reason` `PACKAGE_INSTALLED_FROM_LOCATION`): add the report to the
|
|
2307
|
+
package's source and reload it, or publish it as a version.
|
|
2270
2308
|
parameters:
|
|
2271
2309
|
- name: environmentName
|
|
2272
2310
|
in: path
|
|
@@ -2316,8 +2354,10 @@ paths:
|
|
|
2316
2354
|
$ref: "#/components/responses/NotFound"
|
|
2317
2355
|
"409":
|
|
2318
2356
|
description:
|
|
2319
|
-
The file changed since the caller opened it
|
|
2320
|
-
no `expectedHash` was sent
|
|
2357
|
+
The file changed since the caller opened it; or it already exists
|
|
2358
|
+
and no `expectedHash` was sent (`reason` `FILE_EXISTS`); or the
|
|
2359
|
+
package cannot take the write in place (`reason`
|
|
2360
|
+
`PACKAGE_IS_VERSIONED` or `PACKAGE_INSTALLED_FROM_LOCATION`)
|
|
2321
2361
|
content:
|
|
2322
2362
|
application/json:
|
|
2323
2363
|
schema:
|
|
@@ -2875,7 +2915,14 @@ paths:
|
|
|
2875
2915
|
declares no persist source has an empty plan. When the plan could not
|
|
2876
2916
|
be derived at load, the read answers 409 with `reason`
|
|
2877
2917
|
BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and
|
|
2878
|
-
retrying the read does not.
|
|
2918
|
+
retrying the read does not. After an edit to a connection the
|
|
2919
|
+
package's persisted sources build on, the plan is re-derived (a
|
|
2920
|
+
content address folds in its connection's digest) and the read waits
|
|
2921
|
+
for it; past 10 seconds it answers 503 with `reason`
|
|
2922
|
+
BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed
|
|
2923
|
+
re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run
|
|
2924
|
+
creation with `buildInstructions` is refused the same way rather than
|
|
2925
|
+
checked against the plan from before the edit.
|
|
2879
2926
|
parameters:
|
|
2880
2927
|
- name: environmentName
|
|
2881
2928
|
in: path
|
|
@@ -4237,6 +4284,11 @@ components:
|
|
|
4237
4284
|
content. Bump the `version` in publisher.json and publish again.
|
|
4238
4285
|
* PACKAGE_IS_VERSIONED: the package has published versions, which are
|
|
4239
4286
|
immutable, so it cannot be changed in place.
|
|
4287
|
+
* PACKAGE_INSTALLED_FROM_LOCATION: the package is fetched again from
|
|
4288
|
+
the location it was installed from on reload, which would discard
|
|
4289
|
+
the change. Make it in the package's source and reload.
|
|
4290
|
+
* FILE_EXISTS: a create-only report write found a file at the path.
|
|
4291
|
+
Choose another path.
|
|
4240
4292
|
* VERSION_IS_LATEST: the version is the package's `latest` and cannot
|
|
4241
4293
|
be archived, or deleted while other versions remain. Move `latest` first.
|
|
4242
4294
|
* VERSION_IS_LAST_ACTIVE: the version is the package's last one in
|
|
@@ -4579,10 +4631,11 @@ components:
|
|
|
4579
4631
|
description: >-
|
|
4580
4632
|
Where the build manifest to bind is: a gs:// or s3:// URI, a
|
|
4581
4633
|
file:// URL, or an absolute path on this server (a mounted volume).
|
|
4582
|
-
Null clears the binding and serves
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4634
|
+
Null, or leaving the field out, clears the binding and serves
|
|
4635
|
+
live, so a client that drops a field it meant to send (a value
|
|
4636
|
+
left undefined) clears the binding. An empty string or a relative
|
|
4637
|
+
path is refused with 400, and so is any other field in the body
|
|
4638
|
+
and a body not sent as application/json.
|
|
4586
4639
|
|
|
4587
4640
|
PackageLatestVersion:
|
|
4588
4641
|
type: object
|
|
@@ -4651,8 +4704,9 @@ components:
|
|
|
4651
4704
|
readOnly: true
|
|
4652
4705
|
description: >-
|
|
4653
4706
|
"on" when a publish from a location publishes an immutable
|
|
4654
|
-
version (`PUBLISHER_PACKAGE_VERSIONING=on
|
|
4655
|
-
the package in place, as before versions
|
|
4707
|
+
version (`PUBLISHER_PACKAGE_VERSIONING=on`, the default); "off" when
|
|
4708
|
+
it installs the package in place, as before versions
|
|
4709
|
+
(`PUBLISHER_PACKAGE_VERSIONING=off`). Reads and the versions
|
|
4656
4710
|
routes answer in both. Absent from a server that predates
|
|
4657
4711
|
versions, which reads as "off": how an orchestrator talking to
|
|
4658
4712
|
servers mid-rollout tells which ones publish native versions.
|
|
@@ -5034,6 +5088,111 @@ components:
|
|
|
5034
5088
|
format: date-time
|
|
5035
5089
|
description: When the in-progress load began. Present only while `loading` is true.
|
|
5036
5090
|
|
|
5091
|
+
ServeVerdict:
|
|
5092
|
+
type: object
|
|
5093
|
+
description: >-
|
|
5094
|
+
One materialized source's serve verdict: whether queries are answered
|
|
5095
|
+
from its table. `reason` is an open string, so a later release can add
|
|
5096
|
+
one; treat an unknown value as `live` for an unnamed cause.
|
|
5097
|
+
required: [sourceName, sourceID, origin, tier, verdict, message]
|
|
5098
|
+
properties:
|
|
5099
|
+
sourceName:
|
|
5100
|
+
type: string
|
|
5101
|
+
description: >-
|
|
5102
|
+
The source's name. A rollup's is generated and names no source in
|
|
5103
|
+
any model file; its message names the base it pre-aggregates.
|
|
5104
|
+
sourceID:
|
|
5105
|
+
type: string
|
|
5106
|
+
description: The source's identity, `name@modelURL`.
|
|
5107
|
+
modelPath:
|
|
5108
|
+
type: string
|
|
5109
|
+
description: The model file that declares it.
|
|
5110
|
+
origin:
|
|
5111
|
+
type: string
|
|
5112
|
+
description: >-
|
|
5113
|
+
`persist` for a source a modeler annotated, `preaggregate` for a
|
|
5114
|
+
rollup the publisher synthesized. A string, not an enum, so a new
|
|
5115
|
+
kind of variant needs no client change.
|
|
5116
|
+
tier:
|
|
5117
|
+
type: string
|
|
5118
|
+
description: >-
|
|
5119
|
+
Where its table lives: `colocated` (the source's own connection) or
|
|
5120
|
+
`storage` (a `storage=` destination).
|
|
5121
|
+
verdict:
|
|
5122
|
+
type: string
|
|
5123
|
+
description: >-
|
|
5124
|
+
`serves`: its table is bound and queries can be answered from it.
|
|
5125
|
+
`not_built`: nothing is bound yet; queries are answered from its
|
|
5126
|
+
table once a build binds it. `live`: no query is answered from it,
|
|
5127
|
+
for `reason`, until something changes.
|
|
5128
|
+
reason:
|
|
5129
|
+
type: string
|
|
5130
|
+
description: >-
|
|
5131
|
+
For a `live` verdict, why: `refused` (the plan refused to build it),
|
|
5132
|
+
`storage_mode` (`storage=` while `PERSIST_STORAGE_MODE` is not
|
|
5133
|
+
`on`), `rollup_over_stored_base` (a rollup over a `storage=` base,
|
|
5134
|
+
left out of the plan), `unreachable` (no source on the package's
|
|
5135
|
+
published surface reads it), `row_level_gate` (every query through
|
|
5136
|
+
it carries an `#(authorize)` or `#(access_filter)` gate, which the
|
|
5137
|
+
storage tier and rollups cannot keep yet), `shadowed` (its storage
|
|
5138
|
+
table is bound, but every model's source of that name is another
|
|
5139
|
+
source), `destination_missing` (`storage=` names a destination the
|
|
5140
|
+
environment does not configure), `connection_cannot_hold_table`
|
|
5141
|
+
(colocated, on a connection whose type creates no tables),
|
|
5142
|
+
`served_copy` (a `#(materialize)` source, which only the served copy
|
|
5143
|
+
reads: the served copy is off, no model's served copy reads its
|
|
5144
|
+
table, or it is colocated, which the served copy does not serve
|
|
5145
|
+
yet). An open set.
|
|
5146
|
+
message:
|
|
5147
|
+
type: string
|
|
5148
|
+
description: What the verdict means for this source, in a sentence.
|
|
5149
|
+
fixes:
|
|
5150
|
+
type: array
|
|
5151
|
+
items:
|
|
5152
|
+
type: string
|
|
5153
|
+
description: For a `live` verdict, the changes that would let it serve.
|
|
5154
|
+
cutoverPath:
|
|
5155
|
+
type: string
|
|
5156
|
+
description: >-
|
|
5157
|
+
On a dry run: the path that will answer queries on this source
|
|
5158
|
+
(the v1 cutover's, now the only one),
|
|
5159
|
+
judged by compiling the package's served copy over bindings declared
|
|
5160
|
+
from the plan's output columns (no table is built): `served_copy`
|
|
5161
|
+
(the served copy re-roots it on its table), `rollup` (a rollup the
|
|
5162
|
+
rollup leg reads), or `live`, with `cutoverReason`. An open string,
|
|
5163
|
+
so a later release can add a path; treat an unknown value as
|
|
5164
|
+
`live`.
|
|
5165
|
+
cutoverReason:
|
|
5166
|
+
type: string
|
|
5167
|
+
description: >-
|
|
5168
|
+
With a `live` `cutoverPath`, why: the served copy's reason for
|
|
5169
|
+
leaving the source as written (`column_types`, `fields_not_carried`,
|
|
5170
|
+
`read_terms_not_kept`, `compile_failed`, and the like), or
|
|
5171
|
+
`not_rerooted` when it names none. An open string.
|
|
5172
|
+
views:
|
|
5173
|
+
type: array
|
|
5174
|
+
description: >-
|
|
5175
|
+
On a dry run, for a source stored with `storage=`: each named view
|
|
5176
|
+
on it, and whether it compiles against the serve shape. A view that
|
|
5177
|
+
does not is answered live, and `detail` carries the compile error
|
|
5178
|
+
that says why (usually a field the shape cannot reproduce).
|
|
5179
|
+
items:
|
|
5180
|
+
$ref: "#/components/schemas/ViewServeVerdict"
|
|
5181
|
+
|
|
5182
|
+
ViewServeVerdict:
|
|
5183
|
+
type: object
|
|
5184
|
+
required: [view, verdict]
|
|
5185
|
+
properties:
|
|
5186
|
+
view:
|
|
5187
|
+
type: string
|
|
5188
|
+
description: The named view.
|
|
5189
|
+
verdict:
|
|
5190
|
+
type: string
|
|
5191
|
+
description: "`serves` or `live`."
|
|
5192
|
+
detail:
|
|
5193
|
+
type: string
|
|
5194
|
+
description: For a `live` view, the compile error that sends it live.
|
|
5195
|
+
|
|
5037
5196
|
StorageServeBinding:
|
|
5038
5197
|
type: object
|
|
5039
5198
|
properties:
|
|
@@ -5250,6 +5409,27 @@ components:
|
|
|
5250
5409
|
treating a row as evidence that queries are being accelerated.
|
|
5251
5410
|
items:
|
|
5252
5411
|
$ref: "#/components/schemas/StorageServeBinding"
|
|
5412
|
+
serveVerdicts:
|
|
5413
|
+
type: array
|
|
5414
|
+
readOnly: true
|
|
5415
|
+
description: >-
|
|
5416
|
+
Server-computed, read-only: for each source the package
|
|
5417
|
+
materializes (each `#@ persist` source and each synthesized
|
|
5418
|
+
rollup), whether queries are answered from its table, and when
|
|
5419
|
+
not, why and what to change. Recomputed on every read from the
|
|
5420
|
+
build plan and the binding as they stand, so it moves with each
|
|
5421
|
+
bind. Absent when the package materializes nothing.
|
|
5422
|
+
|
|
5423
|
+
|
|
5424
|
+
A `live` verdict is the package-level form of a live fallback
|
|
5425
|
+
that is otherwise visible only per query: a source built into
|
|
5426
|
+
storage while `PERSIST_STORAGE_MODE` is off, one no published
|
|
5427
|
+
source reaches, one under a row-level gate the storage tier cannot
|
|
5428
|
+
keep. `POST …/packages?dryRun=true` answers the same verdicts for a
|
|
5429
|
+
package before it is published, with each stored source's named
|
|
5430
|
+
views checked as well.
|
|
5431
|
+
items:
|
|
5432
|
+
$ref: "#/components/schemas/ServeVerdict"
|
|
5253
5433
|
|
|
5254
5434
|
PackageStatusEntry:
|
|
5255
5435
|
description: |
|
|
@@ -5690,6 +5870,11 @@ components:
|
|
|
5690
5870
|
naming it). `deprecated-filter-annotation`: a source declaring
|
|
5691
5871
|
deprecated `#(filter)` annotations (one per declaring source,
|
|
5692
5872
|
`model` naming its file and `subject` the source).
|
|
5873
|
+
`deprecated-preaggregate-annotation`: a measure declaring
|
|
5874
|
+
`#@ preaggregate`, whose v2 spelling is `#(preaggregate)` (one
|
|
5875
|
+
per measure, `model` its file, `subject` the source and the
|
|
5876
|
+
message the measure; `warn`; only while
|
|
5877
|
+
`PUBLISHER_MATERIALIZE` is on).
|
|
5693
5878
|
`report-name-ambiguous`: two or more grid reports share a
|
|
5694
5879
|
basename, so the deprecated `GET …/dashboards/{name}` route
|
|
5695
5880
|
answers 409 for it (one per name, `subject` naming it and the
|
|
@@ -5706,10 +5891,48 @@ components:
|
|
|
5706
5891
|
cannot tell from a real de-identification, so a review has
|
|
5707
5892
|
to (one per field, `subject` the source; `warn`; a plain
|
|
5708
5893
|
copy under `#(carries)` refuses the load instead).
|
|
5894
|
+
`preaggregate-over-stored-base`: a source persisted with
|
|
5895
|
+
`#@ persist storage=` that also declares `#@ preaggregate
|
|
5896
|
+
storage=` rollups, which are left out of the build plan and
|
|
5897
|
+
every run because a rollup over a stored base can neither build
|
|
5898
|
+
nor serve yet (one per base, `subject` the base; `warn`; the
|
|
5899
|
+
base still builds and serves from storage).
|
|
5900
|
+
`persist-unparseable`: a `#@` annotation that does not
|
|
5901
|
+
parse, so Malloy drops its source from the build and it is
|
|
5902
|
+
served live (one per annotation, `model` its file; `error`;
|
|
5903
|
+
refused at publish, while a package already published keeps
|
|
5904
|
+
loading). `persist-retired-key`: a `#@ persist` key no longer
|
|
5905
|
+
read, `sharing=` or `schedule=`, with what to write instead
|
|
5906
|
+
(one per key, `subject` the source; `error`; refused at
|
|
5907
|
+
publish). `persist-unknown-key`: a `#@ persist` key Publisher
|
|
5908
|
+
does not read, such as a misspelled `merge_key=` (one per
|
|
5909
|
+
key, `subject` the source; `warn`).
|
|
5910
|
+
`persist-not-materializable`: a `#@ persist` source the build
|
|
5911
|
+
walk did not recognize, served live (`subject` the source;
|
|
5912
|
+
`warn`). `persist-source-refused`: a `#@ persist` source a
|
|
5913
|
+
compile-time gate refused (a row-level gate, a free
|
|
5914
|
+
parameter, a given in the persisted query, or the `storage=`
|
|
5915
|
+
gate), served live, with the gate's message (`subject` the
|
|
5916
|
+
source, or a rollup's base; `warn`).
|
|
5917
|
+
`persist-incremental-no-merge-key`: an incremental source
|
|
5918
|
+
with no `merge_key=`, so each refresh replaces its watermark
|
|
5919
|
+
range (`subject` the source; `warn`).
|
|
5920
|
+
`persist-incremental-shared-address`: sources that compile to
|
|
5921
|
+
the same SQL on one connection, so they share one table and
|
|
5922
|
+
one boundary, where at least one is incremental (one per
|
|
5923
|
+
source; `warn`). `preaggregate-hidden-field`: a `#@ preaggregate` on a
|
|
5924
|
+
private or internal field or grain dimension (`warn`).
|
|
5709
5925
|
`join-bypass`: an author join from a published source to one
|
|
5710
5926
|
with a stricter gate, which the join does not carry (one per
|
|
5711
5927
|
join, or one for a walk cut short at the join bound; always
|
|
5712
5928
|
a `warn`, never a load refusal; see docs/authorize.md).
|
|
5929
|
+
`storage-column-type-mismatch`: a `storage=` table stores a
|
|
5930
|
+
column as a type other than the one Malloy declares for it.
|
|
5931
|
+
It is read through a cast to the declared type where that is
|
|
5932
|
+
faithful, and otherwise answered live (one per source and
|
|
5933
|
+
column, `model` the first model binding it, `subject` the
|
|
5934
|
+
source, the message naming the column, both types and which
|
|
5935
|
+
of the two applies; `warn`; see docs/materialization.md).
|
|
5713
5936
|
`entities-…` (`entities-not-a-dimension`,
|
|
5714
5937
|
`entities-parameterized-source`,
|
|
5715
5938
|
`entities-multiple-required-filters`,
|
|
@@ -5878,6 +6101,19 @@ components:
|
|
|
5878
6101
|
**Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.storageServeBindings`). Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
5879
6102
|
items:
|
|
5880
6103
|
$ref: "#/components/schemas/StorageServeBinding"
|
|
6104
|
+
serveVerdicts:
|
|
6105
|
+
type: array
|
|
6106
|
+
readOnly: true
|
|
6107
|
+
description: >-
|
|
6108
|
+
Present only on the answer to `POST …/packages?dryRun=true`: the
|
|
6109
|
+
serve verdict of each source the package would materialize, as
|
|
6110
|
+
`PackageServingState.serveVerdicts` reports it once published,
|
|
6111
|
+
plus each stored source's named views compiled against a serve
|
|
6112
|
+
shape declared from the plan's output columns, which needs no
|
|
6113
|
+
built table. A served package reports its verdicts at
|
|
6114
|
+
`GET …/packages/{packageName}/status`.
|
|
6115
|
+
items:
|
|
6116
|
+
$ref: "#/components/schemas/ServeVerdict"
|
|
5881
6117
|
buildPlan:
|
|
5882
6118
|
deprecated: true
|
|
5883
6119
|
oneOf:
|
|
@@ -6254,14 +6490,14 @@ components:
|
|
|
6254
6490
|
starts every package's index again, but vectors already stored for
|
|
6255
6491
|
unchanged content are reused, so a restart over an unchanged package
|
|
6256
6492
|
embeds nothing new.
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6493
|
+
The counts are the search index's own: the vectors it holds in
|
|
6494
|
+
`catalog_embeddings` under the embedding model currently configured,
|
|
6495
|
+
so rows left behind by an earlier model are never counted. Every count
|
|
6496
|
+
is 0 until the index build reaches its vectors step, and 0 again while
|
|
6497
|
+
`status` is `error`. Read `status` for readiness and the counts for
|
|
6498
|
+
progress: they answer different questions, and only `status` tracks
|
|
6499
|
+
what the search path will do. A read is answered from memory and never
|
|
6500
|
+
waits on a build, so polling is cheap.
|
|
6265
6501
|
properties:
|
|
6266
6502
|
status:
|
|
6267
6503
|
type: string
|
|
@@ -6388,38 +6624,35 @@ components:
|
|
|
6388
6624
|
embeddedRows:
|
|
6389
6625
|
type: integer
|
|
6390
6626
|
description: >-
|
|
6391
|
-
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
search could read today: after a change to `EMBEDDING_DIMENSIONS`
|
|
6401
|
-
that no question has probed yet, rows of the old length are still
|
|
6402
|
-
counted here until the next search discards them. `status` is
|
|
6403
|
-
already `indexing` in that window.
|
|
6627
|
+
Vectors the index holds for this package under the current
|
|
6628
|
+
embedding model, reused or newly embedded; it rises batch by batch
|
|
6629
|
+
while `indexing`. With the default `retrieval.representation` of
|
|
6630
|
+
`single` an entity contributes one row, so this equals
|
|
6631
|
+
`totalEntities` once indexed. With `facets` an entity contributes
|
|
6632
|
+
one row for its name plus one per chunk of its documentation, so
|
|
6633
|
+
this exceeds `totalEntities` on a documented model and is not a
|
|
6634
|
+
count of entities. A vector stored under another embedding model or
|
|
6635
|
+
`EMBEDDING_DIMENSIONS` is embedded again rather than counted.
|
|
6404
6636
|
totalRows:
|
|
6405
6637
|
type: integer
|
|
6406
6638
|
description: >-
|
|
6407
|
-
Rows the
|
|
6408
|
-
`embeddedRows` of `totalRows` is the progress of a
|
|
6639
|
+
Rows the index wants for this package: the denominator for
|
|
6640
|
+
`embeddedRows`. `embeddedRows` of `totalRows` is the progress of a
|
|
6641
|
+
build.
|
|
6409
6642
|
totalEntities:
|
|
6410
6643
|
type: integer
|
|
6411
|
-
description:
|
|
6644
|
+
description: >-
|
|
6645
|
+
Entities the package exposes to retrieval, each of which wants at
|
|
6646
|
+
least one row.
|
|
6412
6647
|
embeddedEntities:
|
|
6413
6648
|
type: integer
|
|
6414
6649
|
description: >-
|
|
6415
|
-
Of `totalEntities`, how many have at least one
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
equality does NOT imply `ready
|
|
6420
|
-
|
|
6421
|
-
name vector. Read `status` for readiness and this pair for how
|
|
6422
|
-
much of the package is covered.
|
|
6650
|
+
Of `totalEntities`, how many have at least one vector. Reported
|
|
6651
|
+
because a row count cannot show a model edit that removes two
|
|
6652
|
+
entities and adds two others: the row total is unchanged while the
|
|
6653
|
+
new entities have no vector at all. Coverage by identity, so
|
|
6654
|
+
equality does NOT imply `ready`. Read `status` for readiness and
|
|
6655
|
+
this pair for how much of the package is covered.
|
|
6423
6656
|
lastSyncedAt:
|
|
6424
6657
|
type: string
|
|
6425
6658
|
format: date-time
|
|
@@ -8270,8 +8503,10 @@ components:
|
|
|
8270
8503
|
declined it — a storage-tier miss, reported identically to "no
|
|
8271
8504
|
materialization exists anywhere."
|
|
8272
8505
|
|
|
8273
|
-
Case 3 is the one that costs time, because nothing about
|
|
8274
|
-
distinguishes it from case 1.
|
|
8506
|
+
Case 3 is the one that costs time, because nothing about this field
|
|
8507
|
+
distinguishes it from case 1. `path`, the path report, does: it names
|
|
8508
|
+
the table that answered in every tier, and why each table that could
|
|
8509
|
+
have answered did not. The server does log it: one
|
|
8275
8510
|
`storage serve-shape ineligible for this query; serving live` line at
|
|
8276
8511
|
INFO per routed query, carrying the compile error that made the shape
|
|
8277
8512
|
ineligible, plus `shapeSources` (what the shape offered) and
|
|
@@ -8350,6 +8585,257 @@ components:
|
|
|
8350
8585
|
query is indistinguishable here from a backend that cannot say. Free
|
|
8351
8586
|
and unknown are the same value, and a savings calculation built on
|
|
8352
8587
|
this will treat free queries as unmeasured rather than as free.
|
|
8588
|
+
path:
|
|
8589
|
+
$ref: "#/components/schemas/QueryPath"
|
|
8590
|
+
description: >-
|
|
8591
|
+
The path report: what answered this query and why. It names the
|
|
8592
|
+
materialized table that served it (or `live`), every materialized
|
|
8593
|
+
table on the queried source's chain with the reason each one that
|
|
8594
|
+
did not answer was skipped, and nearby tables the query could not
|
|
8595
|
+
use. Unlike `servedFrom`, it covers the colocated `#@ persist` tier
|
|
8596
|
+
and pre-aggregation rollups as well as `storage=`, so a null
|
|
8597
|
+
`servedFrom` no longer hides whether a table answered.
|
|
8598
|
+
|
|
8599
|
+
Absent only when the report could not be assembled; the query's
|
|
8600
|
+
answer never depends on it.
|
|
8601
|
+
|
|
8602
|
+
QueryPath:
|
|
8603
|
+
type: object
|
|
8604
|
+
description: >-
|
|
8605
|
+
The path report: what answered a query and why. Agents read it to learn
|
|
8606
|
+
whether a materialized table answered, and if not, what would let one.
|
|
8607
|
+
Tables are named by `tableId`, the source's content address
|
|
8608
|
+
(`sourceEntityId` in the build plan and manifest), because a source name
|
|
8609
|
+
alone is ambiguous across a package's models. `warnings` is always
|
|
8610
|
+
present (empty when there are none). The join paths the query crossed
|
|
8611
|
+
(`joins`, in the v1 API's path report) arrive in a later release, with
|
|
8612
|
+
reference and inline joins; until then the report carries none.
|
|
8613
|
+
required: [query, servedBy, considered, notConsidered]
|
|
8614
|
+
properties:
|
|
8615
|
+
query:
|
|
8616
|
+
$ref: "#/components/schemas/QueryShape"
|
|
8617
|
+
servedBy:
|
|
8618
|
+
$ref: "#/components/schemas/QueryPathServer"
|
|
8619
|
+
considered:
|
|
8620
|
+
type: array
|
|
8621
|
+
description: >-
|
|
8622
|
+
Every materialized table on the queried source's chain, and every
|
|
8623
|
+
rollup of a source on it, that could have answered this query: the
|
|
8624
|
+
one that served it marked `used`, the rest `skipped` with a reason.
|
|
8625
|
+
In the order Publisher tries them: `storage=` tables, then colocated
|
|
8626
|
+
rollups, then colocated `#@ persist` tables nearest first. A table
|
|
8627
|
+
that was not tried because an earlier one answered is left out.
|
|
8628
|
+
Empty when the queried source has no materialized table.
|
|
8629
|
+
items:
|
|
8630
|
+
$ref: "#/components/schemas/QueryPathCandidate"
|
|
8631
|
+
notConsidered:
|
|
8632
|
+
type: array
|
|
8633
|
+
description: >-
|
|
8634
|
+
Materialized tables near the queried source that this query cannot
|
|
8635
|
+
use: a sibling's (a source sharing an ancestor, off the queried
|
|
8636
|
+
source's chain), or one on a source that extends the queried one.
|
|
8637
|
+
Nearest first, at most ten. They say what the model has that this
|
|
8638
|
+
query cannot use, and where moving the query, or an annotation, would
|
|
8639
|
+
let a table answer.
|
|
8640
|
+
items:
|
|
8641
|
+
$ref: "#/components/schemas/QueryPathNearby"
|
|
8642
|
+
warnings:
|
|
8643
|
+
type: array
|
|
8644
|
+
description: >-
|
|
8645
|
+
The serve verdicts behind this query's `WARNED` skips: one per table
|
|
8646
|
+
on the queried source's chain that no query can be answered from,
|
|
8647
|
+
each with a code and a sentence for a person. A table whose source
|
|
8648
|
+
the caller cannot list is left out, as in `notConsidered`. Empty
|
|
8649
|
+
when there are none. The package's own warnings, and its status,
|
|
8650
|
+
carry the full message and the fixes.
|
|
8651
|
+
items:
|
|
8652
|
+
$ref: "#/components/schemas/QueryPathWarning"
|
|
8653
|
+
|
|
8654
|
+
QueryPathWarning:
|
|
8655
|
+
type: object
|
|
8656
|
+
description: Why a table on the queried source's chain answers no query.
|
|
8657
|
+
required: [code, tableId, message]
|
|
8658
|
+
properties:
|
|
8659
|
+
code:
|
|
8660
|
+
type: string
|
|
8661
|
+
description: >-
|
|
8662
|
+
The serve verdict's reason: `storage_mode` (built into storage, but
|
|
8663
|
+
the server's PERSIST_STORAGE_MODE routes no query to it),
|
|
8664
|
+
`unreachable` (no published source reaches it), `row_level_gate`
|
|
8665
|
+
(every published entry point over it carries a gate it cannot keep
|
|
8666
|
+
yet), `refused` (the package refuses to serve it), `shadowed` (its
|
|
8667
|
+
storage table is bound to another source of the same name) or
|
|
8668
|
+
`served_copy` (only the served copy reads it, and it does not answer
|
|
8669
|
+
from it). An open
|
|
8670
|
+
set: treat a code you do not know as a warning like any other.
|
|
8671
|
+
tableId:
|
|
8672
|
+
type: string
|
|
8673
|
+
description: The table, as `considered` names it.
|
|
8674
|
+
sourceName:
|
|
8675
|
+
type: string
|
|
8676
|
+
description: The source a query names to reach the table; for a rollup, the source it rolls up.
|
|
8677
|
+
message:
|
|
8678
|
+
type: string
|
|
8679
|
+
description: What the code means, for a person. Never a refusal's own detail.
|
|
8680
|
+
|
|
8681
|
+
QueryShape:
|
|
8682
|
+
type: object
|
|
8683
|
+
description: >-
|
|
8684
|
+
The query's shape, as routing reads it: the stage that touches the
|
|
8685
|
+
source's data.
|
|
8686
|
+
required: [sourceName, groupedBy, filteredBy, measures]
|
|
8687
|
+
properties:
|
|
8688
|
+
sourceName:
|
|
8689
|
+
type: string
|
|
8690
|
+
description: The source the query reads.
|
|
8691
|
+
viewName:
|
|
8692
|
+
type: string
|
|
8693
|
+
description: >-
|
|
8694
|
+
The view the request named (`queryName` with `sourceName`). Absent
|
|
8695
|
+
for a query written inline, including one written as `run: source ->
|
|
8696
|
+
view`.
|
|
8697
|
+
groupedBy:
|
|
8698
|
+
type: array
|
|
8699
|
+
description: >-
|
|
8700
|
+
The dimensions the query groups by (or selects), as dotted paths from
|
|
8701
|
+
`sourceName`. A dimension defined in the query lists the fields it
|
|
8702
|
+
reads.
|
|
8703
|
+
items:
|
|
8704
|
+
type: string
|
|
8705
|
+
filteredBy:
|
|
8706
|
+
type: array
|
|
8707
|
+
description: The fields the query's filters read, as dotted paths from `sourceName`.
|
|
8708
|
+
items:
|
|
8709
|
+
type: string
|
|
8710
|
+
measures:
|
|
8711
|
+
type: array
|
|
8712
|
+
description: >-
|
|
8713
|
+
The measures the query aggregates, as dotted paths from
|
|
8714
|
+
`sourceName`. A measure defined in the query lists the fields it
|
|
8715
|
+
aggregates.
|
|
8716
|
+
items:
|
|
8717
|
+
type: string
|
|
8718
|
+
timeZone:
|
|
8719
|
+
type: string
|
|
8720
|
+
description: The query's time zone, when it sets one.
|
|
8721
|
+
|
|
8722
|
+
QueryPathServer:
|
|
8723
|
+
type: object
|
|
8724
|
+
description: What answered the query.
|
|
8725
|
+
required: [kind]
|
|
8726
|
+
properties:
|
|
8727
|
+
kind:
|
|
8728
|
+
$ref: "#/components/schemas/QueryPathTableKind"
|
|
8729
|
+
tableId:
|
|
8730
|
+
type: string
|
|
8731
|
+
description: The table that answered. Absent when `kind` is `live`.
|
|
8732
|
+
dataAsOf:
|
|
8733
|
+
type: string
|
|
8734
|
+
format: date-time
|
|
8735
|
+
description: >-
|
|
8736
|
+
The moment the table's rows reflect, as on its manifest entry. Absent
|
|
8737
|
+
when `kind` is `live`, or when the manifest entry does not record it.
|
|
8738
|
+
via:
|
|
8739
|
+
type: string
|
|
8740
|
+
description: >-
|
|
8741
|
+
How a `materialized` table was read, when it was not today's serve
|
|
8742
|
+
shape: `served_copy` means the model's served copy answered (the
|
|
8743
|
+
author's own files with each stored source re-rooted on its table,
|
|
8744
|
+
behind `PUBLISHER_MATERIALIZE`). An open string; absent
|
|
8745
|
+
otherwise.
|
|
8746
|
+
|
|
8747
|
+
QueryPathCandidate:
|
|
8748
|
+
type: object
|
|
8749
|
+
description: A materialized table that could have answered the query.
|
|
8750
|
+
required: [tableId, kind, outcome]
|
|
8751
|
+
properties:
|
|
8752
|
+
tableId:
|
|
8753
|
+
type: string
|
|
8754
|
+
kind:
|
|
8755
|
+
$ref: "#/components/schemas/QueryPathTableKind"
|
|
8756
|
+
outcome:
|
|
8757
|
+
type: string
|
|
8758
|
+
enum: [used, skipped]
|
|
8759
|
+
description: "`used`, the table answered; `skipped`, it could not, and `reason` says why."
|
|
8760
|
+
reason:
|
|
8761
|
+
$ref: "#/components/schemas/SkipReason"
|
|
8762
|
+
code:
|
|
8763
|
+
type: string
|
|
8764
|
+
description: >-
|
|
8765
|
+
For a `WARNED` skip, the serve verdict's reason the table answers no
|
|
8766
|
+
query: `storage_mode`, `unreachable`, `row_level_gate`, `refused`,
|
|
8767
|
+
`shadowed` or `served_copy` (see `QueryPathWarning`); or, for a table only the served
|
|
8768
|
+
copy reads, `served-copy-not-served` (the package warning of that
|
|
8769
|
+
code) or `persist-opt-out` (the queried source opts out with
|
|
8770
|
+
`#@ -persist`). An open set. Absent on any
|
|
8771
|
+
other outcome, and on a `WARNED` skip whose verdict is not known.
|
|
8772
|
+
detail:
|
|
8773
|
+
type: string
|
|
8774
|
+
description: >-
|
|
8775
|
+
For a skip, the specifics, for a person, in the caller's own terms:
|
|
8776
|
+
for example the field path or aggregate in the query that a rollup
|
|
8777
|
+
cannot reproduce. Never an internal error message (a compile error
|
|
8778
|
+
against the stored form, a run-time storage error), which can name
|
|
8779
|
+
storage paths or synthesized sources; those skips carry no detail.
|
|
8780
|
+
Absent when `outcome` is `used`.
|
|
8781
|
+
|
|
8782
|
+
QueryPathNearby:
|
|
8783
|
+
type: object
|
|
8784
|
+
description: A materialized table near the queried source that this query cannot use.
|
|
8785
|
+
required: [tableId, kind, sourceName, relationship, built]
|
|
8786
|
+
properties:
|
|
8787
|
+
tableId:
|
|
8788
|
+
type: string
|
|
8789
|
+
kind:
|
|
8790
|
+
$ref: "#/components/schemas/QueryPathTableKind"
|
|
8791
|
+
sourceName:
|
|
8792
|
+
type: string
|
|
8793
|
+
description: The source the table materializes; for a rollup, the source it rolls up.
|
|
8794
|
+
relationship:
|
|
8795
|
+
type: string
|
|
8796
|
+
enum: [sibling, below]
|
|
8797
|
+
description: >-
|
|
8798
|
+
`sibling`, its source shares an ancestor with the queried source but
|
|
8799
|
+
is off its chain; `below`, its source extends the queried one.
|
|
8800
|
+
built:
|
|
8801
|
+
type: boolean
|
|
8802
|
+
description: Whether the table is bound to this package.
|
|
8803
|
+
|
|
8804
|
+
QueryPathTableKind:
|
|
8805
|
+
type: string
|
|
8806
|
+
enum: [view, rollup, materialized, live]
|
|
8807
|
+
description: >-
|
|
8808
|
+
What kind of answer: `view`, a persisted view's table; `rollup`, a
|
|
8809
|
+
pre-aggregation; `materialized`, a materialized source's table; `live`,
|
|
8810
|
+
the source's own warehouse.
|
|
8811
|
+
|
|
8812
|
+
SkipReason:
|
|
8813
|
+
type: string
|
|
8814
|
+
enum:
|
|
8815
|
+
- NOT_BUILT
|
|
8816
|
+
- WARNED
|
|
8817
|
+
- MISSING_FIELD
|
|
8818
|
+
- CONTRACT
|
|
8819
|
+
- GRAIN_TOO_COARSE
|
|
8820
|
+
- TIME_ZONE
|
|
8821
|
+
- CROSS_CONNECTION
|
|
8822
|
+
- COUNT_SEMANTICS
|
|
8823
|
+
- STALE
|
|
8824
|
+
- RUN_FAILED
|
|
8825
|
+
description: >-
|
|
8826
|
+
Why a table could not answer a query. `NOT_BUILT`, it is not bound to
|
|
8827
|
+
this package; `WARNED`, its annotation carries a publish warning and
|
|
8828
|
+
serves live, and the candidate's `code` says which; `MISSING_FIELD`, the query reads a field the table lacks (or
|
|
8829
|
+
otherwise does not compile against it); `CONTRACT`, answering from it
|
|
8830
|
+
would bypass an access control on the queried source; `GRAIN_TOO_COARSE`,
|
|
8831
|
+
a rollup's grain does not cover the query's groups or filters;
|
|
8832
|
+
`TIME_ZONE`, it was built in another time zone than the query's;
|
|
8833
|
+
`CROSS_CONNECTION`, the query needs a join the table's connection cannot
|
|
8834
|
+
reach; `COUNT_SEMANTICS`, an aggregate the table cannot reproduce as the
|
|
8835
|
+
live query computes it; `STALE`, it is past its freshness window;
|
|
8836
|
+
`RUN_FAILED`, it was chosen but reading it failed at run time, and its
|
|
8837
|
+
freshness fallback allowed live. A closed list to which codes may be
|
|
8838
|
+
added, so a client treats an unknown one as a skip it cannot explain.
|
|
8353
8839
|
|
|
8354
8840
|
LogMessage:
|
|
8355
8841
|
type: object
|
|
@@ -9304,10 +9790,41 @@ components:
|
|
|
9304
9790
|
type: string
|
|
9305
9791
|
description: Table source as a JSON string.
|
|
9306
9792
|
columns:
|
|
9307
|
-
description:
|
|
9793
|
+
description: |
|
|
9794
|
+
The table's columns. A record column (a BigQuery RECORD, a DuckDB
|
|
9795
|
+
STRUCT, a Trino ROW, a Databricks STRUCT) is followed by its members, named by their
|
|
9796
|
+
dotted path (`delivery.city`, `delivery.address.zip`). A member
|
|
9797
|
+
that follows an `array` column belongs to a repeated record: it
|
|
9798
|
+
has one value per element of the array, not one per row. A member
|
|
9799
|
+
whose name is not a plain identifier (`a.b`, `two words`) is not
|
|
9800
|
+
listed, nor anything under it.
|
|
9801
|
+
|
|
9802
|
+
Types: a member always has Malloy's type name (`string`,
|
|
9803
|
+
`number`, `record`, `array`). A top-level column has the type the
|
|
9804
|
+
database reports in a schema listing on a dialect read through
|
|
9805
|
+
INFORMATION_SCHEMA (DuckDB, Trino, Postgres and others; on
|
|
9806
|
+
Databricks a STRUCT or ARRAY column reports its full_data_type,
|
|
9807
|
+
`struct<city:string>`), and
|
|
9808
|
+
Malloy's type name in a BigQuery listing and from the single-table
|
|
9809
|
+
route.
|
|
9308
9810
|
type: array
|
|
9309
9811
|
items:
|
|
9310
9812
|
$ref: "#/components/schemas/Column"
|
|
9813
|
+
membersUnread:
|
|
9814
|
+
type: boolean
|
|
9815
|
+
description: >-
|
|
9816
|
+
Present, and true, when the table has a record column (a DuckDB
|
|
9817
|
+
STRUCT, a Trino ROW, a Databricks STRUCT) whose members this
|
|
9818
|
+
listing did not add to `columns`: the table's schema read failed,
|
|
9819
|
+
or had not finished within the listing's time limit. Either can
|
|
9820
|
+
clear on a later listing. `columns` then holds the database's
|
|
9821
|
+
top-level columns only, so a missing member is not a removed one.
|
|
9822
|
+
Absent when every record's members are listed, and when they are
|
|
9823
|
+
never listed: a column type that declares none (a plain array,
|
|
9824
|
+
a Snowflake OBJECT), or a table name that needs quoting.
|
|
9825
|
+
Never set on BigQuery, whose listing reads each table's whole
|
|
9826
|
+
schema: a table whose read failed there is listed with no
|
|
9827
|
+
columns.
|
|
9311
9828
|
|
|
9312
9829
|
TemporaryTable:
|
|
9313
9830
|
type: object
|
|
@@ -9393,6 +9910,12 @@ components:
|
|
|
9393
9910
|
* PACKAGE_IS_VERSIONED (409): the package has published versions,
|
|
9394
9911
|
so it cannot be changed in place (a write, or a publish with
|
|
9395
9912
|
package versioning off).
|
|
9913
|
+
* PACKAGE_INSTALLED_FROM_LOCATION (409): the package is fetched
|
|
9914
|
+
again from a `location` on reload, which would discard a report
|
|
9915
|
+
write or a package update's change to its settings.
|
|
9916
|
+
* FILE_EXISTS (409): a report write with no `expectedHash` (a
|
|
9917
|
+
create) found a file already at the path; another path may be
|
|
9918
|
+
free. A stale `expectedHash` answers 409 with no `reason`.
|
|
9396
9919
|
* VERSION_IS_LATEST (409): the package's `latest` version cannot be
|
|
9397
9920
|
archived, or deleted while other versions remain.
|
|
9398
9921
|
* VERSION_IS_LAST_ACTIVE (409): the package's last version in
|
|
@@ -9411,7 +9934,8 @@ components:
|
|
|
9411
9934
|
Known values: TABLE_NOT_FOUND, CONNECTION_FAILED,
|
|
9412
9935
|
CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND,
|
|
9413
9936
|
MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID,
|
|
9414
|
-
VERSION_CONFLICT, PACKAGE_IS_VERSIONED,
|
|
9937
|
+
VERSION_CONFLICT, PACKAGE_IS_VERSIONED,
|
|
9938
|
+
PACKAGE_INSTALLED_FROM_LOCATION, FILE_EXISTS, VERSION_IS_LATEST,
|
|
9415
9939
|
VERSION_IS_LAST_ACTIVE, VERSION_BUILDING, VERSION_ID_INVALID,
|
|
9416
9940
|
VERSION_NOT_LATEST, VERSION_NOT_FOUND, VERSION_ARCHIVED.
|
|
9417
9941
|
problems:
|
|
@@ -9886,13 +10410,22 @@ components:
|
|
|
9886
10410
|
description: Error message if the materialization failed
|
|
9887
10411
|
metadata:
|
|
9888
10412
|
type: ["object", "null"]
|
|
9889
|
-
description:
|
|
10413
|
+
description: >-
|
|
9890
10414
|
Materialization metadata including build options, source counts,
|
|
9891
10415
|
and durations. Free-form object — fields such as `trigger`
|
|
9892
10416
|
(ON_DEMAND | SCHEDULER) live here deliberately, so a strict-schema
|
|
9893
10417
|
client does not need to know them. Promoting any such field to a
|
|
9894
10418
|
top-level `Materialization` property is a breaking schema change
|
|
9895
10419
|
that orchestrated clients must adopt first; do not do it casually.
|
|
10420
|
+
`errorRetryable` (boolean) is set on a FAILED run that built
|
|
10421
|
+
nothing, which commits no manifest and so reports no per-source
|
|
10422
|
+
`failures`: `false` when every source failed deterministically or
|
|
10423
|
+
was refused, `true` when any failure was transient, with the same
|
|
10424
|
+
rules as `SourceFailure.retryable`. Absent when unclassified, for a
|
|
10425
|
+
cancelled run, and from a Publisher that predates it.
|
|
10426
|
+
`errorAtCancel` (string) is set on a CANCELLED run whose last
|
|
10427
|
+
error was not the cancellation itself: the message of the failure
|
|
10428
|
+
the cancel raced, which `error` reports only as "Cancelled".
|
|
9896
10429
|
createdAt:
|
|
9897
10430
|
type: string
|
|
9898
10431
|
format: date-time
|
|
@@ -9940,6 +10473,108 @@ components:
|
|
|
9940
10473
|
former.
|
|
9941
10474
|
additionalProperties:
|
|
9942
10475
|
$ref: "#/components/schemas/RefusedSource"
|
|
10476
|
+
omittedSources:
|
|
10477
|
+
type: array
|
|
10478
|
+
description: >-
|
|
10479
|
+
The sources this plan would have listed but left out because
|
|
10480
|
+
planning them FAILED, sorted by `sourceID`: a generated companion
|
|
10481
|
+
(a pre-aggregation rollup, a `#(materialize)` build source, a
|
|
10482
|
+
persisted view, the v1 build copy) that did not compile, or a
|
|
10483
|
+
source whose plan entry could not be projected. Each is a planner
|
|
10484
|
+
failure, not a decision: a source the plan decides not to build is
|
|
10485
|
+
in `refusedSources` or reported as a package warning, and is not
|
|
10486
|
+
listed here. Never names a sourceID that is in `sources`. Every
|
|
10487
|
+
entry is a real sourceID: a failure that came before its sources
|
|
10488
|
+
could be named is in `omittedFiles` instead.
|
|
10489
|
+
|
|
10490
|
+
Lets a host tell "this source left the plan" from "this plan could
|
|
10491
|
+
not say": when both this list and `omittedFiles` are empty, every
|
|
10492
|
+
source the package's declarations plan is in `sources` or
|
|
10493
|
+
`refusedSources`, so a host may retire an anchor whose source is
|
|
10494
|
+
absent from both. Otherwise the plan is incomplete: an anchor
|
|
10495
|
+
whose source an entry names, or whose source is declared in a
|
|
10496
|
+
file `omittedFiles` names, must be kept. Always present on a plan
|
|
10497
|
+
from a Publisher that reports it (`[]` when nothing was lost);
|
|
10498
|
+
absent on one from an older Publisher, which must be read as
|
|
10499
|
+
"completeness unknown".
|
|
10500
|
+
items:
|
|
10501
|
+
$ref: "#/components/schemas/OmittedSource"
|
|
10502
|
+
omittedFiles:
|
|
10503
|
+
type: array
|
|
10504
|
+
description: >-
|
|
10505
|
+
The files whose sources this plan could not name, sorted by
|
|
10506
|
+
`file`: a generated companion whose planning failed before it
|
|
10507
|
+
knew which sources it would plan. A host must retire nothing
|
|
10508
|
+
declared in a listed file (a sourceID whose part after its `@` is
|
|
10509
|
+
that `file`), since any of them may have been lost. Always
|
|
10510
|
+
present beside `omittedSources` (`[]` when nothing was lost);
|
|
10511
|
+
absent on a plan from a Publisher that predates it.
|
|
10512
|
+
items:
|
|
10513
|
+
$ref: "#/components/schemas/OmittedFile"
|
|
10514
|
+
|
|
10515
|
+
OmittedSource:
|
|
10516
|
+
type: object
|
|
10517
|
+
description: >-
|
|
10518
|
+
One source a build plan left out because planning it failed, and a
|
|
10519
|
+
code for the failure. Carries names and a code only: never the
|
|
10520
|
+
failure's message, which could quote the source's SQL or a value.
|
|
10521
|
+
The failure itself is logged at the Publisher, with the model it
|
|
10522
|
+
was planned from.
|
|
10523
|
+
required: [sourceID, reason]
|
|
10524
|
+
properties:
|
|
10525
|
+
sourceID:
|
|
10526
|
+
type: string
|
|
10527
|
+
description: >-
|
|
10528
|
+
"sourceName@modelURL", the key the source would have had in
|
|
10529
|
+
`sources`. Always a real sourceID, never a pattern.
|
|
10530
|
+
reason:
|
|
10531
|
+
type: string
|
|
10532
|
+
description: >-
|
|
10533
|
+
Why the source was left out, as a code. An OPEN set: a client must
|
|
10534
|
+
accept a code it does not know (read it as a failure) rather than
|
|
10535
|
+
reject the plan. Today's codes: `unkeyable` (Malloy could not key
|
|
10536
|
+
the source's build: an unbound parameter or a given with no
|
|
10537
|
+
value); `eligibility_check_failed` (an eligibility gate failed
|
|
10538
|
+
with an error rather than a refusal); `projection_failed` (the
|
|
10539
|
+
plan entry could not otherwise be computed);
|
|
10540
|
+
`rollup_companion_failed` (the generated `#(preaggregate)` rollup
|
|
10541
|
+
companion, which also plans v1 `#@ preaggregate` rollups, did not
|
|
10542
|
+
plan or compile); `rollup_companion_blanking_failed` (that companion was
|
|
10543
|
+
not built because a `#@` line of the author's files could not be
|
|
10544
|
+
set aside); `materialize_companion_failed` (the generated
|
|
10545
|
+
`#(materialize)` companion did not plan or compile);
|
|
10546
|
+
`persisted_view_companion_failed` (the persisted-view companion
|
|
10547
|
+
did not plan or compile); `v1_build_companion_failed` (the build
|
|
10548
|
+
copy of a model file without
|
|
10549
|
+
`##! experimental.persistence` did not compile, so none of its
|
|
10550
|
+
`#@ persist` sources were planned);
|
|
10551
|
+
`persist_annotation_unparseable` (none of the source's `#@` lines
|
|
10552
|
+
parse, so Malloy planned nothing for it; the package warning
|
|
10553
|
+
names the line).
|
|
10554
|
+
|
|
10555
|
+
OmittedFile:
|
|
10556
|
+
type: object
|
|
10557
|
+
description: >-
|
|
10558
|
+
A file whose sources a build plan could not name, because the
|
|
10559
|
+
planner that would have named them failed first, and a code for the
|
|
10560
|
+
failure. Carries the file and a code only, never the failure's
|
|
10561
|
+
message.
|
|
10562
|
+
required: [file, reason]
|
|
10563
|
+
properties:
|
|
10564
|
+
file:
|
|
10565
|
+
type: string
|
|
10566
|
+
description: >-
|
|
10567
|
+
The URL every sourceID declared in the file carries after its
|
|
10568
|
+
`@` (`sourceName@<file>`): for a generated companion, the
|
|
10569
|
+
companion's own URL, which its generated sources' sourceIDs
|
|
10570
|
+
carry. Formed as the sourceIDs in `sources` are, so it matches
|
|
10571
|
+
them on the same server.
|
|
10572
|
+
reason:
|
|
10573
|
+
type: string
|
|
10574
|
+
description: >-
|
|
10575
|
+
Why, as a code from the same OPEN set as
|
|
10576
|
+
`OmittedSource.reason`; a client must accept a code it does not
|
|
10577
|
+
know.
|
|
9943
10578
|
|
|
9944
10579
|
RefusedSource:
|
|
9945
10580
|
type: object
|
|
@@ -10002,6 +10637,8 @@ components:
|
|
|
10002
10637
|
not_duckdb_portable,
|
|
10003
10638
|
public_surface_unknown,
|
|
10004
10639
|
read_only_dialect,
|
|
10640
|
+
env_reference,
|
|
10641
|
+
rollup_name_collision,
|
|
10005
10642
|
]
|
|
10006
10643
|
description: >-
|
|
10007
10644
|
The bounded refusal reason. Only the compile-time reasons can
|
|
@@ -10015,9 +10652,16 @@ components:
|
|
|
10015
10652
|
cannot be expressed over the stored table's own columns),
|
|
10016
10653
|
`preaggregate_over_dynamic_source` (a rollup whose base is scoped by
|
|
10017
10654
|
a given, which has no read-time re-application to put the term back),
|
|
10018
|
-
|
|
10655
|
+
`read_only_dialect` (a colocated `#@ persist` on a source whose
|
|
10019
10656
|
dialect cannot create tables; SQL Server today, whose connection
|
|
10020
|
-
reports `canPersist: false`)
|
|
10657
|
+
reports `canPersist: false`), `env_reference` (a source with an
|
|
10658
|
+
`@env.` reference on one of its `#@` lines, whose directives are all
|
|
10659
|
+
ignored, so it serves live rather than build into the source
|
|
10660
|
+
warehouse), and `rollup_name_collision` (a
|
|
10661
|
+
pre-aggregation rollup whose generated name, and so its table, is
|
|
10662
|
+
also another model's rollup with different content; neither builds
|
|
10663
|
+
or serves, and each model answers from its base) — those being the
|
|
10664
|
+
only reasons the two
|
|
10021
10665
|
compile-time eligibility asserts this collection is computed from
|
|
10022
10666
|
produce.
|
|
10023
10667
|
|
|
@@ -10515,6 +11159,25 @@ components:
|
|
|
10515
11159
|
in referenceManifest fails the build (compiler strict mode) instead
|
|
10516
11160
|
of silently recomputing it live. Per-unit dispatch should set this
|
|
10517
11161
|
true.
|
|
11162
|
+
warehouseReach:
|
|
11163
|
+
type: string
|
|
11164
|
+
default: recompute
|
|
11165
|
+
description: >-
|
|
11166
|
+
What a strict build (`strictUpstreams: true`) does with a
|
|
11167
|
+
`storage=` source whose only build recomputes a stored upstream
|
|
11168
|
+
from the source warehouse: the source reaches the warehouse through
|
|
11169
|
+
an intermediate that no stored table can stand in for, so no build
|
|
11170
|
+
over the stored tables exists for it. `recompute` (the default,
|
|
11171
|
+
and what an absent or null value means) builds it and reports
|
|
11172
|
+
`upstreamReuse: recomputed` with the reason; `refuse` fails the
|
|
11173
|
+
source instead, with that reason in its `SourceFailure.reason` and
|
|
11174
|
+
`retryable: false`, and nothing reads the warehouse. Non-strict
|
|
11175
|
+
builds ignore it, as they ignore `strictUpstreams`.
|
|
11176
|
+
|
|
11177
|
+
|
|
11178
|
+
An open string, not an enum, so a later value needs no client
|
|
11179
|
+
change; today's values are `recompute` and `refuse`, and any other
|
|
11180
|
+
is a 400.
|
|
10518
11181
|
ledger:
|
|
10519
11182
|
type: array
|
|
10520
11183
|
items:
|
|
@@ -10565,6 +11228,19 @@ components:
|
|
|
10565
11228
|
case-folding engine (Snowflake). Optional: omit it and the reference
|
|
10566
11229
|
seeds unquoted (the pre-existing behavior), which fails a downstream
|
|
10567
11230
|
build on such an engine.
|
|
11231
|
+
storageDestinationName:
|
|
11232
|
+
type: string
|
|
11233
|
+
description: >-
|
|
11234
|
+
The storage destination the upstream table lives in, for a table a
|
|
11235
|
+
`storage=` build wrote; omit it for a table in the source's own
|
|
11236
|
+
warehouse. A stored table's `connectionName` is the source's
|
|
11237
|
+
warehouse connection, so without this field a reference to a stored
|
|
11238
|
+
table reads as a warehouse table. The publisher uses a reference as
|
|
11239
|
+
an upstream only where this agrees with where the upstream source is
|
|
11240
|
+
declared now (a source that moved to or from `storage=` keeps its
|
|
11241
|
+
content address): a stored upstream is stacked on in its
|
|
11242
|
+
destination, and never rendered into warehouse SQL. Optional and
|
|
11243
|
+
additive: a reference without it still serves a colocated upstream.
|
|
10568
11244
|
|
|
10569
11245
|
BuildInstruction:
|
|
10570
11246
|
type: object
|
|
@@ -10819,9 +11495,48 @@ components:
|
|
|
10819
11495
|
True when the materialization-eligibility gate refused this source,
|
|
10820
11496
|
so the build was never attempted and `reason` is the gate's message.
|
|
10821
11497
|
A refusal is a property of the model, not of the run: retrying
|
|
10822
|
-
returns the same answer until the model changes
|
|
10823
|
-
|
|
10824
|
-
|
|
11498
|
+
returns the same answer until the model changes. Absent for every
|
|
11499
|
+
other failure; see `retryable` for how those are classified.
|
|
11500
|
+
retryable:
|
|
11501
|
+
type: boolean
|
|
11502
|
+
description: >-
|
|
11503
|
+
Whether rebuilding this source unchanged could succeed, so an
|
|
11504
|
+
orchestrator that retries failed builds can stop spending attempts
|
|
11505
|
+
on one that cannot.
|
|
11506
|
+
|
|
11507
|
+
|
|
11508
|
+
`false` is a deterministic failure: the same model, instructions
|
|
11509
|
+
and bounds fail the same way on every attempt. It is reported for an
|
|
11510
|
+
eligibility refusal (always, beside `refused`), a Malloy or SQL
|
|
11511
|
+
compile defect (a syntax or parser error), a rejected credential or
|
|
11512
|
+
missing grant (permission or access denied), and a source refused under
|
|
11513
|
+
`strictUpstreams` because a persisted upstream it reads failed
|
|
11514
|
+
deterministically earlier in the same run. That last source
|
|
11515
|
+
inherits its upstream's classification (`true` when any such
|
|
11516
|
+
upstream's failure is transient) and its `reason` names the
|
|
11517
|
+
upstream's own failure. Also `false` for a source a strict build
|
|
11518
|
+
refused under `warehouseReach: refuse`, whose only build would
|
|
11519
|
+
recompute its stored upstreams from the warehouse.
|
|
11520
|
+
|
|
11521
|
+
|
|
11522
|
+
`true` is a transient failure, not a property of the inputs: the
|
|
11523
|
+
database could not be reached or reset the connection, a timeout,
|
|
11524
|
+
a rate limit, the build session running out of memory (`Out of
|
|
11525
|
+
Memory Error`, `could not allocate block`, `failed to pin block`:
|
|
11526
|
+
a worker's builds share its memory, so a build that ran out beside
|
|
11527
|
+
others can fit alone, and the consumer's retry cap bounds one that
|
|
11528
|
+
never fits), or a cancellation.
|
|
11529
|
+
|
|
11530
|
+
|
|
11531
|
+
Absent when Publisher does not recognize the error, and from
|
|
11532
|
+
every Publisher that predates the field. A consumer treats absence
|
|
11533
|
+
exactly as it did before this field existed. Deliberately absent: a
|
|
11534
|
+
missing table or column (a binder error, an unrecognized name),
|
|
11535
|
+
because a referenced upstream reclaimed mid-build reads the same as
|
|
11536
|
+
a model defect; and a persisted upstream no manifest holds, on its
|
|
11537
|
+
own, because it may be materialized in another destination or left
|
|
11538
|
+
out of instructions an orchestrator fixed, so retrying the same
|
|
11539
|
+
instructions would not supply it.
|
|
10825
11540
|
|
|
10826
11541
|
ManifestEntry:
|
|
10827
11542
|
type: object
|
|
@@ -10907,6 +11622,19 @@ components:
|
|
|
10907
11622
|
execution error, which is why the post-build capture is authoritative.
|
|
10908
11623
|
items:
|
|
10909
11624
|
$ref: "#/components/schemas/Column"
|
|
11625
|
+
nativeSchema:
|
|
11626
|
+
type: array
|
|
11627
|
+
description: >-
|
|
11628
|
+
For a colocated entry (no `storageDestinationName`): each column of
|
|
11629
|
+
the built table with its type as the warehouse's own catalog names it
|
|
11630
|
+
(`bigint`, `numeric`, `NUMBER(38,0)`, `UHUGEINT`), captured after the
|
|
11631
|
+
build. The served copy reads a big-integer column through a cast to
|
|
11632
|
+
exactly this type, so a value past 2^53 comes back with every digit
|
|
11633
|
+
and no wider value is narrowed; a column whose type it does not know
|
|
11634
|
+
is answered live instead. Absent when the capture failed or the
|
|
11635
|
+
producer did not record it.
|
|
11636
|
+
items:
|
|
11637
|
+
$ref: "#/components/schemas/Column"
|
|
10910
11638
|
realization:
|
|
10911
11639
|
$ref: "#/components/schemas/Realization"
|
|
10912
11640
|
rowCount:
|