@malloy-publisher/server 0.12.6 → 0.13.1
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/README.md +1 -1
- package/dist/admin-api-doc.yaml +23 -3
- package/dist/app/api-doc.yaml +674 -19
- package/dist/app/assets/{EnvironmentPage-DFozqUjF.js → EnvironmentPage-B74sWMJb.js} +1 -1
- package/dist/app/assets/{HomePage-Bad32fax.js → HomePage-BOb2eaod.js} +1 -1
- package/dist/app/assets/{MainPage-BAwxr_X1.js → MainPage-D6QvMDBc.js} +1 -1
- package/dist/app/assets/{ModelPage-CuW71DWw.js → ModelPage-DOac8VF3.js} +2 -2
- package/dist/app/assets/{PackagePage-DtP6BtnP.js → PackagePage-CpahRMLt.js} +1 -1
- package/dist/app/assets/{PackageSplatRoute-EsC7l_nR.js → PackageSplatRoute-BBPH3864.js} +2 -2
- package/dist/app/assets/{RenderedResult-DAW_Cfc-.es-BYEbDD8i.js → RenderedResult-D5HJr2Xo.es-CFweT1ny.js} +3 -3
- package/dist/app/assets/{RouteError--h2XhIM0.js → RouteError-r7ydeLAE.js} +1 -1
- package/dist/app/assets/{ThemeEditorPage-B1e_-WV5.js → ThemeEditorPage-dxaIYM0S.js} +1 -1
- package/dist/app/assets/{ToggleButtonGroup-CuyU-wPN.js → ToggleButtonGroup-B8CQst36.js} +1 -1
- package/dist/app/assets/{documentRoutes-BUqz3gK5.js → documentRoutes-Dn5OclPv.js} +1 -1
- package/dist/app/assets/{editPageMounted-mt7xJomn.js → editPageMounted-BXWQAQvv.js} +2 -2
- package/dist/app/assets/{index-CRAwrhYM.js → index-B0BUzE-t.js} +8 -2
- package/dist/app/assets/index-BiZnC_i6.js +1318 -0
- package/dist/app/assets/{index-YeH6QPnQ.js → index-C2rpVa58.js} +1 -1
- package/dist/app/assets/index-Co7C9Gew.js +2724 -0
- package/dist/app/assets/{index-oAv7JJIj.js → index-D3PvzI_V.js} +16 -16
- package/dist/app/assets/{index-DzSE-Kxp.js → index-jw6yCO3t.js} +1 -1
- package/dist/app/assets/{index.es-DdMQ3KvM.js → index.es-BfpodLFo.js} +1 -1
- package/dist/app/assets/usePackageLinkNavigate-CpjXFkgK.js +1 -0
- package/dist/app/assets/{usePackageRoute-lzkkk2Fh.js → usePackageRoute-CwvWFoYD.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/app/mcp-app/report.css +1 -0
- package/dist/app/mcp-app/report.js +3422 -0
- package/dist/instrumentation.mjs +300 -181
- package/dist/package_load_worker.mjs +19719 -6963
- package/dist/server.mjs +39149 -14788
- package/package.json +19 -17
- package/dist/app/assets/index-DZD8qhzO.js +0 -1314
- package/dist/app/assets/index-DgBiwYeC.js +0 -2714
- package/dist/app/assets/usePackageLinkNavigate-Y0cmkFp3.js +0 -1
package/dist/app/api-doc.yaml
CHANGED
|
@@ -1498,7 +1498,9 @@ paths:
|
|
|
1498
1498
|
name (if any) is untouched, no version is recorded, and the load's connections are
|
|
1499
1499
|
closed. The answer is what a publish would answer for the tree itself: the same 400 or
|
|
1500
1500
|
424 refusal, or 200 with the package as it would load, its `warnings` included, plus the
|
|
1501
|
-
`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`
|
|
1502
1504
|
must declare a valid version, as a versioned publish requires (400
|
|
1503
1505
|
`MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as
|
|
1504
1506
|
`versionId`. Version lifecycle checks (a version that already exists, `latest`) are not
|
|
@@ -1513,7 +1515,7 @@ paths:
|
|
|
1513
1515
|
|
|
1514
1516
|
## Versioned publish
|
|
1515
1517
|
|
|
1516
|
-
Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`
|
|
1518
|
+
Package versioning is a server setting, `PUBLISHER_PACKAGE_VERSIONING` (`on` by
|
|
1517
1519
|
default; `ServerStatus.packageVersioning` reports it), and a transition: a later release
|
|
1518
1520
|
removes the setting and always publishes versions.
|
|
1519
1521
|
|
|
@@ -1811,8 +1813,8 @@ paths:
|
|
|
1811
1813
|
Lists every version published to the package, highest version first, including archived
|
|
1812
1814
|
ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a
|
|
1813
1815
|
request names no `versionId`. An unversioned package (one registered from a directory,
|
|
1814
|
-
|
|
1815
|
-
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.
|
|
1816
1818
|
parameters:
|
|
1817
1819
|
- $ref: "#/components/parameters/environmentName"
|
|
1818
1820
|
- $ref: "#/components/parameters/packageName"
|
|
@@ -2001,6 +2003,11 @@ paths:
|
|
|
2001
2003
|
This is serving state, not package content, which is why it is the one thing about a
|
|
2002
2004
|
published version that can change. It replaces the deprecated
|
|
2003
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.
|
|
2004
2011
|
parameters:
|
|
2005
2012
|
- $ref: "#/components/parameters/environmentName"
|
|
2006
2013
|
- $ref: "#/components/parameters/packageName"
|
|
@@ -2908,7 +2915,14 @@ paths:
|
|
|
2908
2915
|
declares no persist source has an empty plan. When the plan could not
|
|
2909
2916
|
be derived at load, the read answers 409 with `reason`
|
|
2910
2917
|
BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and
|
|
2911
|
-
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.
|
|
2912
2926
|
parameters:
|
|
2913
2927
|
- name: environmentName
|
|
2914
2928
|
in: path
|
|
@@ -4617,10 +4631,11 @@ components:
|
|
|
4617
4631
|
description: >-
|
|
4618
4632
|
Where the build manifest to bind is: a gs:// or s3:// URI, a
|
|
4619
4633
|
file:// URL, or an absolute path on this server (a mounted volume).
|
|
4620
|
-
Null clears the binding and serves
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
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.
|
|
4624
4639
|
|
|
4625
4640
|
PackageLatestVersion:
|
|
4626
4641
|
type: object
|
|
@@ -4689,8 +4704,9 @@ components:
|
|
|
4689
4704
|
readOnly: true
|
|
4690
4705
|
description: >-
|
|
4691
4706
|
"on" when a publish from a location publishes an immutable
|
|
4692
|
-
version (`PUBLISHER_PACKAGE_VERSIONING=on
|
|
4693
|
-
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
|
|
4694
4710
|
routes answer in both. Absent from a server that predates
|
|
4695
4711
|
versions, which reads as "off": how an orchestrator talking to
|
|
4696
4712
|
servers mid-rollout tells which ones publish native versions.
|
|
@@ -5072,6 +5088,111 @@ components:
|
|
|
5072
5088
|
format: date-time
|
|
5073
5089
|
description: When the in-progress load began. Present only while `loading` is true.
|
|
5074
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
|
+
|
|
5075
5196
|
StorageServeBinding:
|
|
5076
5197
|
type: object
|
|
5077
5198
|
properties:
|
|
@@ -5288,6 +5409,27 @@ components:
|
|
|
5288
5409
|
treating a row as evidence that queries are being accelerated.
|
|
5289
5410
|
items:
|
|
5290
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"
|
|
5291
5433
|
|
|
5292
5434
|
PackageStatusEntry:
|
|
5293
5435
|
description: |
|
|
@@ -5728,6 +5870,11 @@ components:
|
|
|
5728
5870
|
naming it). `deprecated-filter-annotation`: a source declaring
|
|
5729
5871
|
deprecated `#(filter)` annotations (one per declaring source,
|
|
5730
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).
|
|
5731
5878
|
`report-name-ambiguous`: two or more grid reports share a
|
|
5732
5879
|
basename, so the deprecated `GET …/dashboards/{name}` route
|
|
5733
5880
|
answers 409 for it (one per name, `subject` naming it and the
|
|
@@ -5744,10 +5891,48 @@ components:
|
|
|
5744
5891
|
cannot tell from a real de-identification, so a review has
|
|
5745
5892
|
to (one per field, `subject` the source; `warn`; a plain
|
|
5746
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`).
|
|
5747
5925
|
`join-bypass`: an author join from a published source to one
|
|
5748
5926
|
with a stricter gate, which the join does not carry (one per
|
|
5749
5927
|
join, or one for a walk cut short at the join bound; always
|
|
5750
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).
|
|
5751
5936
|
`entities-…` (`entities-not-a-dimension`,
|
|
5752
5937
|
`entities-parameterized-source`,
|
|
5753
5938
|
`entities-multiple-required-filters`,
|
|
@@ -5916,6 +6101,19 @@ components:
|
|
|
5916
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.
|
|
5917
6102
|
items:
|
|
5918
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"
|
|
5919
6117
|
buildPlan:
|
|
5920
6118
|
deprecated: true
|
|
5921
6119
|
oneOf:
|
|
@@ -8305,8 +8503,10 @@ components:
|
|
|
8305
8503
|
declined it — a storage-tier miss, reported identically to "no
|
|
8306
8504
|
materialization exists anywhere."
|
|
8307
8505
|
|
|
8308
|
-
Case 3 is the one that costs time, because nothing about
|
|
8309
|
-
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
|
|
8310
8510
|
`storage serve-shape ineligible for this query; serving live` line at
|
|
8311
8511
|
INFO per routed query, carrying the compile error that made the shape
|
|
8312
8512
|
ineligible, plus `shapeSources` (what the shape offered) and
|
|
@@ -8385,6 +8585,257 @@ components:
|
|
|
8385
8585
|
query is indistinguishable here from a backend that cannot say. Free
|
|
8386
8586
|
and unknown are the same value, and a savings calculation built on
|
|
8387
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.
|
|
8388
8839
|
|
|
8389
8840
|
LogMessage:
|
|
8390
8841
|
type: object
|
|
@@ -9959,13 +10410,22 @@ components:
|
|
|
9959
10410
|
description: Error message if the materialization failed
|
|
9960
10411
|
metadata:
|
|
9961
10412
|
type: ["object", "null"]
|
|
9962
|
-
description:
|
|
10413
|
+
description: >-
|
|
9963
10414
|
Materialization metadata including build options, source counts,
|
|
9964
10415
|
and durations. Free-form object — fields such as `trigger`
|
|
9965
10416
|
(ON_DEMAND | SCHEDULER) live here deliberately, so a strict-schema
|
|
9966
10417
|
client does not need to know them. Promoting any such field to a
|
|
9967
10418
|
top-level `Materialization` property is a breaking schema change
|
|
9968
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".
|
|
9969
10429
|
createdAt:
|
|
9970
10430
|
type: string
|
|
9971
10431
|
format: date-time
|
|
@@ -10013,6 +10473,108 @@ components:
|
|
|
10013
10473
|
former.
|
|
10014
10474
|
additionalProperties:
|
|
10015
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.
|
|
10016
10578
|
|
|
10017
10579
|
RefusedSource:
|
|
10018
10580
|
type: object
|
|
@@ -10075,6 +10637,8 @@ components:
|
|
|
10075
10637
|
not_duckdb_portable,
|
|
10076
10638
|
public_surface_unknown,
|
|
10077
10639
|
read_only_dialect,
|
|
10640
|
+
env_reference,
|
|
10641
|
+
rollup_name_collision,
|
|
10078
10642
|
]
|
|
10079
10643
|
description: >-
|
|
10080
10644
|
The bounded refusal reason. Only the compile-time reasons can
|
|
@@ -10088,9 +10652,16 @@ components:
|
|
|
10088
10652
|
cannot be expressed over the stored table's own columns),
|
|
10089
10653
|
`preaggregate_over_dynamic_source` (a rollup whose base is scoped by
|
|
10090
10654
|
a given, which has no read-time re-application to put the term back),
|
|
10091
|
-
|
|
10655
|
+
`read_only_dialect` (a colocated `#@ persist` on a source whose
|
|
10092
10656
|
dialect cannot create tables; SQL Server today, whose connection
|
|
10093
|
-
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
|
|
10094
10665
|
compile-time eligibility asserts this collection is computed from
|
|
10095
10666
|
produce.
|
|
10096
10667
|
|
|
@@ -10588,6 +11159,25 @@ components:
|
|
|
10588
11159
|
in referenceManifest fails the build (compiler strict mode) instead
|
|
10589
11160
|
of silently recomputing it live. Per-unit dispatch should set this
|
|
10590
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.
|
|
10591
11181
|
ledger:
|
|
10592
11182
|
type: array
|
|
10593
11183
|
items:
|
|
@@ -10638,6 +11228,19 @@ components:
|
|
|
10638
11228
|
case-folding engine (Snowflake). Optional: omit it and the reference
|
|
10639
11229
|
seeds unquoted (the pre-existing behavior), which fails a downstream
|
|
10640
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.
|
|
10641
11244
|
|
|
10642
11245
|
BuildInstruction:
|
|
10643
11246
|
type: object
|
|
@@ -10892,9 +11495,48 @@ components:
|
|
|
10892
11495
|
True when the materialization-eligibility gate refused this source,
|
|
10893
11496
|
so the build was never attempted and `reason` is the gate's message.
|
|
10894
11497
|
A refusal is a property of the model, not of the run: retrying
|
|
10895
|
-
returns the same answer until the model changes
|
|
10896
|
-
|
|
10897
|
-
|
|
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.
|
|
10898
11540
|
|
|
10899
11541
|
ManifestEntry:
|
|
10900
11542
|
type: object
|
|
@@ -10980,6 +11622,19 @@ components:
|
|
|
10980
11622
|
execution error, which is why the post-build capture is authoritative.
|
|
10981
11623
|
items:
|
|
10982
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"
|
|
10983
11638
|
realization:
|
|
10984
11639
|
$ref: "#/components/schemas/Realization"
|
|
10985
11640
|
rowCount:
|