@malloy-publisher/app 0.14.0 → 0.15.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 +894 -378
- package/dist/assets/{EnvironmentPage-CX8dwMPh.js → EnvironmentPage-CKUvEX7r.js} +1 -1
- package/dist/assets/{HomePage-C7yrR-ec.js → HomePage-COpZmm3Z.js} +1 -1
- package/dist/assets/{MainPage-BKs7CeWW.js → MainPage-nIyVOgy5.js} +1 -1
- package/dist/assets/ModelPage-BelGfTpw.js +2 -0
- package/dist/assets/{PackagePage-Bd5y7ILU.js → PackagePage-CbnVG2uD.js} +1 -1
- package/dist/assets/PackageSplatRoute-37oqxKyq.js +2 -0
- package/dist/assets/{RenderedResult-D0kAzSrP.es-DldjGxsY.js → RenderedResult-Ct3z543g.es-QeWq894a.js} +7 -7
- package/dist/assets/{RouteError-BJHAXzBN.js → RouteError-CjmVxFgv.js} +1 -1
- package/dist/assets/{ThemeEditorPage-yUJpFBCR.js → ThemeEditorPage-BjPyhpFF.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BoCnLGaG.js → ToggleButtonGroup-bM-WVZrV.js} +1 -1
- package/dist/assets/{documentRoutes-CIhmKz4i.js → documentRoutes-BAPDdua3.js} +1 -1
- package/dist/assets/{editPageMounted-B5IyuuMZ.js → editPageMounted-B4HEQbbz.js} +2 -2
- package/dist/assets/{index-B6DUq-GT.js → index-Bx-5B05C.js} +1 -1
- package/dist/assets/{index-DrMbh_v4.js → index-C-aFb4Gn.js} +1 -1
- package/dist/assets/{index-DqJz_hGj.js → index-DUgED99B.js} +140 -140
- package/dist/assets/{index-DTKG_ab2.js → index-DbRUcXfe.js} +1 -1
- package/dist/assets/{index.es-VBpWc8yM.js → index.es-DO67FMt6.js} +19 -19
- package/dist/assets/usePackageLinkNavigate-BgdbNERJ.js +1 -0
- package/dist/assets/{usePackageRoute-CTkLtO3i.js → usePackageRoute-Cso_p7RX.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/mcp-app/report.js +477 -477
- package/package.json +2 -2
- package/dist/assets/ModelPage-BGlX8geE.js +0 -2
- package/dist/assets/PackageSplatRoute-Cw-yA9CE.js +0 -2
- package/dist/assets/usePackageLinkNavigate-BcERmCFv.js +0 -1
package/dist/api-doc.yaml
CHANGED
|
@@ -995,6 +995,8 @@ paths:
|
|
|
995
995
|
$ref: "#/components/responses/BadRequest"
|
|
996
996
|
"401":
|
|
997
997
|
$ref: "#/components/responses/Unauthorized"
|
|
998
|
+
"403":
|
|
999
|
+
$ref: "#/components/responses/Forbidden"
|
|
998
1000
|
"404":
|
|
999
1001
|
$ref: "#/components/responses/NotFound"
|
|
1000
1002
|
"424":
|
|
@@ -1421,6 +1423,8 @@ paths:
|
|
|
1421
1423
|
$ref: "#/components/responses/BadRequest"
|
|
1422
1424
|
"401":
|
|
1423
1425
|
$ref: "#/components/responses/Unauthorized"
|
|
1426
|
+
"403":
|
|
1427
|
+
$ref: "#/components/responses/Forbidden"
|
|
1424
1428
|
"404":
|
|
1425
1429
|
$ref: "#/components/responses/NotFound"
|
|
1426
1430
|
"410":
|
|
@@ -1996,9 +2000,22 @@ paths:
|
|
|
1996
2000
|
summary: Bind a version to a build manifest
|
|
1997
2001
|
description: |
|
|
1998
2002
|
Sets the version's `manifestLocation`, the externally computed build manifest its persist
|
|
1999
|
-
references resolve through, and rebinds that version's models to it right away.
|
|
2000
|
-
|
|
2001
|
-
|
|
2003
|
+
references resolve through, and rebinds that version's models to it right away. Only this
|
|
2004
|
+
version is affected.
|
|
2005
|
+
|
|
2006
|
+
A version is owned by the host from then on once a manifest it named, by this route or by
|
|
2007
|
+
a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed
|
|
2008
|
+
with `buildInstructions` has run, even one whose commit failed. The version's record keeps
|
|
2009
|
+
that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live:
|
|
2010
|
+
this server never binds tables its own runs built for it, so a host can clear the binding
|
|
2011
|
+
before it drops the tables the manifest named. A reload or restart of that version keeps
|
|
2012
|
+
it live until the host binds a manifest again, and the version answers a local run without
|
|
2013
|
+
`buildInstructions` with 409. Its status reports it the way it reports a version with nothing
|
|
2014
|
+
bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null.
|
|
2015
|
+
|
|
2016
|
+
A version no host has bound (standalone, or built only by this server's own runs) serves
|
|
2017
|
+
what this server's own runs built for it when its binding is cleared, or live when they
|
|
2018
|
+
built nothing, as it does when it loads.
|
|
2002
2019
|
|
|
2003
2020
|
This is serving state, not package content, which is why it is the one thing about a
|
|
2004
2021
|
published version that can change. It replaces the deprecated
|
|
@@ -3947,11 +3964,45 @@ paths:
|
|
|
3947
3964
|
schema:
|
|
3948
3965
|
$ref: "#/components/schemas/Materialization"
|
|
3949
3966
|
"400":
|
|
3950
|
-
|
|
3967
|
+
description: >-
|
|
3968
|
+
The request is malformed, with `reason: BUILD_INSTRUCTIONS_INVALID`
|
|
3969
|
+
and a message naming the case: a body field of the wrong shape
|
|
3970
|
+
(`forceRefresh`, `reseed`, `runContext`, `buildInstructions` and
|
|
3971
|
+
its entries); a package with no persist sources; an unknown
|
|
3972
|
+
`sourceEntityId`; `realization=SNAPSHOT`; one table named by two
|
|
3973
|
+
instructions of a version's run; a ledger entry that appears twice,
|
|
3974
|
+
names a table this run does not build, names a source that is not
|
|
3975
|
+
incremental, or was measured under another definition of its
|
|
3976
|
+
source. Among other checks, every
|
|
3977
|
+
`physicalTableName` a host supplies (a build instruction, a
|
|
3978
|
+
`referenceManifest` entry or a `ledger` entry) must be a usable
|
|
3979
|
+
table path: no empty part, no backslash or control character, and
|
|
3980
|
+
quotes only around whole parts. One that is not is refused,
|
|
3981
|
+
naming the field (for example `Build instruction
|
|
3982
|
+
'physicalTableName' must be a table path ...`), before any run
|
|
3983
|
+
starts; the bind declines such a name in a stored manifest the
|
|
3984
|
+
same way (`unquotable_name`).
|
|
3985
|
+
content:
|
|
3986
|
+
application/json:
|
|
3987
|
+
schema:
|
|
3988
|
+
$ref: "#/components/schemas/Error"
|
|
3951
3989
|
"404":
|
|
3952
3990
|
$ref: "#/components/responses/NotFound"
|
|
3953
3991
|
"409":
|
|
3954
|
-
description:
|
|
3992
|
+
description: >-
|
|
3993
|
+
`reason: MATERIALIZATION_CONFLICT`. Clears on its own, so retry
|
|
3994
|
+
later: the package already has an active materialization, or a
|
|
3995
|
+
table the run would write is being written by another run. Does
|
|
3996
|
+
not clear until something changes: a table the run would write is
|
|
3997
|
+
one the package's versions share, which only an auto-run of its
|
|
3998
|
+
latest version rebuilds (name tables of your own in
|
|
3999
|
+
`buildInstructions`); or the package or version is bound to a host
|
|
4000
|
+
manifest (`manifestLocation`), or is a version a host has bound
|
|
4001
|
+
before, and the request has no `buildInstructions` (it serves the
|
|
4002
|
+
host's tables or live, so a local run would build tables it cannot
|
|
4003
|
+
serve). `reason:
|
|
4004
|
+
BUILD_PLAN_UNAVAILABLE`: the package's build plan could not be
|
|
4005
|
+
derived, or it serves an older model than its files.
|
|
3955
4006
|
content:
|
|
3956
4007
|
application/json:
|
|
3957
4008
|
schema:
|
|
@@ -4079,28 +4130,17 @@ paths:
|
|
|
4079
4130
|
summary: Delete a materialization
|
|
4080
4131
|
description: |
|
|
4081
4132
|
Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED)
|
|
4082
|
-
materialization record.
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4133
|
+
materialization record. A delete is record-only: it never drops a
|
|
4134
|
+
table, and the caller owns table GC. To drop a table this run produced,
|
|
4135
|
+
check that no remaining run, of any version, names a table with that
|
|
4136
|
+
name in any place, then drop it through its connection.
|
|
4137
|
+
`dropTables=true` is refused with 400 and deletes nothing, as is any
|
|
4138
|
+
value other than `true` or `false` (the fix is to omit it);
|
|
4139
|
+
`dropTables=false`, which older clients send, is accepted and ignored.
|
|
4086
4140
|
parameters:
|
|
4087
4141
|
- $ref: "#/components/parameters/environmentName"
|
|
4088
4142
|
- $ref: "#/components/parameters/packageName"
|
|
4089
4143
|
- $ref: "#/components/parameters/materializationId"
|
|
4090
|
-
- name: dropTables
|
|
4091
|
-
in: query
|
|
4092
|
-
required: false
|
|
4093
|
-
description: |
|
|
4094
|
-
When true, also drop the physical tables recorded in the
|
|
4095
|
-
materialization's manifest before deleting the record. Defaults to
|
|
4096
|
-
false (record-only delete; the caller owns table GC).
|
|
4097
|
-
|
|
4098
|
-
Only `true` and `false` are accepted. Any other value is refused
|
|
4099
|
-
with 400 rather than read as `false`, which would delete the record,
|
|
4100
|
-
leave the tables on disk, and still answer 204.
|
|
4101
|
-
schema:
|
|
4102
|
-
type: boolean
|
|
4103
|
-
default: false
|
|
4104
4144
|
- $ref: "#/components/parameters/versionId"
|
|
4105
4145
|
responses:
|
|
4106
4146
|
"204":
|
|
@@ -4265,7 +4305,20 @@ components:
|
|
|
4265
4305
|
schema:
|
|
4266
4306
|
$ref: "#/components/schemas/Error"
|
|
4267
4307
|
Forbidden:
|
|
4268
|
-
description:
|
|
4308
|
+
description: |
|
|
4309
|
+
Forbidden - insufficient permissions to perform the operation. With
|
|
4310
|
+
`reason: STORAGE_ACCESS_DENIED` or `PATH_ACCESS_DENIED` (the query and
|
|
4311
|
+
raw `sqlQuery` routes, and `sqlTemporaryTable`), the database ran the
|
|
4312
|
+
query and an object store refused its read. `STORAGE_ACCESS_DENIED`:
|
|
4313
|
+
the URL lies under a data path the environment configures (a DuckLake
|
|
4314
|
+
catalog's, a storage destination's), so the query and the model are
|
|
4315
|
+
fine and a retry fails the same way until the database's storage
|
|
4316
|
+
credentials are fixed. `PATH_ACCESS_DENIED`: a path the query or the
|
|
4317
|
+
model reads itself refused access, so the path, or the caller's grant
|
|
4318
|
+
to it, is what to fix. With `reason: ACCESS_DENIED`, a gate refused
|
|
4319
|
+
the caller. The body
|
|
4320
|
+
names what the caller read and never a storage path; the full text is
|
|
4321
|
+
logged.
|
|
4269
4322
|
content:
|
|
4270
4323
|
application/json:
|
|
4271
4324
|
schema:
|
|
@@ -4631,11 +4684,18 @@ components:
|
|
|
4631
4684
|
description: >-
|
|
4632
4685
|
Where the build manifest to bind is: a gs:// or s3:// URI, a
|
|
4633
4686
|
file:// URL, or an absolute path on this server (a mounted volume).
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
and
|
|
4687
|
+
Once one binds, the version is the host's from then on, as it is
|
|
4688
|
+
once a host's instructed run of it has run, even one whose
|
|
4689
|
+
commit failed. Null, or
|
|
4690
|
+
leaving the field out, clears the binding: a version a host has
|
|
4691
|
+
bound then serves live, and stays live through a reload or a
|
|
4692
|
+
restart until a manifest is bound again, never serving the tables
|
|
4693
|
+
this server's own runs built for it. A version no host has bound
|
|
4694
|
+
serves what its own runs built, or live when they built nothing.
|
|
4695
|
+
A client that drops a field it meant to send (a value left
|
|
4696
|
+
undefined) therefore clears the binding. An empty string or a
|
|
4697
|
+
relative path is refused with 400, and so is any other field in
|
|
4698
|
+
the body and a body not sent as application/json.
|
|
4639
4699
|
|
|
4640
4700
|
PackageLatestVersion:
|
|
4641
4701
|
type: object
|
|
@@ -4790,6 +4850,16 @@ components:
|
|
|
4790
4850
|
message:
|
|
4791
4851
|
type: string
|
|
4792
4852
|
description: Why it did not load.
|
|
4853
|
+
codes:
|
|
4854
|
+
type: array
|
|
4855
|
+
items:
|
|
4856
|
+
type: string
|
|
4857
|
+
description: >-
|
|
4858
|
+
The codes of the load failure's coded lines (each line of
|
|
4859
|
+
`message` that ends `[code]`, such as `persist-unknown-key` or
|
|
4860
|
+
`rollup-invalid`), in order, each once, so a client never
|
|
4861
|
+
parses the message for them. Absent when the message carries
|
|
4862
|
+
none.
|
|
4793
4863
|
stale:
|
|
4794
4864
|
type: boolean
|
|
4795
4865
|
description:
|
|
@@ -5110,40 +5180,51 @@ components:
|
|
|
5110
5180
|
origin:
|
|
5111
5181
|
type: string
|
|
5112
5182
|
description: >-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5183
|
+
The mechanism that declared the stored source: `persist` for
|
|
5184
|
+
`#@ persist` on a source, `materialize` for `#(materialize)`,
|
|
5185
|
+
`view` for `#@ persist` on a view, `query` for `#@ persist` on a
|
|
5186
|
+
named `query:`, and `rollup` for a rollup the publisher
|
|
5187
|
+
synthesized (`#(rollup)`, or v1's `#@ preaggregate`). A string,
|
|
5188
|
+
not an enum, so a new kind of variant needs no client change.
|
|
5189
|
+
`preaggregate` is retained, no longer produced: releases before
|
|
5190
|
+
this one said it for `rollup`.
|
|
5116
5191
|
tier:
|
|
5117
5192
|
type: string
|
|
5118
5193
|
description: >-
|
|
5119
|
-
Where its table lives: `
|
|
5120
|
-
`storage` (a `storage=` destination).
|
|
5194
|
+
Where its table lives: `database` (the source's own connection's
|
|
5195
|
+
database) or `storage` (a `storage=` destination). `colocated` is
|
|
5196
|
+
retained, no longer produced: releases before this one said it for
|
|
5197
|
+
`database`, so a client should accept both.
|
|
5121
5198
|
verdict:
|
|
5122
5199
|
type: string
|
|
5123
5200
|
description: >-
|
|
5124
5201
|
`serves`: its table is bound and queries can be answered from it.
|
|
5125
|
-
`
|
|
5126
|
-
table once a build binds it
|
|
5127
|
-
|
|
5202
|
+
`awaiting_build`: nothing is bound yet; queries are answered from
|
|
5203
|
+
its table once a build binds it (unlike a `*-not-built` package
|
|
5204
|
+
warning, which names a declaration that is refused and is never
|
|
5205
|
+
built here). `live`: no query is answered from it, for `reason`,
|
|
5206
|
+
until something changes. `not_built` is retained, no longer
|
|
5207
|
+
produced: releases before this one said it for `awaiting_build`.
|
|
5128
5208
|
reason:
|
|
5129
5209
|
type: string
|
|
5130
5210
|
description: >-
|
|
5131
5211
|
For a `live` verdict, why: `refused` (the plan refused to build it),
|
|
5132
5212
|
`storage_mode` (`storage=` while `PERSIST_STORAGE_MODE` is not
|
|
5133
|
-
`on`), `
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
storage
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5213
|
+
`on`), `unreachable` (no source on the package's published surface
|
|
5214
|
+
reads it), `row_level_gate` (every query through it carries an
|
|
5215
|
+
`#(authorize)` or `#(access_filter)` gate its table cannot keep
|
|
5216
|
+
yet, on either tier), `stale` (its table is past its freshness
|
|
5217
|
+
window, and its fallback does not serve stale), `shadowed` (its
|
|
5218
|
+
storage table is bound, but every model's source of that name is
|
|
5219
|
+
another source), `destination_missing` (`storage=` names a
|
|
5220
|
+
destination the environment does not configure),
|
|
5221
|
+
`connection_cannot_hold_table` (database, on a connection whose
|
|
5222
|
+
type creates no tables), `materialization_off` (a `#(materialize)`
|
|
5223
|
+
source, which only the served copy reads, and the served copy is
|
|
5224
|
+
off: `PUBLISHER_MATERIALIZE`, and for `storage=`
|
|
5225
|
+
`PERSIST_STORAGE_MODE`), `served_copy` (a `#(materialize)` source
|
|
5226
|
+
whose table is bound, but no model's served copy re-roots it; the
|
|
5227
|
+
`served-copy-not-served` warning says why). An open set.
|
|
5147
5228
|
message:
|
|
5148
5229
|
type: string
|
|
5149
5230
|
description: What the verdict means for this source, in a sentence.
|
|
@@ -5152,24 +5233,41 @@ components:
|
|
|
5152
5233
|
items:
|
|
5153
5234
|
type: string
|
|
5154
5235
|
description: For a `live` verdict, the changes that would let it serve.
|
|
5236
|
+
servePath:
|
|
5237
|
+
type: string
|
|
5238
|
+
description: >-
|
|
5239
|
+
On a dry run: the path that will answer queries on this source,
|
|
5240
|
+
judged by compiling the package's served copy over bindings
|
|
5241
|
+
declared from the plan's output columns (no table is built):
|
|
5242
|
+
`served_copy` (the served copy re-roots it on its table, or reads
|
|
5243
|
+
it through a base it re-roots), `rollup` (a rollup the rollup leg
|
|
5244
|
+
reads), or `live`, with `servePathReason`. An open string, so a
|
|
5245
|
+
later release can add a path; treat an unknown value as `live`.
|
|
5246
|
+
servePathReason:
|
|
5247
|
+
type: string
|
|
5248
|
+
description: >-
|
|
5249
|
+
Why the path is what it is, when that is not the source's own
|
|
5250
|
+
table. With a `live` `servePath`: `refused` (the plan refused it),
|
|
5251
|
+
`inherited_gate` (a row-level gate declared on a base the served
|
|
5252
|
+
copy replaces, which it cannot graft), the served copy's reason
|
|
5253
|
+
for leaving the source as written (`column_types`,
|
|
5254
|
+
`fields_not_carried`, `read_terms_not_kept`, `compile_failed`, and
|
|
5255
|
+
the like), the verdict's own `reason`, or `not_rerooted` when none
|
|
5256
|
+
names one. With a `served_copy` `servePath`: `through_base` (an
|
|
5257
|
+
extension of a re-rooted source, left as written, which reads that
|
|
5258
|
+
source's table by name). An open string.
|
|
5155
5259
|
cutoverPath:
|
|
5156
5260
|
type: string
|
|
5261
|
+
deprecated: true
|
|
5157
5262
|
description: >-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
judged by compiling the package's served copy over bindings declared
|
|
5161
|
-
from the plan's output columns (no table is built): `served_copy`
|
|
5162
|
-
(the served copy re-roots it on its table), `rollup` (a rollup the
|
|
5163
|
-
rollup leg reads), or `live`, with `cutoverReason`. An open string,
|
|
5164
|
-
so a later release can add a path; treat an unknown value as
|
|
5165
|
-
`live`.
|
|
5263
|
+
Deprecated: the same value as `servePath`, under its old name.
|
|
5264
|
+
Emitted beside it for this release only.
|
|
5166
5265
|
cutoverReason:
|
|
5167
5266
|
type: string
|
|
5267
|
+
deprecated: true
|
|
5168
5268
|
description: >-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
`read_terms_not_kept`, `compile_failed`, and the like), or
|
|
5172
|
-
`not_rerooted` when it names none. An open string.
|
|
5269
|
+
Deprecated: the same value as `servePathReason`, under its old
|
|
5270
|
+
name. Emitted beside it for this release only.
|
|
5173
5271
|
views:
|
|
5174
5272
|
type: array
|
|
5175
5273
|
description: >-
|
|
@@ -5211,13 +5309,17 @@ components:
|
|
|
5211
5309
|
package's models and reading a miss as corruption.
|
|
5212
5310
|
origin:
|
|
5213
5311
|
type: string
|
|
5214
|
-
enum: [persist, preaggregate]
|
|
5312
|
+
enum: [persist, materialize, view, query, rollup, preaggregate]
|
|
5215
5313
|
default: persist
|
|
5216
5314
|
description: >-
|
|
5217
|
-
|
|
5218
|
-
which is the meaning of an absent
|
|
5219
|
-
|
|
5220
|
-
|
|
5315
|
+
The mechanism that declared the bound table: `persist` for
|
|
5316
|
+
`#@ persist` on a source, which is the meaning of an absent
|
|
5317
|
+
value, `materialize` for `#(materialize)`, `view` and `query` for
|
|
5318
|
+
`#@ persist` on a view or a named query, and `rollup` for a
|
|
5319
|
+
rollup. `preaggregate` is retained, no longer produced: releases
|
|
5320
|
+
before this one said it for `rollup`. Releases before this one said `persist` for every table
|
|
5321
|
+
that was not a rollup; a client must accept a value it does not
|
|
5322
|
+
know as a table that is not a rollup.
|
|
5221
5323
|
storageDestinationName:
|
|
5222
5324
|
type: string
|
|
5223
5325
|
description: >-
|
|
@@ -5304,14 +5406,17 @@ components:
|
|
|
5304
5406
|
enum:
|
|
5305
5407
|
- unbound
|
|
5306
5408
|
- bound
|
|
5409
|
+
- bind_failed
|
|
5307
5410
|
- live_fallback
|
|
5308
5411
|
description: >-
|
|
5309
5412
|
Server-computed, read-only: whether the CONFIGURED build manifest is
|
|
5310
5413
|
currently bound to this package's served models. `unbound` = no
|
|
5311
5414
|
manifest configured, so the package serves live. `bound` = the
|
|
5312
|
-
configured manifest was fetched and applied. `
|
|
5415
|
+
configured manifest was fetched and applied. `bind_failed` = a
|
|
5313
5416
|
`manifestLocation` is configured but its fetch/bind failed or timed
|
|
5314
|
-
out, so the configured manifest is NOT applied.
|
|
5417
|
+
out, so the configured manifest is NOT applied. `live_fallback` is
|
|
5418
|
+
retained, no longer produced: releases before this one said it for
|
|
5419
|
+
`bind_failed`, so a client should read both the same. Lets the caller
|
|
5315
5420
|
confirm the publisher actually bound the configured manifest rather
|
|
5316
5421
|
than inferring it from logs.
|
|
5317
5422
|
|
|
@@ -5327,17 +5432,17 @@ components:
|
|
|
5327
5432
|
combination is the signature — `bound` with neither tier populated
|
|
5328
5433
|
means the manifest carried nothing, not that the bind was missed.
|
|
5329
5434
|
|
|
5330
|
-
`
|
|
5435
|
+
`bind_failed` does NOT imply the package is serving live. It says
|
|
5331
5436
|
the configured manifest was not applied — not that nothing is. A
|
|
5332
5437
|
failed FIRST bind leaves nothing bound (`boundManifestUri` null), but
|
|
5333
5438
|
a failed REBIND leaves the previously bound manifest in place: its
|
|
5334
|
-
|
|
5439
|
+
database substitutions stay compiled in, its storage serve bindings
|
|
5335
5440
|
stay installed, and `boundManifestUri`, `manifestEntryCount` and
|
|
5336
5441
|
`storageServeBindings` all continue to describe it.
|
|
5337
5442
|
|
|
5338
5443
|
That rebind guarantee covers a failure BEFORE either tier applies —
|
|
5339
5444
|
the manifest fetch failing or timing out, which is what produces
|
|
5340
|
-
`
|
|
5445
|
+
`bind_failed` in practice. A failure partway through the recompile,
|
|
5341
5446
|
after the new models are installed but before the binding is
|
|
5342
5447
|
recorded, is out of scope: the new substitutions would be live while
|
|
5343
5448
|
these fields still described the previous manifest.
|
|
@@ -5346,11 +5451,11 @@ components:
|
|
|
5346
5451
|
`boundManifestUri` is a LIVE reference to the manifest whose tables
|
|
5347
5452
|
this package is currently serving from. A caller reclaiming
|
|
5348
5453
|
superseded physical tables must treat it as one regardless of
|
|
5349
|
-
`manifestBindingStatus` — reading `
|
|
5454
|
+
`manifestBindingStatus` — reading `bind_failed` as "not serving
|
|
5350
5455
|
from manifest tables" and reclaiming that generation would drop
|
|
5351
5456
|
tables out from under a package actively serving them.
|
|
5352
5457
|
|
|
5353
|
-
|
|
5458
|
+
It is named apart from the `live_fallback` on a query result's
|
|
5354
5459
|
`servedFrom`, which reports that ONE query degraded to the warehouse.
|
|
5355
5460
|
This one is about the package's binding, and as above does not imply
|
|
5356
5461
|
any query ran live.
|
|
@@ -5359,9 +5464,9 @@ components:
|
|
|
5359
5464
|
readOnly: true
|
|
5360
5465
|
description: >-
|
|
5361
5466
|
Server-computed, read-only: number of sourceEntityId -> physical-table
|
|
5362
|
-
entries currently bound for the
|
|
5467
|
+
entries currently bound for the DATABASE (same-connection tableName
|
|
5363
5468
|
substitution) tier only. 0 when unbound, or when the bound manifest
|
|
5364
|
-
carried no
|
|
5469
|
+
carried no database entries — so a fully bound `storage=`-only
|
|
5365
5470
|
manifest reports `bound` with a count of 0. Corroborate a
|
|
5366
5471
|
cross-connection bind with `storageServeBindings`, not this count.
|
|
5367
5472
|
|
|
@@ -5404,7 +5509,7 @@ components:
|
|
|
5404
5509
|
|
|
5405
5510
|
|
|
5406
5511
|
"Bound" is not the same as "serving", and an entry with
|
|
5407
|
-
`origin:
|
|
5512
|
+
`origin: rollup` is where the two most often part: a rollup is
|
|
5408
5513
|
listed here once its table exists, but it is only offered to a query
|
|
5409
5514
|
through a composite re-exposing its base's name, so it does not serve
|
|
5410
5515
|
when something else already claims that name. Read `origin` before
|
|
@@ -5504,6 +5609,7 @@ components:
|
|
|
5504
5609
|
enum:
|
|
5505
5610
|
- unbound
|
|
5506
5611
|
- bound
|
|
5612
|
+
- bind_failed
|
|
5507
5613
|
- live_fallback
|
|
5508
5614
|
description: >-
|
|
5509
5615
|
Whether the configured build manifest is bound to the served models.
|
|
@@ -5701,7 +5807,7 @@ components:
|
|
|
5701
5807
|
`BuildPlan.refusedSources` member, carrying that gate's own message),
|
|
5702
5808
|
a persist-target collision, and materialization-config problems that
|
|
5703
5809
|
degrade attribution. A refusal is the one materialization finding the
|
|
5704
|
-
build plan cannot also be read for: a refused `storage`/`
|
|
5810
|
+
build plan cannot also be read for: a refused `storage`/`database`
|
|
5705
5811
|
source is ABSENT from `BuildPlan.sources`, so nothing there records
|
|
5706
5812
|
that the annotation was written at all. Discovery findings: a model
|
|
5707
5813
|
on the package's surface whose export closure surfaces no sources or
|
|
@@ -5873,10 +5979,16 @@ components:
|
|
|
5873
5979
|
deprecated `#(filter)` annotations (one per declaring source,
|
|
5874
5980
|
`model` naming its file and `subject` the source).
|
|
5875
5981
|
`deprecated-preaggregate-annotation`: a measure declaring
|
|
5876
|
-
`#@ preaggregate
|
|
5877
|
-
|
|
5982
|
+
`#@ preaggregate` or the deprecated alias `#(preaggregate)`,
|
|
5983
|
+
whose v2 spelling is `#(rollup)`; the message names the
|
|
5984
|
+
spelling it found (one per measure, `model` its file, `subject` the source and the
|
|
5878
5985
|
message the measure; `warn`; only while
|
|
5879
5986
|
`PUBLISHER_MATERIALIZE` is on).
|
|
5987
|
+
`deprecated-rollup-namespace`: a rollup line placed with
|
|
5988
|
+
`namespace=`, the deprecated spelling of its `name=`
|
|
5989
|
+
container; still read, in that container under the readable
|
|
5990
|
+
name (one per measure and container, `subject`
|
|
5991
|
+
`<base>.<measure>`; `warn`).
|
|
5880
5992
|
`report-name-ambiguous`: two or more grid reports share a
|
|
5881
5993
|
basename, so the deprecated `GET …/dashboards/{name}` route
|
|
5882
5994
|
answers 409 for it (one per name, `subject` naming it and the
|
|
@@ -5893,73 +6005,127 @@ components:
|
|
|
5893
6005
|
cannot tell from a real de-identification, so a review has
|
|
5894
6006
|
to (one per field, `subject` the source; `warn`; a plain
|
|
5895
6007
|
copy under `#(carries)` refuses the load instead).
|
|
5896
|
-
`preaggregate-over-stored-base`: retained, never reported by a
|
|
5897
|
-
released server. A `#@ preaggregate` rollup over a
|
|
5898
|
-
`#@ persist storage=` base is planned, built and served like
|
|
5899
|
-
any other rollup.
|
|
5900
6008
|
Materialization codes follow one rule: the suffix tells the
|
|
5901
6009
|
outcome. An INVALID annotation (or invalid code it covers)
|
|
5902
6010
|
fails the publish and the load, on every path, so its code
|
|
5903
6011
|
appears only in the load failure's message (the publish 4xx
|
|
5904
6012
|
and `loadErrors`), never as a warning here:
|
|
5905
6013
|
`persist-invalid`, `materialize-invalid`,
|
|
5906
|
-
`
|
|
6014
|
+
`rollup-invalid`, `persist-view-invalid` and
|
|
5907
6015
|
`persist-query-invalid` (a bad value or contradictory
|
|
5908
6016
|
combination: a `storage=` that names nothing, an `@env.`
|
|
5909
|
-
reference, an unusable or reserved
|
|
5910
|
-
that names no join, an incremental
|
|
6017
|
+
reference, an unusable, unsafe, unquoted or reserved
|
|
6018
|
+
`name=`, an `inline=` that names no join, an incremental
|
|
6019
|
+
key or `refresh="incremental"` on a view or query);
|
|
5911
6020
|
`persist-unknown-key`, `materialize-unknown-key` and
|
|
5912
|
-
`
|
|
6021
|
+
`rollup-unknown-key` (every route's key set is
|
|
6022
|
+
closed, a `freshness.` group's included);
|
|
5913
6023
|
`persist-retired-key` and `materialize-retired-key`
|
|
5914
|
-
(`sharing=`, `schedule=`, `partition
|
|
5915
|
-
`persist-unparseable`,
|
|
5916
|
-
`
|
|
6024
|
+
(`sharing=`, `schedule=`, `partition=`, and on `#@ persist`
|
|
6025
|
+
`realization=`); `persist-unparseable`,
|
|
6026
|
+
`materialize-unparseable`, `rollup-unparseable`,
|
|
6027
|
+
`persist-view-unparseable` and `persist-query-unparseable`; `persist-not-materializable` (a
|
|
5917
6028
|
`#@ persist` on a shape Malloy does not plan);
|
|
5918
|
-
`
|
|
5919
|
-
|
|
6029
|
+
`rollup-not-a-measure`, `rollup-unknown-grain` and
|
|
6030
|
+
`rollup-not-mergeable` (a rollup line on a field that is not
|
|
6031
|
+
a measure, a grain naming no dimension, a measure no rollup
|
|
6032
|
+
can merge);
|
|
5920
6033
|
`materialization-table-collision` (two sources whose
|
|
5921
6034
|
`name=` puts them on one table; under
|
|
5922
6035
|
`PERSIST_COLLISION_ENFORCE=false` a refusal instead); and
|
|
5923
6036
|
`materialization-near-miss` (a misspelled materialization
|
|
5924
6037
|
route or directive, such as `#(materialise)` or
|
|
5925
6038
|
`#@ persits`). `preaggregate-malformed` is retained and no
|
|
5926
|
-
longer produced: it is `
|
|
5927
|
-
`
|
|
6039
|
+
longer produced: it is `rollup-invalid` or
|
|
6040
|
+
`rollup-unparseable` now. Retained, no longer produced:
|
|
6041
|
+
`preaggregate-invalid`, `preaggregate-unknown-key`,
|
|
6042
|
+
`preaggregate-unparseable`, `preaggregate-not-a-measure`,
|
|
6043
|
+
`preaggregate-unknown-grain` and
|
|
6044
|
+
`preaggregate-not-mergeable`, now `rollup-invalid`,
|
|
6045
|
+
`rollup-unknown-key`, `rollup-unparseable`,
|
|
6046
|
+
`rollup-not-a-measure`, `rollup-unknown-grain` and
|
|
6047
|
+
`rollup-not-mergeable`. A measure or
|
|
6048
|
+
source that carries both `#(rollup)` and `#(preaggregate)`
|
|
6049
|
+
is `rollup-invalid`.
|
|
5928
6050
|
A VALID annotation Publisher cannot build here is refused
|
|
5929
6051
|
alone, answered live, while the package loads, and is
|
|
5930
|
-
severity `warn`, never `error
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
`
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
`persist-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
`
|
|
5941
|
-
`
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
compile-time gate refused alone (a read-only dialect, a base
|
|
5949
|
-
scoped by a given, a table name another rollup holds, a
|
|
5950
|
-
row-level gate on a v1 rollup's base, or the `storage=`
|
|
5951
|
-
gate), so it is not built and its measures are served live
|
|
5952
|
-
while the rest of the package loads; the message names the
|
|
5953
|
-
base, the grain and the gate's reason (`subject` the base;
|
|
5954
|
-
`warn`). The rollup sub-family keeps its own codes:
|
|
6052
|
+
severity `warn`, never `error`. Every one is a
|
|
6053
|
+
`BuildPlan.refusedSources` entry with a bounded `reason`,
|
|
6054
|
+
and its warning's code names the mechanism:
|
|
6055
|
+
`persist-not-built` (a `#@ persist` source; `subject` the
|
|
6056
|
+
source), `materialize-not-built` (a `#(materialize)` source;
|
|
6057
|
+
`subject` the source), `persist-view-not-built` and
|
|
6058
|
+
`persist-query-not-built` (a persisted view or named query;
|
|
6059
|
+
`subject` the view or query), and `rollup-not-built`
|
|
6060
|
+
(a `#(rollup)` or `#@ preaggregate` rollup; `subject`
|
|
6061
|
+
the base, or `<base>.<measure>` for one measure). The
|
|
6062
|
+
message says why, and `reason` is the refusal record's
|
|
6063
|
+
bounded reason. `preaggregate-not-built` is
|
|
6064
|
+
`rollup-not-built`'s former name: each `rollup-not-built`
|
|
6065
|
+
warning is repeated under it, with the same message, for
|
|
6066
|
+
this release only. `persist-source-refused`, the former name
|
|
6067
|
+
of `persist-not-built` repeated beside it in 0.14.0, is no
|
|
6068
|
+
longer produced.
|
|
6069
|
+
Retained, no longer produced: the rollup sub-family
|
|
5955
6070
|
`preaggregate-hidden-field`, `-access-filter`, `-time-zone`,
|
|
5956
6071
|
`-current-time`, `-reads-given`, `-unreadable-measure`,
|
|
5957
|
-
`-join-level`
|
|
5958
|
-
|
|
6072
|
+
`-join-level` and `-name-clash`, now each
|
|
6073
|
+
`rollup-not-built` with the reasons `hidden_field`,
|
|
6074
|
+
`access_filter` (or `authorize`), `time_zone`,
|
|
6075
|
+
`current_time`, `reads_given`,
|
|
6076
|
+
`inherited_where_with_given` or
|
|
6077
|
+
`given_where_over_unstored_field`, `unreadable_measure`,
|
|
6078
|
+
`join_not_in_grain` and `partial_name_collision`.
|
|
5959
6079
|
`materialization-storage-mode`: a `storage=` source the
|
|
5960
6080
|
deployment's `PERSIST_STORAGE_MODE` (`off` or `write-only`)
|
|
5961
6081
|
does not serve from storage (`subject` the source, or a
|
|
5962
|
-
rollup's base; `warn`).
|
|
6082
|
+
rollup's base; `reason` `storage_mode`; `warn`).
|
|
6083
|
+
`materialization-unreachable`,
|
|
6084
|
+
`materialization-destination-missing` and
|
|
6085
|
+
`materialization-connection-cannot-hold-table`: a source
|
|
6086
|
+
whose serve verdict is `live` for the reason each names (no
|
|
6087
|
+
published source reaches it; its `storage=` destination is not
|
|
6088
|
+
configured; its connection creates no tables), with the
|
|
6089
|
+
verdict's `message` and `fixes` (`subject` the source;
|
|
6090
|
+
`reason` the verdict's; `warn`).
|
|
6091
|
+
`materialize-pair-full-refresh`: a `#(materialize)` pair
|
|
6092
|
+
table (an inlined `join_many`) whose `refresh="incremental"`
|
|
6093
|
+
is not honoured: it is rebuilt in full on every refresh, and
|
|
6094
|
+
served (`subject` the source; `warn`).
|
|
6095
|
+
`rollup-join-one-key-repeated`: a rollup's last build found
|
|
6096
|
+
a `join_one` key repeated in the data, so queries that read
|
|
6097
|
+
that join beside other aggregates are answered live
|
|
6098
|
+
(`subject` the rollup's base; `warn`). Repeated under its
|
|
6099
|
+
former name `preaggregate-join-one-key-repeated` for this
|
|
6100
|
+
release only.
|
|
6101
|
+
`served-copy-not-served`: the served copy (the author's own
|
|
6102
|
+
files, each stored source re-rooted on its table) leaves a
|
|
6103
|
+
source as written, so it answers live, or serves it with a
|
|
6104
|
+
join read as written or left out; `reason` names why
|
|
6105
|
+
(`compile_failed`, `cross_connection_unbuilt`,
|
|
6106
|
+
`column_types`, `no_declaration`, `definition_not_parsed`,
|
|
6107
|
+
`pair_join_not_found`, `pair_not_compiled`,
|
|
6108
|
+
`fields_not_carried`, `read_terms_not_kept`,
|
|
6109
|
+
`cross_connection_join`, `inline_join_kept`,
|
|
6110
|
+
`reroot_not_compiled`, `classification_not_kept`; an open
|
|
6111
|
+
set) (`subject` the source; `warn`).
|
|
6112
|
+
`row-level-gate-unexpressible`: a row-level gate an entry
|
|
6113
|
+
point inherits, whose field it no longer carries, so that
|
|
6114
|
+
entry point denies every request; `row-level-gate-reads-no-given`:
|
|
6115
|
+
a source-line gate that reads no given, a fixed predicate
|
|
6116
|
+
rather than an access rule keyed on the caller;
|
|
6117
|
+
`row-level-gate-negated-membership`: a source-line gate that
|
|
6118
|
+
negates a membership test, which an empty given turns into
|
|
6119
|
+
match-all, or that is too deep to check for one (its message
|
|
6120
|
+
then says it is too deep to check, not that it negates one)
|
|
6121
|
+
(`model` the
|
|
6122
|
+
entry point's file, `subject` the entry point; `warn`; the
|
|
6123
|
+
model still loads).
|
|
6124
|
+
`annotation-near-miss` and `annotation-malformed-route`: an
|
|
6125
|
+
annotation whose route or directive looks like a misspelled
|
|
6126
|
+
one Publisher reads (`warn`); `annotation-gate-near-miss`: a
|
|
6127
|
+
misspelled gate annotation (`#(authorise)`), which
|
|
6128
|
+
`compile_model` refuses.
|
|
5963
6129
|
`persist-incremental-no-merge-key`: an incremental source
|
|
5964
6130
|
with no `merge_key=`, so each refresh replaces its watermark
|
|
5965
6131
|
range (`subject` the source; `warn`).
|
|
@@ -5967,18 +6133,73 @@ components:
|
|
|
5967
6133
|
the same SQL on one connection, so they share one table and
|
|
5968
6134
|
one boundary, where at least one is incremental (one per
|
|
5969
6135
|
source; `warn`).
|
|
6136
|
+
`rollup-join-one-key-repeated`: a bound rollup whose last
|
|
6137
|
+
build found the key of a `join_one` it reads repeated, so a
|
|
6138
|
+
query reading that join beside other aggregates is answered
|
|
6139
|
+
live; it clears once a build finds the key unique (one per
|
|
6140
|
+
rollup; `warn`). `preaggregate-join-one-key-repeated` is
|
|
6141
|
+
retained, no longer produced: it is
|
|
6142
|
+
`rollup-join-one-key-repeated` now.
|
|
5970
6143
|
`join-bypass`: an author join from a published source to one
|
|
5971
6144
|
with a stricter gate, which the join does not carry (one per
|
|
5972
6145
|
join, or one for a walk cut short at the join bound; always
|
|
5973
6146
|
a `warn`, never a load refusal; see docs/authorize.md).
|
|
5974
|
-
`storage-column-type-mismatch`: a `storage=` table
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
`
|
|
6147
|
+
`storage-column-type-mismatch`: a `storage=` table of any
|
|
6148
|
+
kind (`#@ persist`, `#(materialize)`, a rollup, a persisted
|
|
6149
|
+
view or query) stores a column as a type other than the one
|
|
6150
|
+
its build declares. It is read through a cast to the
|
|
6151
|
+
declared type where that is faithful, and otherwise
|
|
6152
|
+
answered live, never read as its stored type (one per
|
|
6153
|
+
source and column, `model` the model
|
|
6154
|
+
declaring it, `subject` the source, a rollup's base, or a
|
|
6155
|
+
view's or query's build source, the message naming the
|
|
6156
|
+
column, both types and which applies; `warn`; see
|
|
6157
|
+
docs/materialization.md).
|
|
6158
|
+
`database-column-type-mismatch`: a bound table in a source's
|
|
6159
|
+
own database whose column was altered, or dropped, outside a
|
|
6160
|
+
build, so it no longer stores the declared type; it is read
|
|
6161
|
+
through a cast where that is faithful, and otherwise answered
|
|
6162
|
+
live, until the table is rebuilt (one per source and column,
|
|
6163
|
+
`subject` the source; `warn`).
|
|
6164
|
+
`table-kept`: a table an auto-run replaced
|
|
6165
|
+
when its source's table was renamed or moved, which
|
|
6166
|
+
Publisher keeps rather than drops: one at an author's exact
|
|
6167
|
+
`name=` (never dropped), one in a storage destination
|
|
6168
|
+
that is no longer configured (which, when the destination
|
|
6169
|
+
was renamed rather than removed, may be the table served
|
|
6170
|
+
under the new name), or one a `storage=` or tier move left
|
|
6171
|
+
under the name the source is served under now (which may
|
|
6172
|
+
be the very table served, so it is never dropped).
|
|
6173
|
+
Listed on the newest run's
|
|
6174
|
+
`metadata.keptTables` until no committed run names it in
|
|
6175
|
+
its place (its runs deleted; a delete is record-only),
|
|
6176
|
+
a run finds it dropped by hand (never on Snowflake or
|
|
6177
|
+
MySQL, whose catalogs hide tables), or its name is used
|
|
6178
|
+
again in its own place
|
|
6179
|
+
(one per table, `model` the model
|
|
6180
|
+
declaring the source, `subject` the source or a rollup's
|
|
6181
|
+
base, the message naming the table and where it is,
|
|
6182
|
+
`reason` the kept table's `author_name`,
|
|
6183
|
+
`destination_missing` or `may_be_served`; `warn`; see
|
|
6184
|
+
docs/materialization.md).
|
|
6185
|
+
`database-table-unread`: a bound table in a source's own
|
|
6186
|
+
database whose columns could not be read when it was bound
|
|
6187
|
+
(missing, unreadable, slower than the read's bound, or named
|
|
6188
|
+
in more than one schema), so its queries are answered live
|
|
6189
|
+
until a read succeeds; the message names the table or
|
|
6190
|
+
rollup, one fixed reason (its connection could not be
|
|
6191
|
+
opened, the catalog read timed out, the catalog query
|
|
6192
|
+
failed, not found, a name matching more than one table, a
|
|
6193
|
+
name the catalog cannot read; never the driver's text) and
|
|
6194
|
+
whether a retry is pending, and the warning clears once the
|
|
6195
|
+
table is read (only for a table a source of the package
|
|
6196
|
+
reads; one per table, `model` the model declaring
|
|
6197
|
+
its source, `subject` the source, or a rollup's base, when
|
|
6198
|
+
the plan knows the table; `reason` one of
|
|
6199
|
+
`connection_failed`, `timed_out`, `catalog_query_failed`,
|
|
6200
|
+
`not_found`, `ambiguous`, `unparseable`, `not_read`; `warn`;
|
|
6201
|
+
see docs/materialization.md).
|
|
6202
|
+
`database-native-type-missing`: a database table is bound
|
|
5982
6203
|
with no captured warehouse type (its manifest entry's
|
|
5983
6204
|
`nativeSchema`) for a column whose field Malloy types as a big
|
|
5984
6205
|
integer. On BigQuery the column is read as `INT64`, its only
|
|
@@ -5987,7 +6208,8 @@ components:
|
|
|
5987
6208
|
full rebuild captures the types (one per source, `model` the
|
|
5988
6209
|
first model binding it, `subject` the source, the message
|
|
5989
6210
|
naming the columns and which applies; `warn`; see
|
|
5990
|
-
docs/materialization.md).
|
|
6211
|
+
docs/materialization.md). Repeated under its former name
|
|
6212
|
+
`stored-native-schema-missing` for this release only.
|
|
5991
6213
|
`entities-…` (`entities-not-a-dimension`,
|
|
5992
6214
|
`entities-parameterized-source`,
|
|
5993
6215
|
`entities-multiple-required-filters`,
|
|
@@ -6001,6 +6223,19 @@ components:
|
|
|
6001
6223
|
curation findings (`report-on-surface`,
|
|
6002
6224
|
`index-is-not-a-report`). The message wording may change; the
|
|
6003
6225
|
code does not.
|
|
6226
|
+
reason:
|
|
6227
|
+
type: string
|
|
6228
|
+
description: >-
|
|
6229
|
+
The bounded cause of a materialization finding, so a client
|
|
6230
|
+
branches on it rather than on the message (whose wording may
|
|
6231
|
+
change): the refusal record's `reason` on a `*-not-built`
|
|
6232
|
+
warning; the served copy's reason on
|
|
6233
|
+
`served-copy-not-served`; the unread reason on
|
|
6234
|
+
`database-table-unread`; the kept table's reason on
|
|
6235
|
+
`table-kept`; the serve verdict's reason on a
|
|
6236
|
+
`materialization-*` verdict warning; `storage_mode` on
|
|
6237
|
+
`materialization-storage-mode`. Always snake_case. An open
|
|
6238
|
+
string; absent on a finding that has none.
|
|
6004
6239
|
severity:
|
|
6005
6240
|
type: string
|
|
6006
6241
|
enum:
|
|
@@ -6126,6 +6361,7 @@ components:
|
|
|
6126
6361
|
enum:
|
|
6127
6362
|
- unbound
|
|
6128
6363
|
- bound
|
|
6364
|
+
- bind_failed
|
|
6129
6365
|
- live_fallback
|
|
6130
6366
|
description: >-
|
|
6131
6367
|
**Moved** to `GET …/packages/{packageName}/status` (`PackageServingState.manifestBindingStatus`) and the package's entry in `GET /status`. Present on a package response only while `PUBLISHER_PACKAGE_INLINE_FIELDS` is on, the default in this release; a later release removes it.
|
|
@@ -8520,15 +8756,19 @@ components:
|
|
|
8520
8756
|
exactly that many rows is a complete answer.
|
|
8521
8757
|
servedFrom:
|
|
8522
8758
|
type: ["string", "null"]
|
|
8523
|
-
enum: [storage, live_fallback, null]
|
|
8759
|
+
enum: [storage, database, live_fallback, null]
|
|
8524
8760
|
description: >-
|
|
8525
|
-
|
|
8526
|
-
routing decision at all.
|
|
8761
|
+
Which tier answered this query, when a materialized table did.
|
|
8527
8762
|
|
|
8528
8763
|
`storage` — served from a materialized table in a `storage=`
|
|
8529
8764
|
destination, via the virtual-source transform. The source's own
|
|
8530
8765
|
warehouse was not queried.
|
|
8531
8766
|
|
|
8767
|
+
`database` — served from a materialized table in the source's own
|
|
8768
|
+
database (`colocated` in releases before this one): a database `#@ persist` table Malloy substituted, a
|
|
8769
|
+
database `#(materialize)` table the served copy read, or a
|
|
8770
|
+
database rollup or persisted view.
|
|
8771
|
+
|
|
8532
8772
|
`live_fallback` — the query DID route to storage and the store then
|
|
8533
8773
|
failed underneath it, and the source's freshness fallback allowed it
|
|
8534
8774
|
to degrade to the live warehouse. **The rows are correct and the
|
|
@@ -8538,51 +8778,17 @@ components:
|
|
|
8538
8778
|
`publisher_query_route_total` the same event is the answering leg's
|
|
8539
8779
|
`outcome="fallback", reason="RUN_FAILED"`.
|
|
8540
8780
|
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
a deployment with no `storage=` sources, which is the default.
|
|
8553
|
-
2. It was answered from a **colocated** materialized table. The
|
|
8554
|
-
query never reached the routing decision, so a fully materialized
|
|
8555
|
-
answer reports the same null a fully live one does.
|
|
8556
|
-
3. The served copy did **not answer** this query, so it was served
|
|
8557
|
-
live. The query DID reach the routing decision and the tier
|
|
8558
|
-
declined it — a storage-tier miss, reported identically to "no
|
|
8559
|
-
materialization exists anywhere."
|
|
8560
|
-
|
|
8561
|
-
Case 3 is the one that costs time, because nothing about this field
|
|
8562
|
-
distinguishes it from case 1. `path`, the path report, does: it names
|
|
8563
|
-
the table that answered in every tier, and why each table that could
|
|
8564
|
-
have answered did not. The server also logs one
|
|
8565
|
-
`served copy cannot answer this query` line at DEBUG per declined
|
|
8566
|
-
query, carrying the error that declined it. It is not hypothetical —
|
|
8567
|
-
a source warehouse that folds unquoted identifiers to upper case once
|
|
8568
|
-
made every query on every `storage=` source in a package miss, and
|
|
8569
|
-
the whole tier reported null for months while looking exactly like a
|
|
8570
|
-
deployment that had never enabled it.
|
|
8571
|
-
|
|
8572
|
-
For the colocated tier there is no per-query signal at all. The
|
|
8573
|
-
package-grain fields are the nearest thing —
|
|
8574
|
-
`manifestBindingStatus`, `manifestEntryCount` and
|
|
8575
|
-
`storageServeBindings` — but read what each actually claims:
|
|
8576
|
-
`bound` reports that the bind ran to completion, explicitly NOT that
|
|
8577
|
-
any query routes to a materialized table, and `manifestEntryCount`
|
|
8578
|
-
counts colocated entries only, so a package whose sources are all
|
|
8579
|
-
`storage=` reports 0 while being fully bound.
|
|
8580
|
-
|
|
8581
|
-
⚠️ **`live_fallback` here is not `manifestBindingStatus`'s.** On this
|
|
8582
|
-
field it means the store failed at run time; `manifestBindingStatus`
|
|
8583
|
-
uses the same token for a configured `manifestLocation` whose fetch
|
|
8584
|
-
or bind failed. Each surface is internally consistent; neither means
|
|
8585
|
-
what the other does.
|
|
8781
|
+
Null means no materialized table answered: the query was served
|
|
8782
|
+
live. `path`, the path report, says why each table that could have
|
|
8783
|
+
answered did not, and `path.servedBy.tier` names the same tier this
|
|
8784
|
+
field does. The server also logs a
|
|
8785
|
+
`served copy cannot answer this query` line at DEBUG, carrying the
|
|
8786
|
+
error that declined the query and its decline code.
|
|
8787
|
+
|
|
8788
|
+
`live_fallback` here means the store failed at run time for this
|
|
8789
|
+
query. A configured `manifestLocation` whose fetch or bind failed is
|
|
8790
|
+
`manifestBindingStatus: bind_failed` (releases before this one
|
|
8791
|
+
spelled that `live_fallback` too).
|
|
8586
8792
|
executionTimeMs:
|
|
8587
8793
|
type: integer
|
|
8588
8794
|
description: >-
|
|
@@ -8634,9 +8840,7 @@ components:
|
|
|
8634
8840
|
materialized table that served it (or `live`), every materialized
|
|
8635
8841
|
table on the queried source's chain with the reason each one that
|
|
8636
8842
|
did not answer was skipped, and nearby tables the query could not
|
|
8637
|
-
use
|
|
8638
|
-
and pre-aggregation rollups as well as `storage=`, so a null
|
|
8639
|
-
`servedFrom` no longer hides whether a table answered.
|
|
8843
|
+
use, for every tier.
|
|
8640
8844
|
|
|
8641
8845
|
Absent only when the report could not be assembled; the query's
|
|
8642
8846
|
answer never depends on it.
|
|
@@ -8664,8 +8868,10 @@ components:
|
|
|
8664
8868
|
Every materialized table on the queried source's chain, and every
|
|
8665
8869
|
rollup of a source on it, that could have answered this query: the
|
|
8666
8870
|
one that served it marked `used`, the rest `skipped` with a reason.
|
|
8667
|
-
|
|
8668
|
-
|
|
8871
|
+
Listed as `storage=` tables, then database rollups, then database
|
|
8872
|
+
tables nearest first, which is not the order Publisher tries them
|
|
8873
|
+
(a persisted view or query, then rollups coarsest first, then the
|
|
8874
|
+
served copy). A table
|
|
8669
8875
|
that was not tried because an earlier one answered is left out.
|
|
8670
8876
|
Empty when the queried source has no materialized table.
|
|
8671
8877
|
items:
|
|
@@ -8684,7 +8890,7 @@ components:
|
|
|
8684
8890
|
warnings:
|
|
8685
8891
|
type: array
|
|
8686
8892
|
description: >-
|
|
8687
|
-
The serve verdicts behind this query's `
|
|
8893
|
+
The serve verdicts behind this query's `NOT_SERVED` skips: one per table
|
|
8688
8894
|
on the queried source's chain that no query can be answered from,
|
|
8689
8895
|
each with a code and a sentence for a person. A table whose source
|
|
8690
8896
|
the caller cannot list is left out, as in `notConsidered`. Empty
|
|
@@ -8701,15 +8907,20 @@ components:
|
|
|
8701
8907
|
code:
|
|
8702
8908
|
type: string
|
|
8703
8909
|
description: >-
|
|
8704
|
-
The serve verdict's reason: `
|
|
8705
|
-
|
|
8910
|
+
The serve verdict's reason (`ServeVerdict.reason`): `refused` (the
|
|
8911
|
+
package refuses to serve it), `storage_mode` (built into storage,
|
|
8912
|
+
but the server's PERSIST_STORAGE_MODE routes no query to it),
|
|
8706
8913
|
`unreachable` (no published source reaches it), `row_level_gate`
|
|
8707
8914
|
(every published entry point over it carries a gate it cannot keep
|
|
8708
|
-
yet), `
|
|
8709
|
-
storage table is bound to another
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8915
|
+
yet), `stale` (past its freshness window, with a fallback that does
|
|
8916
|
+
not serve stale), `shadowed` (its storage table is bound to another
|
|
8917
|
+
source of the same name), `destination_missing` (`storage=` names
|
|
8918
|
+
a destination the environment does not configure),
|
|
8919
|
+
`connection_cannot_hold_table` (its connection creates no tables),
|
|
8920
|
+
`materialization_off` (only the served copy reads it, and the
|
|
8921
|
+
served copy is off) or `served_copy` (only the served copy reads
|
|
8922
|
+
it, and the served copy does not re-root it). An open set: treat a
|
|
8923
|
+
code you do not know as a warning like any other.
|
|
8713
8924
|
tableId:
|
|
8714
8925
|
type: string
|
|
8715
8926
|
description: The table, as `considered` names it.
|
|
@@ -8768,9 +8979,24 @@ components:
|
|
|
8768
8979
|
properties:
|
|
8769
8980
|
kind:
|
|
8770
8981
|
$ref: "#/components/schemas/QueryPathTableKind"
|
|
8982
|
+
origin:
|
|
8983
|
+
type: string
|
|
8984
|
+
enum: [persist, materialize, view, query, rollup]
|
|
8985
|
+
description: >-
|
|
8986
|
+
The mechanism that declared the table, as `PersistSourcePlan.origin`
|
|
8987
|
+
names it. `kind: materialized` is `persist` or `materialize`.
|
|
8988
|
+
Absent when `kind` is `live`, or when the table's mechanism is not
|
|
8989
|
+
known.
|
|
8771
8990
|
tableId:
|
|
8772
8991
|
type: string
|
|
8773
8992
|
description: The table that answered. Absent when `kind` is `live`.
|
|
8993
|
+
tier:
|
|
8994
|
+
type: string
|
|
8995
|
+
enum: [database, storage]
|
|
8996
|
+
description: >-
|
|
8997
|
+
Where the table that answered lives: `database`, the source's own
|
|
8998
|
+
database, or `storage`, a `storage=` destination. The same tier the
|
|
8999
|
+
query result's `servedFrom` reports. Absent when `kind` is `live`.
|
|
8774
9000
|
dataAsOf:
|
|
8775
9001
|
type: string
|
|
8776
9002
|
format: date-time
|
|
@@ -8795,22 +9021,35 @@ components:
|
|
|
8795
9021
|
type: string
|
|
8796
9022
|
kind:
|
|
8797
9023
|
$ref: "#/components/schemas/QueryPathTableKind"
|
|
9024
|
+
origin:
|
|
9025
|
+
type: string
|
|
9026
|
+
enum: [persist, materialize, view, query, rollup]
|
|
9027
|
+
description: >-
|
|
9028
|
+
The mechanism that declared the table, as `PersistSourcePlan.origin`
|
|
9029
|
+
names it. `kind: materialized` is `persist` or `materialize`.
|
|
9030
|
+
Absent when `kind` is `live`, or when the table's mechanism is not
|
|
9031
|
+
known.
|
|
8798
9032
|
outcome:
|
|
8799
9033
|
type: string
|
|
8800
9034
|
enum: [used, skipped]
|
|
8801
|
-
description: "`used`, the table answered; `skipped`, it could not, and `reason` says why."
|
|
9035
|
+
description: "`used`, the table answered; `skipped`, it could not, and `reason` says why. A rollup the rollup leg tried carries that rollup's own `reason` and `detail`, so two rollups of one source skipped for different reasons report each its own; one the leg never tried carries the leg's."
|
|
8802
9036
|
reason:
|
|
8803
9037
|
$ref: "#/components/schemas/SkipReason"
|
|
8804
9038
|
code:
|
|
8805
9039
|
type: string
|
|
8806
9040
|
description: >-
|
|
8807
|
-
For a `
|
|
8808
|
-
query
|
|
8809
|
-
|
|
8810
|
-
copy
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
9041
|
+
For a `NOT_SERVED` skip, the serve verdict's reason the table
|
|
9042
|
+
answers no query, from the same set as `QueryPathWarning.code`;
|
|
9043
|
+
for a table only the served copy reads, `served_copy` also when
|
|
9044
|
+
the served copy does not re-root the queried source (the
|
|
9045
|
+
`served-copy-not-served` package warning says why). Always
|
|
9046
|
+
snake_case. An open set. Absent on any other outcome, and on a
|
|
9047
|
+
`NOT_SERVED` skip whose verdict is not known.
|
|
9048
|
+
|
|
9049
|
+
|
|
9050
|
+
Retained, no longer produced (shipped in 0.14.0):
|
|
9051
|
+
`served-copy-not-served`, now `served_copy`; `persist-opt-out`,
|
|
9052
|
+
now the skip reason `OPTED_OUT`.
|
|
8814
9053
|
detail:
|
|
8815
9054
|
type: string
|
|
8816
9055
|
description: >-
|
|
@@ -8830,6 +9069,14 @@ components:
|
|
|
8830
9069
|
type: string
|
|
8831
9070
|
kind:
|
|
8832
9071
|
$ref: "#/components/schemas/QueryPathTableKind"
|
|
9072
|
+
origin:
|
|
9073
|
+
type: string
|
|
9074
|
+
enum: [persist, materialize, view, query, rollup]
|
|
9075
|
+
description: >-
|
|
9076
|
+
The mechanism that declared the table, as `PersistSourcePlan.origin`
|
|
9077
|
+
names it. `kind: materialized` is `persist` or `materialize`.
|
|
9078
|
+
Absent when `kind` is `live`, or when the table's mechanism is not
|
|
9079
|
+
known.
|
|
8833
9080
|
sourceName:
|
|
8834
9081
|
type: string
|
|
8835
9082
|
description: The source the table materializes; for a rollup, the source it rolls up.
|
|
@@ -8850,36 +9097,54 @@ components:
|
|
|
8850
9097
|
What kind of answer: `view`, a persisted view's table; `query`, a
|
|
8851
9098
|
persisted named query's table (`#@ persist` on a top-level `query:`);
|
|
8852
9099
|
`rollup`, a pre-aggregation; `materialized`, a materialized source's
|
|
8853
|
-
table
|
|
9100
|
+
table (`origin` `persist` or `materialize`; this kind is not
|
|
9101
|
+
extended); `live`, the source's own warehouse. A client treats a kind it
|
|
8854
9102
|
does not know as a materialized table it cannot name.
|
|
8855
9103
|
|
|
8856
9104
|
SkipReason:
|
|
8857
9105
|
type: string
|
|
8858
9106
|
enum:
|
|
8859
9107
|
- NOT_BUILT
|
|
8860
|
-
-
|
|
9108
|
+
- NOT_SERVED
|
|
9109
|
+
- OPTED_OUT
|
|
8861
9110
|
- MISSING_FIELD
|
|
8862
|
-
-
|
|
9111
|
+
- SHAPE_MISMATCH
|
|
9112
|
+
- ROW_LEVEL_GATE
|
|
8863
9113
|
- GRAIN_TOO_COARSE
|
|
8864
9114
|
- TIME_ZONE
|
|
8865
9115
|
- CROSS_CONNECTION
|
|
8866
9116
|
- COUNT_SEMANTICS
|
|
8867
9117
|
- STALE
|
|
9118
|
+
- READ_FAILED
|
|
9119
|
+
- WARNED
|
|
9120
|
+
- CONTRACT
|
|
8868
9121
|
- RUN_FAILED
|
|
8869
9122
|
description: >-
|
|
8870
9123
|
Why a table could not answer a query. `NOT_BUILT`, it is not bound to
|
|
8871
|
-
this package; `
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
9124
|
+
this package yet; `NOT_SERVED`, its serve verdict is `live`, so it
|
|
9125
|
+
answers no query, and the candidate's `code` names the verdict's
|
|
9126
|
+
reason; `OPTED_OUT`, the queried source opts out of its tables with
|
|
9127
|
+
`#@ -persist`; `MISSING_FIELD`, the query reads a field the table
|
|
9128
|
+
lacks (or otherwise does not compile against it); `SHAPE_MISMATCH`,
|
|
9129
|
+
the query is not the shape the stored result answers: it is not a
|
|
9130
|
+
call of the persisted view or query, it refines the call, or its text
|
|
9131
|
+
names beside the call a name the stored result's variant takes over;
|
|
9132
|
+
`ROW_LEVEL_GATE`, answering from it would bypass a row-level gate on
|
|
9133
|
+
the queried source; `GRAIN_TOO_COARSE`, a rollup's grain does not
|
|
9134
|
+
cover the query's groups or filters; `TIME_ZONE`, it was built in
|
|
9135
|
+
another time zone than the query's; `CROSS_CONNECTION`, the query
|
|
9136
|
+
needs a join the table's connection cannot reach; `COUNT_SEMANTICS`,
|
|
9137
|
+
an aggregate the table cannot reproduce as the live query computes
|
|
9138
|
+
it; `STALE`, it is past its freshness window; `READ_FAILED`, it was
|
|
9139
|
+
chosen but reading it failed at run time, and its freshness fallback
|
|
9140
|
+
allowed live.
|
|
9141
|
+
|
|
9142
|
+
|
|
9143
|
+
Retained, no longer produced (shipped in 0.14.0): `WARNED`, now
|
|
9144
|
+
`NOT_SERVED` (or `OPTED_OUT` for `#@ -persist`); `CONTRACT`, now
|
|
9145
|
+
`ROW_LEVEL_GATE`; `RUN_FAILED`, now `READ_FAILED`. A closed list to
|
|
9146
|
+
which codes may be added, so a client treats an unknown one as a
|
|
9147
|
+
skip it cannot explain.
|
|
8883
9148
|
|
|
8884
9149
|
LogMessage:
|
|
8885
9150
|
type: object
|
|
@@ -9909,6 +10174,12 @@ components:
|
|
|
9909
10174
|
details:
|
|
9910
10175
|
type: string
|
|
9911
10176
|
description: Additional error details or context
|
|
10177
|
+
refusalReason:
|
|
10178
|
+
type: string
|
|
10179
|
+
description: >-
|
|
10180
|
+
With `reason: MATERIALIZATION_REFUSED`: the refusal's bounded
|
|
10181
|
+
reason, from the same open set as `RefusedSource.reason`. Absent
|
|
10182
|
+
otherwise.
|
|
9912
10183
|
reason:
|
|
9913
10184
|
type: string
|
|
9914
10185
|
description: |
|
|
@@ -9937,6 +10208,48 @@ components:
|
|
|
9937
10208
|
the environment does not have, usually one deleted after the
|
|
9938
10209
|
package was loaded.
|
|
9939
10210
|
|
|
10211
|
+
STORAGE_ACCESS_DENIED, on a 403, means an object store refused the
|
|
10212
|
+
database's read under a data path the environment configures (a
|
|
10213
|
+
DuckLake catalog's, a storage destination's): the query and the
|
|
10214
|
+
model are fine, and whoever configures the database's storage
|
|
10215
|
+
credentials has to fix it. PATH_ACCESS_DENIED, on a 403, means the
|
|
10216
|
+
object store at a path the query or the model reads itself (a file
|
|
10217
|
+
or table URL) refused access: change the path, or get the caller a
|
|
10218
|
+
grant to it. Retrying either fails the same way. The body names the
|
|
10219
|
+
source or connection the caller read and no storage path.
|
|
10220
|
+
|
|
10221
|
+
ACCESS_DENIED, on a 403, means a gate (`#(authorize)` or
|
|
10222
|
+
`#(access_filter)`) refused the caller. Every gate 403 carries it,
|
|
10223
|
+
including a gate that could not be decided, which fails closed and
|
|
10224
|
+
answers the same: only the server's metrics and log tell those
|
|
10225
|
+
apart. A 403 with any other reason is not a gate's.
|
|
10226
|
+
|
|
10227
|
+
MATERIALIZATION_REFUSED, on a 422, means a valid materialization
|
|
10228
|
+
declaration this server will not build. The body's `refusalReason`
|
|
10229
|
+
is the refusal's `RefusedSource.reason`.
|
|
10230
|
+
|
|
10231
|
+
TABLE_OWNED_ELSEWHERE and TABLE_OWNERSHIP_UNVERIFIED, on a 400,
|
|
10232
|
+
mean a build was refused before it wrote because its `name=` is
|
|
10233
|
+
held by a table this package does not own, or because who holds
|
|
10234
|
+
it could not be read.
|
|
10235
|
+
|
|
10236
|
+
BUILD_INSTRUCTIONS_INVALID, on a 400 from creating a
|
|
10237
|
+
materialization, means its body or build instructions are not a
|
|
10238
|
+
run this package can take (a field of the wrong shape, an unknown
|
|
10239
|
+
source, a table named twice, a ledger entry that does not fit);
|
|
10240
|
+
the message names which. Retrying unchanged fails the same way.
|
|
10241
|
+
|
|
10242
|
+
MATERIALIZATION_CONFLICT, on a 409, means a materialization run
|
|
10243
|
+
conflicts with another run or with the package's binding. Two of
|
|
10244
|
+
its cases clear on their own, so retry later: a run already active
|
|
10245
|
+
for the package, and a table another run is writing. Two do not
|
|
10246
|
+
clear until something changes, so a retry fails the same way: an
|
|
10247
|
+
auto-run of a package or version a host manifest serves (pass
|
|
10248
|
+
`buildInstructions`, or clear the binding), and a run of a version
|
|
10249
|
+
that is not latest touching the tables a `scope: package`
|
|
10250
|
+
package's versions share (name tables of its own in
|
|
10251
|
+
`buildInstructions`). The message says which.
|
|
10252
|
+
|
|
9940
10253
|
Deliberately an open string rather than an enum. Generators render
|
|
9941
10254
|
an enum closed, so adding a second value here would break every
|
|
9942
10255
|
client generated before it -- on the one field whose purpose is to
|
|
@@ -9977,7 +10290,10 @@ components:
|
|
|
9977
10290
|
|
|
9978
10291
|
Known values: TABLE_NOT_FOUND, CONNECTION_FAILED,
|
|
9979
10292
|
CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND,
|
|
9980
|
-
|
|
10293
|
+
STORAGE_ACCESS_DENIED, PATH_ACCESS_DENIED, ACCESS_DENIED,
|
|
10294
|
+
MATERIALIZATION_REFUSED, TABLE_OWNED_ELSEWHERE,
|
|
10295
|
+
TABLE_OWNERSHIP_UNVERIFIED, BUILD_INSTRUCTIONS_INVALID,
|
|
10296
|
+
MATERIALIZATION_CONFLICT, MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID,
|
|
9981
10297
|
VERSION_CONFLICT, PACKAGE_IS_VERSIONED,
|
|
9982
10298
|
PACKAGE_INSTALLED_FROM_LOCATION, FILE_EXISTS, VERSION_IS_LATEST,
|
|
9983
10299
|
VERSION_IS_LAST_ACTIVE, VERSION_BUILDING, VERSION_ID_INVALID,
|
|
@@ -10094,8 +10410,12 @@ components:
|
|
|
10094
10410
|
against the replacement. It also reports the render-tag findings
|
|
10095
10411
|
(code "render-tag") and the dashboard, given and drill findings
|
|
10096
10412
|
(code "dashboard-lint") a reload would put on the package's
|
|
10097
|
-
warnings, at their own severity and with no position
|
|
10098
|
-
|
|
10413
|
+
warnings, at their own severity and with no position, and the
|
|
10414
|
+
load's verdict on the materialization annotations: each line a
|
|
10415
|
+
load fails with as an error with its code, each annotation the
|
|
10416
|
+
load leaves unbuilt as a warning ("file" reports the same verdict
|
|
10417
|
+
when the file names a materialization route or the package plans
|
|
10418
|
+
a table). The package's other warnings (storage, bound tables,
|
|
10099
10419
|
explores, surface and discovery warnings, among others) are not
|
|
10100
10420
|
reported. Package diagnostics can name
|
|
10101
10421
|
files hidden from discovery. No rows or SQL are returned, and
|
|
@@ -10462,9 +10782,16 @@ components:
|
|
|
10462
10782
|
description: >-
|
|
10463
10783
|
Build output. Null until the tables are built (status
|
|
10464
10784
|
MANIFEST_ROWS_READY), and on a run that failed or was cancelled
|
|
10465
|
-
before then
|
|
10785
|
+
before then, with one exception: a run that FAILED because every
|
|
10786
|
+
source it was asked to build failed or was refused carries a
|
|
10787
|
+
manifest whose `failures` holds each such source's own reason and
|
|
10788
|
+
`retryable`, keyed by sourceEntityId, and whose `entries` is
|
|
10789
|
+
empty. A run interrupted at MANIFEST_ROWS_READY (the server
|
|
10466
10790
|
stopped while it loaded its manifest) ends FAILED with its
|
|
10467
|
-
manifest
|
|
10791
|
+
manifest. Publisher never serves or binds a FAILED run's
|
|
10792
|
+
manifest; a host may still bind the sources it reused, from its
|
|
10793
|
+
own records. Such a manifest has no `builtAt`, since nothing was
|
|
10794
|
+
built; the run's `completedAt` says when it ended.
|
|
10468
10795
|
startedAt:
|
|
10469
10796
|
type: ["string", "null"]
|
|
10470
10797
|
format: date-time
|
|
@@ -10479,19 +10806,68 @@ components:
|
|
|
10479
10806
|
description: >-
|
|
10480
10807
|
Materialization metadata including build options, source counts,
|
|
10481
10808
|
and durations. Free-form object — fields such as `trigger`
|
|
10482
|
-
(
|
|
10809
|
+
(`on_demand` | `scheduler`, the words `RunContext.trigger` uses;
|
|
10810
|
+
releases before this one wrote `ON_DEMAND` | `SCHEDULER`, which a
|
|
10811
|
+
reader of older runs must still accept) live here deliberately, so a strict-schema
|
|
10483
10812
|
client does not need to know them. Promoting any such field to a
|
|
10484
10813
|
top-level `Materialization` property is a breaking schema change
|
|
10485
10814
|
that orchestrated clients must adopt first; do not do it casually.
|
|
10486
10815
|
`errorRetryable` (boolean) is set on a FAILED run that built
|
|
10487
|
-
nothing,
|
|
10488
|
-
`failures`: `false` when every source failed
|
|
10489
|
-
was refused, `true` when any failure was
|
|
10490
|
-
rules as `SourceFailure.retryable`.
|
|
10491
|
-
cancelled run, and from a
|
|
10816
|
+
nothing, the whole run's answer beside each source's own in
|
|
10817
|
+
`manifest.failures`: `false` when every source failed
|
|
10818
|
+
deterministically or was refused, `true` when any failure was
|
|
10819
|
+
transient, with the same rules as `SourceFailure.retryable`.
|
|
10820
|
+
Absent when unclassified, for a cancelled run, and from a
|
|
10821
|
+
Publisher that predates it.
|
|
10492
10822
|
`errorAtCancel` (string) is set on a CANCELLED run whose last
|
|
10493
10823
|
error was not the cancellation itself: the message of the failure
|
|
10494
10824
|
the cancel raced, which `error` reports only as "Cancelled".
|
|
10825
|
+
`keptTables` (array) is set on an auto-run that lists the tables
|
|
10826
|
+
a rename or move left and Publisher keeps rather than drops (see
|
|
10827
|
+
the `table-kept` warning).
|
|
10828
|
+
additionalProperties: true
|
|
10829
|
+
properties:
|
|
10830
|
+
keptTables:
|
|
10831
|
+
type: array
|
|
10832
|
+
description: >-
|
|
10833
|
+
Tables an auto-run replaced and Publisher keeps, carried
|
|
10834
|
+
forward by later runs until no committed run names the table
|
|
10835
|
+
in its place, the name is built again in its own place, or a
|
|
10836
|
+
run finds the table gone. An older server leaves out an entry
|
|
10837
|
+
whose `reason` it does not know.
|
|
10838
|
+
items:
|
|
10839
|
+
type: object
|
|
10840
|
+
required:
|
|
10841
|
+
[sourceEntityId, physicalTableName, connectionName, reason]
|
|
10842
|
+
properties:
|
|
10843
|
+
sourceEntityId:
|
|
10844
|
+
type: string
|
|
10845
|
+
description: The source the table was built for.
|
|
10846
|
+
sourceName:
|
|
10847
|
+
type: string
|
|
10848
|
+
description: The source's name, when the run recorded it.
|
|
10849
|
+
physicalTableName:
|
|
10850
|
+
type: string
|
|
10851
|
+
description: The kept table, as the run that built it wrote it.
|
|
10852
|
+
connectionName:
|
|
10853
|
+
type: string
|
|
10854
|
+
description: The source's connection.
|
|
10855
|
+
storageDestinationName:
|
|
10856
|
+
type: string
|
|
10857
|
+
description: >-
|
|
10858
|
+
The storage destination holding the table; absent for a
|
|
10859
|
+
table in the connection's own database.
|
|
10860
|
+
reason:
|
|
10861
|
+
type: string
|
|
10862
|
+
enum: [author_name, destination_missing, may_be_served]
|
|
10863
|
+
description: >-
|
|
10864
|
+
`author_name`: at an author's exact `name=`, which
|
|
10865
|
+
Publisher never drops. `destination_missing`: in a
|
|
10866
|
+
storage destination no longer configured, which
|
|
10867
|
+
Publisher cannot reach. `may_be_served`: under the
|
|
10868
|
+
table segment the source is served under now, in
|
|
10869
|
+
another place or container, so it may be the very
|
|
10870
|
+
table served, and is never dropped.
|
|
10495
10871
|
createdAt:
|
|
10496
10872
|
type: string
|
|
10497
10873
|
format: date-time
|
|
@@ -10526,17 +10902,26 @@ components:
|
|
|
10526
10902
|
refusedSources:
|
|
10527
10903
|
type: object
|
|
10528
10904
|
description: >-
|
|
10529
|
-
Map of sourceID ("sourceName@modelURL") to
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10905
|
+
Map of sourceID ("sourceName@modelURL") to every valid
|
|
10906
|
+
materialization declaration the package makes that is not built
|
|
10907
|
+
here: a `#@ persist` or `#(materialize)` source, a persisted view
|
|
10908
|
+
or named query, or a rollup (`#(rollup)` or
|
|
10909
|
+
`#@ preaggregate`). Each is answered live while the rest of the
|
|
10910
|
+
package loads, and each carries its `reason`. An invalid
|
|
10911
|
+
declaration is never here: it fails the publish and the load. A
|
|
10912
|
+
SEPARATE collection rather than a field on `PersistSourcePlan`:
|
|
10913
|
+
constructing that plan entry requires the source's SQL and content
|
|
10914
|
+
address, and a refused declaration may produce neither. Lets a
|
|
10915
|
+
host distinguish "this package declares no materialization" (both
|
|
10916
|
+
maps empty) from "every declaration was refused" (empty `sources`,
|
|
10917
|
+
populated `refusedSources`), which silence otherwise reads as the
|
|
10918
|
+
former. A persisted view or query is keyed by the generated build
|
|
10919
|
+
source it would have had (`<source>__<view>__view@…` or
|
|
10920
|
+
`<query>__query@…`), a `#(materialize)` source by its own
|
|
10921
|
+
sourceID, and a rollup measure refused before its rollup is
|
|
10922
|
+
planned by the measure's path on its base, its grain and its
|
|
10923
|
+
destination (`<base>.<measure>[<grain>]@<model>.preaggregate.malloy`,
|
|
10924
|
+
`[<grain> in <destination>]` for a `storage=` one).
|
|
10540
10925
|
additionalProperties:
|
|
10541
10926
|
$ref: "#/components/schemas/RefusedSource"
|
|
10542
10927
|
omittedSources:
|
|
@@ -10603,7 +10988,7 @@ components:
|
|
|
10603
10988
|
value); `eligibility_check_failed` (an eligibility gate failed
|
|
10604
10989
|
with an error rather than a refusal); `projection_failed` (the
|
|
10605
10990
|
plan entry could not otherwise be computed);
|
|
10606
|
-
`rollup_companion_failed` (the generated `#(
|
|
10991
|
+
`rollup_companion_failed` (the generated `#(rollup)` rollup
|
|
10607
10992
|
companion, which also plans v1 `#@ preaggregate` rollups, did not
|
|
10608
10993
|
plan or compile); `rollup_companion_blanking_failed` (that companion was
|
|
10609
10994
|
not built because a `#@` line of the author's files could not be
|
|
@@ -10646,22 +11031,41 @@ components:
|
|
|
10646
11031
|
RefusedSource:
|
|
10647
11032
|
type: object
|
|
10648
11033
|
description: >-
|
|
10649
|
-
One
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
`
|
|
10656
|
-
|
|
10657
|
-
the
|
|
10658
|
-
|
|
10659
|
-
|
|
11034
|
+
One valid materialization declaration Publisher does not build here,
|
|
11035
|
+
and why: the one refusal record for every mechanism (`#@ persist`,
|
|
11036
|
+
`#(materialize)`, a persisted view or named query, and a rollup). It
|
|
11037
|
+
is answered live, and the package carries one `*-not-built` warning
|
|
11038
|
+
for it (`persist-not-built`, `materialize-not-built`,
|
|
11039
|
+
`persist-view-not-built`, `persist-query-not-built` or
|
|
11040
|
+
`rollup-not-built`) with this `message`. A `#@ persist`
|
|
11041
|
+
source's gate refusal is computed from the SAME tier-appropriate
|
|
11042
|
+
eligibility assert the build path itself enforces (the database
|
|
11043
|
+
tier's post-relaxation admission for a proven row-level,
|
|
11044
|
+
fully-attributed authorize gate applies here too), so a source this
|
|
11045
|
+
reports as refused is refused for the tier it would actually build
|
|
11046
|
+
under. A rollup's entry (`origin: rollup`) can coexist with an entry
|
|
11047
|
+
of the same sourceID in `BuildPlan.sources`: the one mechanism where
|
|
11048
|
+
refused-and-present-in-sources is the correct, intended state; for
|
|
11049
|
+
every other a refusal means absence from `sources`.
|
|
10660
11050
|
required: [name, sourceID, tier, reason, message]
|
|
10661
11051
|
properties:
|
|
11052
|
+
origin:
|
|
11053
|
+
type: string
|
|
11054
|
+
enum: [persist, materialize, view, query, rollup]
|
|
11055
|
+
description: >-
|
|
11056
|
+
The mechanism that declared it, as `PersistSourcePlan.origin` names
|
|
11057
|
+
it: `persist`, `materialize`, `view`, `query`, or `rollup`. Read
|
|
11058
|
+
this, not `tier`, to tell a rollup's refusal. Absent on a record a
|
|
11059
|
+
release before this one wrote, where `tier: preaggregate` marked a
|
|
11060
|
+
rollup.
|
|
10662
11061
|
name:
|
|
10663
11062
|
type: string
|
|
10664
|
-
description:
|
|
11063
|
+
description: >-
|
|
11064
|
+
The declaration's name: a source's declared name, a persisted
|
|
11065
|
+
view's or query's generated build source name
|
|
11066
|
+
(`<source>__<view>__view`, `<query>__query`), a planned rollup's
|
|
11067
|
+
generated name, or, for a rollup measure refused before its
|
|
11068
|
+
rollup is planned, `<base>.<measure>`.
|
|
10665
11069
|
sourceID:
|
|
10666
11070
|
type: string
|
|
10667
11071
|
description: "sourceName@modelURL — matches this entry's map key."
|
|
@@ -10673,18 +11077,20 @@ components:
|
|
|
10673
11077
|
model path could not be resolved.
|
|
10674
11078
|
tier:
|
|
10675
11079
|
type: string
|
|
10676
|
-
enum: [storage,
|
|
10677
|
-
description: >-
|
|
10678
|
-
Which build path this
|
|
10679
|
-
|
|
10680
|
-
the full storage-destination eligibility gate,
|
|
10681
|
-
admits an authorize-gated source); `
|
|
10682
|
-
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
11080
|
+
enum: [storage, database, preaggregate, colocated]
|
|
11081
|
+
description: >-
|
|
11082
|
+
Which build path this declaration was evaluated against: `storage`
|
|
11083
|
+
for one declaring `storage=<ref>` (a `#@ persist` source is
|
|
11084
|
+
evaluated against the full storage-destination eligibility gate,
|
|
11085
|
+
which never admits an authorize-gated source); `database` for one
|
|
11086
|
+
built in its own connection's database (a `#@ persist` source is
|
|
11087
|
+
evaluated against the database gate, which admits a proven
|
|
11088
|
+
row-level, fully-attributed gate). A rollup's is its own placement,
|
|
11089
|
+
as any other mechanism's. `preaggregate` is retained, no longer
|
|
11090
|
+
produced: releases before this one said it for a rollup, whatever
|
|
11091
|
+
its placement; read `origin` for the mechanism. `colocated` is
|
|
11092
|
+
retained, no longer produced: it is what releases before this one
|
|
11093
|
+
said for `database`, and a client should read it as `database`.
|
|
10688
11094
|
reason:
|
|
10689
11095
|
type: string
|
|
10690
11096
|
enum:
|
|
@@ -10705,96 +11111,163 @@ components:
|
|
|
10705
11111
|
not_duckdb_portable,
|
|
10706
11112
|
public_surface_unknown,
|
|
10707
11113
|
read_only_dialect,
|
|
11114
|
+
connection_cannot_hold_table,
|
|
10708
11115
|
storage_source_unsupported,
|
|
10709
11116
|
env_reference,
|
|
10710
11117
|
rollup_name_collision,
|
|
10711
11118
|
empty_storage,
|
|
10712
11119
|
table_name_collision,
|
|
10713
11120
|
current_time,
|
|
11121
|
+
reads_given,
|
|
11122
|
+
incremental_unsupported,
|
|
11123
|
+
materialization_off,
|
|
11124
|
+
multi_line_annotation,
|
|
11125
|
+
build_name_collision,
|
|
11126
|
+
run_target_unsupported,
|
|
11127
|
+
nested_result,
|
|
11128
|
+
inherited_persist,
|
|
11129
|
+
inline_unsupported,
|
|
11130
|
+
no_stored_columns,
|
|
11131
|
+
needs_qualified_name,
|
|
11132
|
+
generated_build_failed,
|
|
11133
|
+
hidden_field,
|
|
11134
|
+
access_filter,
|
|
11135
|
+
time_zone,
|
|
11136
|
+
unreadable_measure,
|
|
11137
|
+
join_not_in_grain,
|
|
11138
|
+
partial_name_collision,
|
|
11139
|
+
given_where_over_unstored_field,
|
|
11140
|
+
unreadable_grain,
|
|
10714
11141
|
]
|
|
10715
11142
|
description: >-
|
|
10716
|
-
The bounded refusal reason
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
11143
|
+
The bounded refusal reason; `message` says the specifics.
|
|
11144
|
+
|
|
11145
|
+
|
|
11146
|
+
On every mechanism: `free_parameter`; a row-level gate the
|
|
11147
|
+
table could not keep, named by the gate's kind, `access_filter`
|
|
11148
|
+
for a row filter (`#(access_filter)`, any of the gates that
|
|
11149
|
+
refused it) and `authorize` for a lock (`#(authorize)`);
|
|
11150
|
+
`reads_given`, the one reason every mechanism gives
|
|
11151
|
+
for a stored result that would read a given, so its table would
|
|
11152
|
+
hold one caller's rows or could not be read per caller (a given in
|
|
11153
|
+
a `#@ persist` source's persisted query, in a field it declares, in
|
|
11154
|
+
a join's `on:` condition or in a source it joins that is not
|
|
11155
|
+
stored per caller; a persisted view or query whose result reads
|
|
11156
|
+
one; a rollup whose build reads one), with `message` naming where
|
|
11157
|
+
the given sits; `inherited_where_with_given` (a
|
|
11158
|
+
given-reading `where:` or dimension the declaration inherits from
|
|
11159
|
+
a source it is built from, in its own file or another, rather than
|
|
11160
|
+
writing it in its own declaration: only the declaration's own
|
|
11161
|
+
terms are re-applied over the stored table at read; move the
|
|
11162
|
+
`where:` onto the persisted source to serve it from a table);
|
|
11163
|
+
`given_where_over_unstored_field` (a given-reading `where:` of the
|
|
11164
|
+
declaration's own over a field its table does not store, so it
|
|
11165
|
+
cannot be re-applied over the table at read: a field the rollup's
|
|
11166
|
+
grain drops, which adding it to the grain fixes, or on
|
|
11167
|
+
`#(materialize)` a field that is not a stored dimension);
|
|
10727
11168
|
`merge_key_scope_unresolved` (a `merge_key=` whose caller scope
|
|
10728
|
-
cannot be expressed over the stored table's own columns)
|
|
10729
|
-
`
|
|
10730
|
-
|
|
10731
|
-
`
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
10740
|
-
`
|
|
10741
|
-
|
|
10742
|
-
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
the
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
11169
|
+
cannot be expressed over the stored table's own columns);
|
|
11170
|
+
`connection_cannot_hold_table` (a database build on a connection
|
|
11171
|
+
that cannot create tables; SQL Server today, whose connection
|
|
11172
|
+
reports `canPersist: false`: the same words as the serve verdict's
|
|
11173
|
+
reason for the same case); `needs_qualified_name` (a database table on
|
|
11174
|
+
BigQuery, where a table needs a dataset, whose `name=` names none:
|
|
11175
|
+
a `#@ persist` source, a persisted view or query, a
|
|
11176
|
+
`#(materialize)` source, or a rollup whose own `name=` and base's
|
|
11177
|
+
give no container; refused at plan, before any warehouse work);
|
|
11178
|
+
`storage_source_unsupported` (`storage=` on a
|
|
11179
|
+
source whose connection the build cannot pass through to a
|
|
11180
|
+
destination, e.g. the package's DuckDB sandbox);
|
|
11181
|
+
`table_name_collision` (under `PERSIST_COLLISION_ENFORCE=false`, a
|
|
11182
|
+
declaration whose `name=` puts it on one table with another, so
|
|
11183
|
+
neither is built; by default such a package does not load; a run
|
|
11184
|
+
also records it in its `metadata.refusedSources` for a source
|
|
11185
|
+
whose readable table name another source's table already takes in
|
|
11186
|
+
that run); `current_time` (the build reads the current time, `now`,
|
|
11187
|
+
or keeps rows older than a moving cut-off it cannot leave out, so
|
|
11188
|
+
its table would hold the rows as of the build; `now` in the
|
|
11189
|
+
source's own extend block is applied at every read and is
|
|
11190
|
+
admitted); `incremental_unsupported` (a valid incremental
|
|
11191
|
+
declaration this deployment's dialect or destination cannot
|
|
11192
|
+
honour).
|
|
11193
|
+
|
|
11194
|
+
|
|
11195
|
+
A persisted view or named query: `materialization_off` (persisted
|
|
11196
|
+
named queries are built only with `PUBLISHER_MATERIALIZE` on),
|
|
11197
|
+
`multi_line_annotation` (its `#@` line spans more than one line),
|
|
11198
|
+
`build_name_collision` (its generated build source's name is one
|
|
11199
|
+
the model, or another persisted view, already takes),
|
|
11200
|
+
`run_target_unsupported` (its source is declared in another file,
|
|
11201
|
+
is not in the model's namespace, or cannot be read),
|
|
11202
|
+
`nested_result` (a result that nests, which its table cannot
|
|
11203
|
+
answer yet), `access_filter` or `authorize` (it reaches a
|
|
11204
|
+
row-level gate its stored result cannot keep, named by the gate's
|
|
11205
|
+
kind), `reads_given` (its result reads a given),
|
|
11206
|
+
`current_time` (its result reads `now`), `no_stored_columns` (it has no stage to store) and
|
|
11207
|
+
`generated_build_failed` (its build does not compile on its own).
|
|
11208
|
+
|
|
11209
|
+
|
|
11210
|
+
A `#(materialize)` source: `inherited_persist` (it inherits
|
|
11211
|
+
`#@ persist`, so it is already its base's table),
|
|
11212
|
+
`inline_unsupported` (an `inline=` join or pair-table layout the
|
|
11213
|
+
build cannot store), `no_stored_columns` (the source has no
|
|
11214
|
+
dimension to store), `needs_qualified_name` (as above),
|
|
11215
|
+
`time_zone` (the source sets its own time zone, which its stored
|
|
11216
|
+
columns cannot follow at read), and
|
|
11217
|
+
`generated_build_failed` (Publisher could not write or compile its
|
|
11218
|
+
generated build, a Publisher bug worth reporting).
|
|
11219
|
+
|
|
11220
|
+
|
|
11221
|
+
A rollup (`#(rollup)` or `#@ preaggregate`): `hidden_field`
|
|
11222
|
+
(a measure or grain dimension the published surface hides, which a
|
|
11223
|
+
rollup would publish), `access_filter` or `authorize` (a
|
|
11224
|
+
row-level gate a rollup cannot re-apply to its rows, named by the
|
|
11225
|
+
gate's kind as on every mechanism), `time_zone` (the source sets its own
|
|
11226
|
+
time zone, so no query reads the rollup), `unreadable_measure` (a
|
|
11227
|
+
measure definition outside what a rollup reads),
|
|
11228
|
+
`join_not_in_grain` (a measure that aggregates through a join its
|
|
11229
|
+
grain does not key, or through a fan-out join),
|
|
11230
|
+
`partial_name_collision` (a field already takes the name of the
|
|
11231
|
+
measure's stored partial), and `unreadable_grain` (a `storage=` rollup
|
|
11232
|
+
over a DuckDB source whose grain dimension is stored as a type no
|
|
11233
|
+
stored read declares, a BLOB, INTERVAL, MAP or JSON, so no query
|
|
11234
|
+
would read its table; database, it is built).
|
|
11235
|
+
|
|
11236
|
+
|
|
11237
|
+
Retained, no longer produced: `given` (replaced by the positional
|
|
11238
|
+
given reasons above), `given_in_persisted_query` (shipped in
|
|
11239
|
+
0.14.0: a `#@ persist` source's persisted query, or a
|
|
11240
|
+
`#(materialize)` source, whose build reads a given; now
|
|
11241
|
+
`reads_given`, the one name every mechanism gives the case),
|
|
11242
|
+
`preaggregate_over_dynamic_source` (shipped in 0.14.0: a rollup
|
|
11243
|
+
over a caller-scoped source, now `reads_given`,
|
|
11244
|
+
`given_where_over_unstored_field` or `inherited_where_with_given`,
|
|
11245
|
+
as every mechanism names the same case), `dynamic_projection`,
|
|
11246
|
+
`dynamic_join` and `dynamic_joined_where` (a `storage=`
|
|
11247
|
+
`#@ persist` source's given in a field it declares, in a join's
|
|
11248
|
+
`on:` condition, or in a source it joins; now `reads_given`,
|
|
11249
|
+
whose `message` still names the position), `not_duckdb_portable` (a `storage=` table no
|
|
10778
11250
|
column of which Malloy can type is now built, and its source is
|
|
10779
|
-
answered live
|
|
10780
|
-
|
|
10781
|
-
`
|
|
10782
|
-
|
|
10783
|
-
and the load
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
eligibility metric
|
|
11251
|
+
answered live), the three `partition_*` reasons (`partition=` is a
|
|
11252
|
+
retired key, which fails the publish and the load as
|
|
11253
|
+
`persist-retired-key` or `materialize-retired-key`), `env_reference`
|
|
11254
|
+
and `empty_storage` (invalid annotations, which fail the publish
|
|
11255
|
+
and the load, so no served package reports them; the plan keeps
|
|
11256
|
+
refusing such a source as a backstop, so a plan computed without
|
|
11257
|
+
the load's check can still carry one), and `rollup_name_collision` (a rollup's generated
|
|
11258
|
+
name digests its declaring source, so no two rollups share one).
|
|
11259
|
+
`read_only_dialect` (shipped in 0.14.0: now
|
|
11260
|
+
`connection_cannot_hold_table`).
|
|
11261
|
+
`public_surface_unknown` is raised by the build-time narrowing of a
|
|
11262
|
+
stored table to the source's public columns, never by a plan; it
|
|
11263
|
+
shares the enum with the eligibility metric.
|
|
10792
11264
|
message:
|
|
10793
11265
|
type: string
|
|
10794
11266
|
description: >-
|
|
10795
|
-
The full, human-readable refusal message the
|
|
10796
|
-
|
|
10797
|
-
|
|
11267
|
+
The full, human-readable refusal message, the text of the
|
|
11268
|
+
declaration's `*-not-built` warning. For a `#@ persist` gate
|
|
11269
|
+
refusal it is the same text a build attempting the source would
|
|
11270
|
+
422 with.
|
|
10798
11271
|
|
|
10799
11272
|
BuildGraph:
|
|
10800
11273
|
type: object
|
|
@@ -10888,15 +11361,22 @@ components:
|
|
|
10888
11361
|
type: string
|
|
10889
11362
|
origin:
|
|
10890
11363
|
type: string
|
|
10891
|
-
enum: [persist, preaggregate]
|
|
11364
|
+
enum: [persist, materialize, view, query, rollup, preaggregate]
|
|
10892
11365
|
default: persist
|
|
10893
11366
|
description: >-
|
|
10894
11367
|
Which authoring annotation produced this plan entry. `persist` — the
|
|
10895
|
-
modeler wrote `#@ persist` on the source
|
|
10896
|
-
|
|
10897
|
-
`
|
|
11368
|
+
modeler wrote `#@ persist` on the source, and the meaning of an
|
|
11369
|
+
absent value. `materialize` — `#(materialize)` on the source.
|
|
11370
|
+
`view` and `query` — `#@ persist` on a view or a named `query:`,
|
|
11371
|
+
whose generated build source this entry is. `rollup` — the
|
|
11372
|
+
modeler wrote `#(rollup)` (or its deprecated alias
|
|
11373
|
+
`#(preaggregate)`) or v1's `#@ preaggregate` on measures of
|
|
10898
11374
|
`preaggregate.baseSourceName`, and the publisher SYNTHESIZED this
|
|
10899
|
-
rollup source to serve them.
|
|
11375
|
+
rollup source to serve them. Releases before this one said
|
|
11376
|
+
`persist` for every entry that was not a rollup, and
|
|
11377
|
+
`preaggregate` for a rollup: `preaggregate` is retained, no longer
|
|
11378
|
+
produced. A client must accept a value it does not know as an
|
|
11379
|
+
entry that is not a rollup.
|
|
10900
11380
|
|
|
10901
11381
|
|
|
10902
11382
|
Note that BOTH kinds carry a `#@ persist` annotation by the time they
|
|
@@ -10918,7 +11398,7 @@ components:
|
|
|
10918
11398
|
description: >-
|
|
10919
11399
|
What the synthesized rollup covers: the base source it was derived
|
|
10920
11400
|
from, the one grain it is built at, and the measures served there.
|
|
10921
|
-
Present only when `origin` is `
|
|
11401
|
+
Present only when `origin` is `rollup`; null otherwise.
|
|
10922
11402
|
|
|
10923
11403
|
|
|
10924
11404
|
Coverage is complete by construction — a measure that cannot be
|
|
@@ -11012,12 +11492,16 @@ components:
|
|
|
11012
11492
|
declaring either on a source is a publish-time manifest error.)
|
|
11013
11493
|
|
|
11014
11494
|
|
|
11015
|
-
A synthesized rollup (`origin:
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11495
|
+
A synthesized rollup (`origin: rollup`) resolves the same way,
|
|
11496
|
+
with its source level being its own `freshness.window=` /
|
|
11497
|
+
`freshness.fallback=` (on `#(rollup)` or `#@ preaggregate`),
|
|
11498
|
+
field by field over its base's own source-level declaration. A
|
|
11499
|
+
rollup that declares nothing therefore goes stale with its base,
|
|
11500
|
+
and a stale rollup is answered from the base, the same answer.
|
|
11501
|
+
|
|
11502
|
+
A standalone run stamps this resolution on the manifest entries it
|
|
11503
|
+
commits (`freshnessWindowSeconds`, `freshnessFallback`, `dataAsOf`),
|
|
11504
|
+
as a control plane does on the manifest it distributes.
|
|
11021
11505
|
queryMetadata:
|
|
11022
11506
|
oneOf:
|
|
11023
11507
|
- $ref: "#/components/schemas/QueryMetadata"
|
|
@@ -11053,14 +11537,15 @@ components:
|
|
|
11053
11537
|
type: string
|
|
11054
11538
|
description: >-
|
|
11055
11539
|
All key=value fields of the source's `#@ persist` annotation (e.g.
|
|
11056
|
-
`name`, `
|
|
11540
|
+
`name`, `storage`). The control plane uses `name` as the
|
|
11057
11541
|
materialized table name (it may carry a dialect container path like
|
|
11058
|
-
`dataset.table`).
|
|
11059
|
-
|
|
11060
|
-
|
|
11542
|
+
`dataset.table`). The key set is closed: an unrecognized or retired
|
|
11543
|
+
key fails the publish and the load (`persist-unknown-key`,
|
|
11544
|
+
`persist-retired-key`), so a served plan carries only recognized
|
|
11545
|
+
keys.
|
|
11061
11546
|
|
|
11062
11547
|
|
|
11063
|
-
Recognized keys beyond `name`/`
|
|
11548
|
+
Recognized keys beyond `name`/`storage`, both read from
|
|
11064
11549
|
the EFFECTIVE merged tag (a source extending a persisted parent
|
|
11065
11550
|
inherits the parent's keys, and its own keys merge over them per key):
|
|
11066
11551
|
|
|
@@ -11084,7 +11569,7 @@ components:
|
|
|
11084
11569
|
existing source must not re-address its table.
|
|
11085
11570
|
|
|
11086
11571
|
|
|
11087
|
-
For a synthesized rollup (`origin:
|
|
11572
|
+
For a synthesized rollup (`origin: rollup`) the annotation was
|
|
11088
11573
|
generated by the publisher rather than authored, so this reports what
|
|
11089
11574
|
synthesis emitted. It is still the annotation that governs the build,
|
|
11090
11575
|
which is why it is reported the same way: a rollup is an ordinary
|
|
@@ -11099,7 +11584,7 @@ components:
|
|
|
11099
11584
|
the source back to its model.
|
|
11100
11585
|
|
|
11101
11586
|
|
|
11102
|
-
A synthesized rollup (`origin:
|
|
11587
|
+
A synthesized rollup (`origin: rollup`) is declared by no model,
|
|
11103
11588
|
so this is the model of its base — the file holding the
|
|
11104
11589
|
`#@ preaggregate` annotations it was synthesized from, which is where
|
|
11105
11590
|
an author would go to change it.
|
|
@@ -11221,7 +11706,9 @@ components:
|
|
|
11221
11706
|
Realization:
|
|
11222
11707
|
type: string
|
|
11223
11708
|
enum: [SNAPSHOT, COPY]
|
|
11224
|
-
description:
|
|
11709
|
+
description: >-
|
|
11710
|
+
COPY = CREATE TABLE AS SELECT, the only realization built. SNAPSHOT
|
|
11711
|
+
(a warehouse clone or snapshot) is refused.
|
|
11225
11712
|
|
|
11226
11713
|
BuildInstructions:
|
|
11227
11714
|
type: object
|
|
@@ -11333,12 +11820,11 @@ components:
|
|
|
11333
11820
|
declared now (a source that moved to or from `storage=` keeps its
|
|
11334
11821
|
content address): a stored upstream is stacked on in its
|
|
11335
11822
|
destination, and never rendered into warehouse SQL. Optional and
|
|
11336
|
-
additive: a reference without it still serves a
|
|
11823
|
+
additive: a reference without it still serves a database upstream.
|
|
11337
11824
|
|
|
11338
11825
|
BuildInstruction:
|
|
11339
11826
|
type: object
|
|
11340
|
-
required:
|
|
11341
|
-
[sourceEntityId, materializedTableId, physicalTableName, realization]
|
|
11827
|
+
required: [sourceEntityId, materializedTableId, physicalTableName]
|
|
11342
11828
|
properties:
|
|
11343
11829
|
sourceEntityId:
|
|
11344
11830
|
type: string
|
|
@@ -11364,7 +11850,11 @@ components:
|
|
|
11364
11850
|
hyphenated BigQuery project id, a container path) are valid, and
|
|
11365
11851
|
echoes this logical name back in the manifest.
|
|
11366
11852
|
realization:
|
|
11367
|
-
|
|
11853
|
+
allOf:
|
|
11854
|
+
- $ref: "#/components/schemas/Realization"
|
|
11855
|
+
description: >-
|
|
11856
|
+
Optional; absent means `COPY`, the only realization built.
|
|
11857
|
+
`SNAPSHOT` is refused.
|
|
11368
11858
|
destination:
|
|
11369
11859
|
type: string
|
|
11370
11860
|
description: >-
|
|
@@ -11372,7 +11862,7 @@ components:
|
|
|
11372
11862
|
`storage=` authoring axis) — an entry in the environment's
|
|
11373
11863
|
`storageDestinations`, which is a disjoint set from `connections`.
|
|
11374
11864
|
Absent means build into the persist source's own warehouse — the
|
|
11375
|
-
default, unchanged (
|
|
11865
|
+
default, unchanged (database) path. When present, the build runs
|
|
11376
11866
|
a native per-engine query-passthrough CTAS on a build-scoped session
|
|
11377
11867
|
for that destination (the source computes; only results cross), and
|
|
11378
11868
|
the manifest records the destination + captured schema so
|
|
@@ -11448,7 +11938,7 @@ components:
|
|
|
11448
11938
|
physical name and its content address when `storage=` is added or
|
|
11449
11939
|
removed (an annotation enters neither), so without this field a
|
|
11450
11940
|
boundary measured on the stored table is indistinguishable from one
|
|
11451
|
-
measured on a
|
|
11941
|
+
measured on a database table of the same name — and a delta computed
|
|
11452
11942
|
from the wrong one can skip rows.
|
|
11453
11943
|
|
|
11454
11944
|
A caller that has never recorded this field may omit it. An entry that
|
|
@@ -11523,7 +12013,9 @@ components:
|
|
|
11523
12013
|
some of its sources still returns the ones that succeeded in
|
|
11524
12014
|
`entries`, so this is how a consumer tells a partial failure from a
|
|
11525
12015
|
clean run and learns which source failed. Empty or absent on a run
|
|
11526
|
-
where every source built.
|
|
12016
|
+
where every source built. Present on a FAILED run too, when every
|
|
12017
|
+
source it was asked to build failed or was refused: there it names
|
|
12018
|
+
each of them, and `entries` is empty.
|
|
11527
12019
|
strict:
|
|
11528
12020
|
type: boolean
|
|
11529
12021
|
description: Whether unresolved references should error.
|
|
@@ -11570,7 +12062,7 @@ components:
|
|
|
11570
12062
|
The persist source's own connection (the source warehouse),
|
|
11571
12063
|
mirroring `ManifestEntry.connectionName`. Without this a failure-only
|
|
11572
12064
|
source carries no destination discriminator at all, so a consumer
|
|
11573
|
-
cannot tell a
|
|
12065
|
+
cannot tell a database failure from a `storage=` one and, lacking
|
|
11574
12066
|
`storageDestinationName`, would resolve a destination-scoped claim
|
|
11575
12067
|
against the wrong key.
|
|
11576
12068
|
storageDestinationName:
|
|
@@ -11578,10 +12070,24 @@ components:
|
|
|
11578
12070
|
description: >-
|
|
11579
12071
|
When the source was instructed to build into a `storage=`
|
|
11580
12072
|
destination, the destination name, mirroring
|
|
11581
|
-
`ManifestEntry.storageDestinationName`. Absent for a
|
|
12073
|
+
`ManifestEntry.storageDestinationName`. Absent for a database
|
|
11582
12074
|
failure. A consumer computes the same destination key a successful
|
|
11583
12075
|
build would (`storageDestinationName ?? connectionName`) whether the
|
|
11584
12076
|
source built or failed.
|
|
12077
|
+
refusalReason:
|
|
12078
|
+
type: string
|
|
12079
|
+
description: >-
|
|
12080
|
+
With `refused`: the refusal's bounded reason, from the same open set
|
|
12081
|
+
as `RefusedSource.reason`, so a client branches on it rather than on
|
|
12082
|
+
`reason`'s prose. Absent otherwise.
|
|
12083
|
+
code:
|
|
12084
|
+
type: string
|
|
12085
|
+
description: >-
|
|
12086
|
+
A bounded code for a failure a client may branch on, beside
|
|
12087
|
+
`reason`'s prose: `table-owned-elsewhere` (the build's `name=` is
|
|
12088
|
+
held by a table this package does not own) or
|
|
12089
|
+
`table-ownership-unverified` (who holds it could not be read). An
|
|
12090
|
+
open set; absent for a failure that has none.
|
|
11585
12091
|
refused:
|
|
11586
12092
|
type: boolean
|
|
11587
12093
|
description: >-
|
|
@@ -11669,13 +12175,21 @@ components:
|
|
|
11669
12175
|
treat a miss as a corrupt manifest.
|
|
11670
12176
|
origin:
|
|
11671
12177
|
type: string
|
|
11672
|
-
enum: [persist, preaggregate]
|
|
12178
|
+
enum: [persist, materialize, view, query, rollup, preaggregate]
|
|
11673
12179
|
default: persist
|
|
11674
12180
|
description: >-
|
|
11675
12181
|
Mirrors `PersistSourcePlan.origin` for the source this entry was built
|
|
11676
12182
|
from: `persist` for a source the modeler wrote `#@ persist` on, which
|
|
11677
|
-
is the meaning of an absent value, and `
|
|
11678
|
-
synthesized from `#@ preaggregate` measures.
|
|
12183
|
+
is the meaning of an absent value, and `rollup` for a rollup
|
|
12184
|
+
synthesized from `#(rollup)` or `#@ preaggregate` measures.
|
|
12185
|
+
`preaggregate`, what releases before this one wrote for a rollup, is
|
|
12186
|
+
retained, no longer produced, and still read as a rollup, since a
|
|
12187
|
+
host echoes the entries it stored. The
|
|
12188
|
+
plan's other values (`materialize`, `view`, `query`) are accepted;
|
|
12189
|
+
`persist` or an absent value stays valid for every entry that is not
|
|
12190
|
+
a rollup, since a host echoes the entries it stored, and Publisher
|
|
12191
|
+
reads only whether an entry is a rollup, taking the mechanism from
|
|
12192
|
+
its own plan. Repeated here because a
|
|
11679
12193
|
manifest travels without its build plan, and a consumer holding only
|
|
11680
12194
|
the manifest otherwise cannot tell why it holds a table for a source
|
|
11681
12195
|
that does not appear in the package.
|
|
@@ -11718,7 +12232,7 @@ components:
|
|
|
11718
12232
|
nativeSchema:
|
|
11719
12233
|
type: array
|
|
11720
12234
|
description: >-
|
|
11721
|
-
For a
|
|
12235
|
+
For a database entry (no `storageDestinationName`): each column of
|
|
11722
12236
|
the built table with its type as the warehouse's own catalog names it
|
|
11723
12237
|
(`bigint`, `numeric`, `NUMBER(38,0)`, `UHUGEINT`), captured after the
|
|
11724
12238
|
build. The served copy reads a big-integer column through a cast to
|
|
@@ -11729,7 +12243,9 @@ components:
|
|
|
11729
12243
|
items:
|
|
11730
12244
|
$ref: "#/components/schemas/Column"
|
|
11731
12245
|
realization:
|
|
11732
|
-
|
|
12246
|
+
allOf:
|
|
12247
|
+
- $ref: "#/components/schemas/Realization"
|
|
12248
|
+
description: Retained; always `COPY`.
|
|
11733
12249
|
rowCount:
|
|
11734
12250
|
type: ["integer", "null"]
|
|
11735
12251
|
buildDurationMs:
|
|
@@ -11761,7 +12277,7 @@ components:
|
|
|
11761
12277
|
|
|
11762
12278
|
**Null is not zero**, and which paths report a figure differs.
|
|
11763
12279
|
|
|
11764
|
-
A
|
|
12280
|
+
A DATABASE build reports one, taken from the Malloy connection's own
|
|
11765
12281
|
statistics.
|
|
11766
12282
|
|
|
11767
12283
|
A plain `storage=` build reports one when its warehouse read carried
|
|
@@ -11774,7 +12290,7 @@ components:
|
|
|
11774
12290
|
reach its own job records also reports null; that case is counted by
|
|
11775
12291
|
`publisher_storage_build_attribution_skipped_total`.
|
|
11776
12292
|
|
|
11777
|
-
A
|
|
12293
|
+
A DATABASE incremental delta reports null because its statements do
|
|
11778
12294
|
not run through a single call whose result reaches here. A delta
|
|
11779
12295
|
into a `storage=` destination reports whatever its own bounded read
|
|
11780
12296
|
reported: that read is issued through the same call a full build's
|
|
@@ -11803,7 +12319,7 @@ components:
|
|
|
11803
12319
|
at least one persisted upstream was recomputed from its definition
|
|
11804
12320
|
and inlined into this build, because its table could not be read --
|
|
11805
12321
|
on either tier, an upstream this build neither materialized nor was
|
|
11806
|
-
handed by reference; for a
|
|
12322
|
+
handed by reference; for a database build, an upstream that
|
|
11807
12323
|
landed in a `storage=` destination; for a `storage=` build, a
|
|
11808
12324
|
source that reaches the warehouse through a non-persisted source,
|
|
11809
12325
|
or whose shape does not compile in the destination.
|