@malloy-publisher/app 0.14.0 → 0.16.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 +1141 -384
- package/dist/assets/{EnvironmentPage-CX8dwMPh.js → EnvironmentPage-Y9IWPC9J.js} +1 -1
- package/dist/assets/{HomePage-C7yrR-ec.js → HomePage-BOUo0MEl.js} +1 -1
- package/dist/assets/{MainPage-BKs7CeWW.js → MainPage-BkM5UDRU.js} +1 -1
- package/dist/assets/ModelPage-PgDTkS5C.js +2 -0
- package/dist/assets/{PackagePage-Bd5y7ILU.js → PackagePage-Dn7FrQ5r.js} +1 -1
- package/dist/assets/PackageSplatRoute-BLC29ek-.js +2 -0
- package/dist/assets/{RenderedResult-D0kAzSrP.es-DldjGxsY.js → RenderedResult-vyM2wQbC.es-ha8dF24T.js} +7 -7
- package/dist/assets/{RouteError-BJHAXzBN.js → RouteError-BolMqTuz.js} +1 -1
- package/dist/assets/{ThemeEditorPage-yUJpFBCR.js → ThemeEditorPage-CPv1eHkI.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BoCnLGaG.js → ToggleButtonGroup-DZtImN0S.js} +1 -1
- package/dist/assets/{documentRoutes-CIhmKz4i.js → documentRoutes-DI5cX3ty.js} +1 -1
- package/dist/assets/{editPageMounted-B5IyuuMZ.js → editPageMounted-C--4kcld.js} +2 -2
- package/dist/assets/{index-DTKG_ab2.js → index-CbsrzNSp.js} +1 -1
- package/dist/assets/{index-DrMbh_v4.js → index-D9wSfMZN.js} +1 -1
- package/dist/assets/{index-DqJz_hGj.js → index-DLToSg1f.js} +140 -140
- package/dist/assets/{index-B6DUq-GT.js → index-DyYEltlF.js} +1 -1
- package/dist/assets/{index.es-VBpWc8yM.js → index.es-D8SVyfmS.js} +19 -19
- package/dist/assets/usePackageLinkNavigate-DxHGKrmZ.js +1 -0
- package/dist/assets/{usePackageRoute-CTkLtO3i.js → usePackageRoute-A_YQMrax.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
|
@@ -882,6 +882,13 @@ paths:
|
|
|
882
882
|
than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to
|
|
883
883
|
disable the cap. A caller-supplied rowLimit smaller than the cap is
|
|
884
884
|
preserved; larger values are clamped down to cap+1.
|
|
885
|
+
|
|
886
|
+
On a DuckDB-backed connection (`duckdb`, including a package's
|
|
887
|
+
`duckdb` sandbox, `ducklake` and `motherduck`), `sqlStatement` runs
|
|
888
|
+
only as a single SELECT. Any other statement, more than one
|
|
889
|
+
statement, or SQL that does not parse answers 400 before anything
|
|
890
|
+
runs. `sqlSource` and `sqlTemporaryTable` apply the same rule to the
|
|
891
|
+
caller's SQL.
|
|
885
892
|
parameters:
|
|
886
893
|
- name: environmentName
|
|
887
894
|
in: path
|
|
@@ -995,6 +1002,8 @@ paths:
|
|
|
995
1002
|
$ref: "#/components/responses/BadRequest"
|
|
996
1003
|
"401":
|
|
997
1004
|
$ref: "#/components/responses/Unauthorized"
|
|
1005
|
+
"403":
|
|
1006
|
+
$ref: "#/components/responses/Forbidden"
|
|
998
1007
|
"404":
|
|
999
1008
|
$ref: "#/components/responses/NotFound"
|
|
1000
1009
|
"424":
|
|
@@ -1291,7 +1300,8 @@ paths:
|
|
|
1291
1300
|
resolved in the context of the named package, and returns the results.
|
|
1292
1301
|
|
|
1293
1302
|
Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the
|
|
1294
|
-
environment-level sqlQuery endpoint
|
|
1303
|
+
environment-level sqlQuery endpoint, and to the same single-SELECT
|
|
1304
|
+
rule on a DuckDB-backed connection: any other statement answers 400.
|
|
1295
1305
|
parameters:
|
|
1296
1306
|
- name: environmentName
|
|
1297
1307
|
in: path
|
|
@@ -1421,6 +1431,8 @@ paths:
|
|
|
1421
1431
|
$ref: "#/components/responses/BadRequest"
|
|
1422
1432
|
"401":
|
|
1423
1433
|
$ref: "#/components/responses/Unauthorized"
|
|
1434
|
+
"403":
|
|
1435
|
+
$ref: "#/components/responses/Forbidden"
|
|
1424
1436
|
"404":
|
|
1425
1437
|
$ref: "#/components/responses/NotFound"
|
|
1426
1438
|
"410":
|
|
@@ -1996,9 +2008,22 @@ paths:
|
|
|
1996
2008
|
summary: Bind a version to a build manifest
|
|
1997
2009
|
description: |
|
|
1998
2010
|
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
|
-
|
|
2011
|
+
references resolve through, and rebinds that version's models to it right away. Only this
|
|
2012
|
+
version is affected.
|
|
2013
|
+
|
|
2014
|
+
A version is owned by the host from then on once a manifest it named, by this route or by
|
|
2015
|
+
a publish, has bound (one whose fetch fails marks nothing), or once a run it instructed
|
|
2016
|
+
with `buildInstructions` has run, even one whose commit failed. The version's record keeps
|
|
2017
|
+
that across an unload and a restart. A null `manifestLocation` then clears the binding and the version serves live:
|
|
2018
|
+
this server never binds tables its own runs built for it, so a host can clear the binding
|
|
2019
|
+
before it drops the tables the manifest named. A reload or restart of that version keeps
|
|
2020
|
+
it live until the host binds a manifest again, and the version answers a local run without
|
|
2021
|
+
`buildInstructions` with 409. Its status reports it the way it reports a version with nothing
|
|
2022
|
+
bound: `manifestBindingStatus` `unbound`, `manifestEntryCount` 0 and `boundManifestUri` null.
|
|
2023
|
+
|
|
2024
|
+
A version no host has bound (standalone, or built only by this server's own runs) serves
|
|
2025
|
+
what this server's own runs built for it when its binding is cleared, or live when they
|
|
2026
|
+
built nothing, as it does when it loads.
|
|
2002
2027
|
|
|
2003
2028
|
This is serving state, not package content, which is why it is the one thing about a
|
|
2004
2029
|
published version that can change. It replaces the deprecated
|
|
@@ -3947,11 +3972,45 @@ paths:
|
|
|
3947
3972
|
schema:
|
|
3948
3973
|
$ref: "#/components/schemas/Materialization"
|
|
3949
3974
|
"400":
|
|
3950
|
-
|
|
3975
|
+
description: >-
|
|
3976
|
+
The request is malformed, with `reason: BUILD_INSTRUCTIONS_INVALID`
|
|
3977
|
+
and a message naming the case: a body field of the wrong shape
|
|
3978
|
+
(`forceRefresh`, `reseed`, `runContext`, `buildInstructions` and
|
|
3979
|
+
its entries); a package with no persist sources; an unknown
|
|
3980
|
+
`sourceEntityId`; `realization=SNAPSHOT`; one table named by two
|
|
3981
|
+
instructions of a version's run; a ledger entry that appears twice,
|
|
3982
|
+
names a table this run does not build, names a source that is not
|
|
3983
|
+
incremental, or was measured under another definition of its
|
|
3984
|
+
source. Among other checks, every
|
|
3985
|
+
`physicalTableName` a host supplies (a build instruction, a
|
|
3986
|
+
`referenceManifest` entry or a `ledger` entry) must be a usable
|
|
3987
|
+
table path: no empty part, no backslash or control character, and
|
|
3988
|
+
quotes only around whole parts. One that is not is refused,
|
|
3989
|
+
naming the field (for example `Build instruction
|
|
3990
|
+
'physicalTableName' must be a table path ...`), before any run
|
|
3991
|
+
starts; the bind declines such a name in a stored manifest the
|
|
3992
|
+
same way (`unquotable_name`).
|
|
3993
|
+
content:
|
|
3994
|
+
application/json:
|
|
3995
|
+
schema:
|
|
3996
|
+
$ref: "#/components/schemas/Error"
|
|
3951
3997
|
"404":
|
|
3952
3998
|
$ref: "#/components/responses/NotFound"
|
|
3953
3999
|
"409":
|
|
3954
|
-
description:
|
|
4000
|
+
description: >-
|
|
4001
|
+
`reason: MATERIALIZATION_CONFLICT`. Clears on its own, so retry
|
|
4002
|
+
later: the package already has an active materialization, or a
|
|
4003
|
+
table the run would write is being written by another run. Does
|
|
4004
|
+
not clear until something changes: a table the run would write is
|
|
4005
|
+
one the package's versions share, which only an auto-run of its
|
|
4006
|
+
latest version rebuilds (name tables of your own in
|
|
4007
|
+
`buildInstructions`); or the package or version is bound to a host
|
|
4008
|
+
manifest (`manifestLocation`), or is a version a host has bound
|
|
4009
|
+
before, and the request has no `buildInstructions` (it serves the
|
|
4010
|
+
host's tables or live, so a local run would build tables it cannot
|
|
4011
|
+
serve). `reason:
|
|
4012
|
+
BUILD_PLAN_UNAVAILABLE`: the package's build plan could not be
|
|
4013
|
+
derived, or it serves an older model than its files.
|
|
3955
4014
|
content:
|
|
3956
4015
|
application/json:
|
|
3957
4016
|
schema:
|
|
@@ -4079,38 +4138,150 @@ paths:
|
|
|
4079
4138
|
summary: Delete a materialization
|
|
4080
4139
|
description: |
|
|
4081
4140
|
Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED)
|
|
4082
|
-
materialization record.
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4141
|
+
materialization record. A delete is record-only: it never drops a
|
|
4142
|
+
table, and the caller owns table GC. To drop a database table this run
|
|
4143
|
+
produced, use `drop-materialized-table` (`DELETE
|
|
4144
|
+
…/connections/{connectionName}/materializedTables/{tableName}`), which
|
|
4145
|
+
checks that no remaining run, of any version, names a table with that
|
|
4146
|
+
name in any place; a table built before 0.16.0 carries no ownership
|
|
4147
|
+
mark, so drop it first, passing this run's id, then delete the run.
|
|
4148
|
+
`dropTables=true` is refused with 400 and deletes nothing, as is any
|
|
4149
|
+
value other than `true` or `false` (the fix is to omit it);
|
|
4150
|
+
`dropTables=false`, which older clients send, is accepted and ignored.
|
|
4086
4151
|
parameters:
|
|
4087
4152
|
- $ref: "#/components/parameters/environmentName"
|
|
4088
4153
|
- $ref: "#/components/parameters/packageName"
|
|
4089
4154
|
- $ref: "#/components/parameters/materializationId"
|
|
4090
|
-
-
|
|
4155
|
+
- $ref: "#/components/parameters/versionId"
|
|
4156
|
+
responses:
|
|
4157
|
+
"204":
|
|
4158
|
+
description: Materialization deleted
|
|
4159
|
+
"400":
|
|
4160
|
+
$ref: "#/components/responses/BadRequest"
|
|
4161
|
+
"404":
|
|
4162
|
+
$ref: "#/components/responses/NotFound"
|
|
4163
|
+
"409":
|
|
4164
|
+
description: Materialization cannot be deleted while it is active
|
|
4165
|
+
content:
|
|
4166
|
+
application/json:
|
|
4167
|
+
schema:
|
|
4168
|
+
$ref: "#/components/schemas/Error"
|
|
4169
|
+
"410":
|
|
4170
|
+
$ref: "#/components/responses/Gone"
|
|
4171
|
+
|
|
4172
|
+
/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/materializedTables/{tableName}:
|
|
4173
|
+
delete:
|
|
4174
|
+
tags:
|
|
4175
|
+
- materializations
|
|
4176
|
+
operationId: drop-materialized-table
|
|
4177
|
+
summary: Drop a materialized table from a package's connection
|
|
4178
|
+
description: |
|
|
4179
|
+
Drops one database-tier table a materialization of this package built
|
|
4180
|
+
on one of the package's connections, with the staging and backup
|
|
4181
|
+
copies a crashed build can leave beside it when a run record names
|
|
4182
|
+
the table. This is the drop a caller makes after (or before) deleting
|
|
4183
|
+
a run's record, which never drops a table. A `storage=` table lives in
|
|
4184
|
+
a storage destination, which this route does not reach; the admin
|
|
4185
|
+
API's catalog routes drop those.
|
|
4186
|
+
|
|
4187
|
+
Publisher does not authenticate the caller: the gateway in front of
|
|
4188
|
+
it decides who may call this route, and should allow only the
|
|
4189
|
+
operator that owns the package's materialization lifecycle. The
|
|
4190
|
+
route itself refuses any table it cannot prove is this package's and
|
|
4191
|
+
unused, under the package's run lock and the table name's lock, so no
|
|
4192
|
+
run starts, commits or claims the name between the checks and the
|
|
4193
|
+
drop:
|
|
4194
|
+
|
|
4195
|
+
* 400: the name cannot be quoted in the connection's dialect, or
|
|
4196
|
+
it is the staging or backup copy a build makes of a table a run
|
|
4197
|
+
of the package records, which is dropped only with that table.
|
|
4198
|
+
* 404, with no `reason`: the package does not reach a connection by
|
|
4199
|
+
that name (or the environment, package or `materializationId`
|
|
4200
|
+
does not exist).
|
|
4201
|
+
* 409 `MATERIALIZATION_CONFLICT`: a run of the package is active.
|
|
4202
|
+
Retry once it settles.
|
|
4203
|
+
* 409 `TABLE_IN_USE`: a committed run of the package, of any
|
|
4204
|
+
version, other than the one `materializationId` names, names a
|
|
4205
|
+
table with this name in any place; the run `materializationId`
|
|
4206
|
+
names is the one a version or the package serves; or a loaded
|
|
4207
|
+
copy of any package in the environment is bound to a table with
|
|
4208
|
+
this name; or the warehouse refused the drop because other
|
|
4209
|
+
objects depend on the table (Postgres 2BP01). Delete or replace
|
|
4210
|
+
that run, or those objects, first.
|
|
4211
|
+
* 409 `TABLE_OWNED_ELSEWHERE`: the table carries another package's
|
|
4212
|
+
ownership mark, or the name is held by a view Publisher did not
|
|
4213
|
+
create or another package's view; or the warehouse refused the
|
|
4214
|
+
drop because the connection may not drop it (42501) or the name
|
|
4215
|
+
holds something other than a table (42809). The answer does not
|
|
4216
|
+
name the holder.
|
|
4217
|
+
* 409 `TABLE_OWNERSHIP_UNVERIFIED`: the table carries no ownership
|
|
4218
|
+
mark this route accepts, and the run `materializationId` names
|
|
4219
|
+
(terminal, of this package) does not record it on this
|
|
4220
|
+
connection; or who holds the name could not be read. A mark is
|
|
4221
|
+
accepted only when it names this package and the very place the
|
|
4222
|
+
warehouse's catalog says the name resolves to now (its fully
|
|
4223
|
+
qualified location, recorded when the mark was written): a
|
|
4224
|
+
comment travels with a renamed, moved or cloned table, so such a
|
|
4225
|
+
copy, or another schema's table a search path finds first, is
|
|
4226
|
+
treated as unmarked, as is a mark written before 0.16.0 (it names
|
|
4227
|
+
no place). Drop such a table passing the id of the run
|
|
4228
|
+
that records it, before deleting that run's record.
|
|
4229
|
+
* 404 `TABLE_NOT_FOUND`: no table holds the name and no run record
|
|
4230
|
+
of this package names it on this connection, so nothing proves it
|
|
4231
|
+
was ever this package's.
|
|
4232
|
+
|
|
4233
|
+
A table that is already gone answers 204 when a run record of this
|
|
4234
|
+
package still names it on this connection (pass its
|
|
4235
|
+
`materializationId`, or retry before deleting the record), so a
|
|
4236
|
+
retried drop succeeds; otherwise 404 `TABLE_NOT_FOUND`.
|
|
4237
|
+
parameters:
|
|
4238
|
+
- $ref: "#/components/parameters/environmentName"
|
|
4239
|
+
- $ref: "#/components/parameters/packageName"
|
|
4240
|
+
- name: connectionName
|
|
4241
|
+
in: path
|
|
4242
|
+
description: Name of the connection the table was built on, as the package reaches it
|
|
4243
|
+
required: true
|
|
4244
|
+
schema:
|
|
4245
|
+
$ref: "#/components/schemas/IdentifierPattern"
|
|
4246
|
+
- name: tableName
|
|
4247
|
+
in: path
|
|
4248
|
+
description: |
|
|
4249
|
+
The table's full name as the run's manifest records it
|
|
4250
|
+
(`physicalTableName`: `table`, `schema.table` or
|
|
4251
|
+
`catalog.schema.table`), URL-encoded. It is quoted for the
|
|
4252
|
+
connection's dialect as the build quoted it; a name the dialect
|
|
4253
|
+
cannot quote answers 400.
|
|
4254
|
+
required: true
|
|
4255
|
+
schema:
|
|
4256
|
+
type: string
|
|
4257
|
+
- name: materializationId
|
|
4091
4258
|
in: query
|
|
4092
4259
|
required: false
|
|
4093
4260
|
description: |
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
leave the tables on disk, and still answer 204.
|
|
4261
|
+
The id of the run that built the table, as evidence that it is
|
|
4262
|
+
this package's when it carries no ownership mark. That run is not
|
|
4263
|
+
counted as using the table, unless it is the one a version or
|
|
4264
|
+
the package serves. Must be a terminal run of this package
|
|
4265
|
+
(404 otherwise; 409 `MATERIALIZATION_CONFLICT` while it is
|
|
4266
|
+
active).
|
|
4101
4267
|
schema:
|
|
4102
|
-
type:
|
|
4103
|
-
default: false
|
|
4268
|
+
type: string
|
|
4104
4269
|
- $ref: "#/components/parameters/versionId"
|
|
4105
4270
|
responses:
|
|
4106
4271
|
"204":
|
|
4107
|
-
description:
|
|
4272
|
+
description: |
|
|
4273
|
+
The table was dropped, or is already gone and a run record of
|
|
4274
|
+
this package names it on this connection.
|
|
4108
4275
|
"400":
|
|
4109
4276
|
$ref: "#/components/responses/BadRequest"
|
|
4110
4277
|
"404":
|
|
4111
4278
|
$ref: "#/components/responses/NotFound"
|
|
4112
4279
|
"409":
|
|
4113
|
-
description:
|
|
4280
|
+
description: |
|
|
4281
|
+
The table was not dropped: a run is active
|
|
4282
|
+
(`MATERIALIZATION_CONFLICT`), the table is in use (`TABLE_IN_USE`),
|
|
4283
|
+
it is another's (`TABLE_OWNED_ELSEWHERE`), or it cannot be proven
|
|
4284
|
+
this package's (`TABLE_OWNERSHIP_UNVERIFIED`).
|
|
4114
4285
|
content:
|
|
4115
4286
|
application/json:
|
|
4116
4287
|
schema:
|
|
@@ -4265,7 +4436,20 @@ components:
|
|
|
4265
4436
|
schema:
|
|
4266
4437
|
$ref: "#/components/schemas/Error"
|
|
4267
4438
|
Forbidden:
|
|
4268
|
-
description:
|
|
4439
|
+
description: |
|
|
4440
|
+
Forbidden - insufficient permissions to perform the operation. With
|
|
4441
|
+
`reason: STORAGE_ACCESS_DENIED` or `PATH_ACCESS_DENIED` (the query and
|
|
4442
|
+
raw `sqlQuery` routes, and `sqlTemporaryTable`), the database ran the
|
|
4443
|
+
query and an object store refused its read. `STORAGE_ACCESS_DENIED`:
|
|
4444
|
+
the URL lies under a data path the environment configures (a DuckLake
|
|
4445
|
+
catalog's, a storage destination's), so the query and the model are
|
|
4446
|
+
fine and a retry fails the same way until the database's storage
|
|
4447
|
+
credentials are fixed. `PATH_ACCESS_DENIED`: a path the query or the
|
|
4448
|
+
model reads itself refused access, so the path, or the caller's grant
|
|
4449
|
+
to it, is what to fix. With `reason: ACCESS_DENIED`, a gate refused
|
|
4450
|
+
the caller. The body
|
|
4451
|
+
names what the caller read and never a storage path; the full text is
|
|
4452
|
+
logged.
|
|
4269
4453
|
content:
|
|
4270
4454
|
application/json:
|
|
4271
4455
|
schema:
|
|
@@ -4631,11 +4815,18 @@ components:
|
|
|
4631
4815
|
description: >-
|
|
4632
4816
|
Where the build manifest to bind is: a gs:// or s3:// URI, a
|
|
4633
4817
|
file:// URL, or an absolute path on this server (a mounted volume).
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
and
|
|
4818
|
+
Once one binds, the version is the host's from then on, as it is
|
|
4819
|
+
once a host's instructed run of it has run, even one whose
|
|
4820
|
+
commit failed. Null, or
|
|
4821
|
+
leaving the field out, clears the binding: a version a host has
|
|
4822
|
+
bound then serves live, and stays live through a reload or a
|
|
4823
|
+
restart until a manifest is bound again, never serving the tables
|
|
4824
|
+
this server's own runs built for it. A version no host has bound
|
|
4825
|
+
serves what its own runs built, or live when they built nothing.
|
|
4826
|
+
A client that drops a field it meant to send (a value left
|
|
4827
|
+
undefined) therefore clears the binding. An empty string or a
|
|
4828
|
+
relative path is refused with 400, and so is any other field in
|
|
4829
|
+
the body and a body not sent as application/json.
|
|
4639
4830
|
|
|
4640
4831
|
PackageLatestVersion:
|
|
4641
4832
|
type: object
|
|
@@ -4790,6 +4981,16 @@ components:
|
|
|
4790
4981
|
message:
|
|
4791
4982
|
type: string
|
|
4792
4983
|
description: Why it did not load.
|
|
4984
|
+
codes:
|
|
4985
|
+
type: array
|
|
4986
|
+
items:
|
|
4987
|
+
type: string
|
|
4988
|
+
description: >-
|
|
4989
|
+
The codes of the load failure's coded lines (each line of
|
|
4990
|
+
`message` that ends `[code]`, such as `persist-unknown-key` or
|
|
4991
|
+
`rollup-invalid`), in order, each once, so a client never
|
|
4992
|
+
parses the message for them. Absent when the message carries
|
|
4993
|
+
none.
|
|
4793
4994
|
stale:
|
|
4794
4995
|
type: boolean
|
|
4795
4996
|
description:
|
|
@@ -5110,40 +5311,51 @@ components:
|
|
|
5110
5311
|
origin:
|
|
5111
5312
|
type: string
|
|
5112
5313
|
description: >-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5314
|
+
The mechanism that declared the stored source: `persist` for
|
|
5315
|
+
`#@ persist` on a source, `materialize` for `#(materialize)`,
|
|
5316
|
+
`view` for `#@ persist` on a view, `query` for `#@ persist` on a
|
|
5317
|
+
named `query:`, and `rollup` for a rollup the publisher
|
|
5318
|
+
synthesized (`#(rollup)`, or v1's `#@ preaggregate`). A string,
|
|
5319
|
+
not an enum, so a new kind of variant needs no client change.
|
|
5320
|
+
`preaggregate` is retained, no longer produced: releases before
|
|
5321
|
+
this one said it for `rollup`.
|
|
5116
5322
|
tier:
|
|
5117
5323
|
type: string
|
|
5118
5324
|
description: >-
|
|
5119
|
-
Where its table lives: `
|
|
5120
|
-
`storage` (a `storage=` destination).
|
|
5325
|
+
Where its table lives: `database` (the source's own connection's
|
|
5326
|
+
database) or `storage` (a `storage=` destination). `colocated` is
|
|
5327
|
+
retained, no longer produced: releases before this one said it for
|
|
5328
|
+
`database`, so a client should accept both.
|
|
5121
5329
|
verdict:
|
|
5122
5330
|
type: string
|
|
5123
5331
|
description: >-
|
|
5124
5332
|
`serves`: its table is bound and queries can be answered from it.
|
|
5125
|
-
`
|
|
5126
|
-
table once a build binds it
|
|
5127
|
-
|
|
5333
|
+
`awaiting_build`: nothing is bound yet; queries are answered from
|
|
5334
|
+
its table once a build binds it (unlike a `*-not-built` package
|
|
5335
|
+
warning, which names a declaration that is refused and is never
|
|
5336
|
+
built here). `live`: no query is answered from it, for `reason`,
|
|
5337
|
+
until something changes. `not_built` is retained, no longer
|
|
5338
|
+
produced: releases before this one said it for `awaiting_build`.
|
|
5128
5339
|
reason:
|
|
5129
5340
|
type: string
|
|
5130
5341
|
description: >-
|
|
5131
5342
|
For a `live` verdict, why: `refused` (the plan refused to build it),
|
|
5132
5343
|
`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
|
-
|
|
5344
|
+
`on`), `unreachable` (no source on the package's published surface
|
|
5345
|
+
reads it), `row_level_gate` (every query through it carries an
|
|
5346
|
+
`#(authorize)` or `#(access_filter)` gate its table cannot keep
|
|
5347
|
+
yet, on either tier), `stale` (its table is past its freshness
|
|
5348
|
+
window, and its fallback does not serve stale), `shadowed` (its
|
|
5349
|
+
storage table is bound, but every model's source of that name is
|
|
5350
|
+
another source), `destination_missing` (`storage=` names a
|
|
5351
|
+
destination the environment does not configure),
|
|
5352
|
+
`connection_cannot_hold_table` (database, on a connection whose
|
|
5353
|
+
type creates no tables), `materialization_off` (a `#(materialize)`
|
|
5354
|
+
source, which only the served copy reads, and the served copy is
|
|
5355
|
+
off: `PUBLISHER_MATERIALIZE`, and for `storage=`
|
|
5356
|
+
`PERSIST_STORAGE_MODE`), `served_copy` (a `#(materialize)` source
|
|
5357
|
+
whose table is bound, but no model's served copy re-roots it; the
|
|
5358
|
+
`served-copy-not-served` warning says why). An open set.
|
|
5147
5359
|
message:
|
|
5148
5360
|
type: string
|
|
5149
5361
|
description: What the verdict means for this source, in a sentence.
|
|
@@ -5152,24 +5364,41 @@ components:
|
|
|
5152
5364
|
items:
|
|
5153
5365
|
type: string
|
|
5154
5366
|
description: For a `live` verdict, the changes that would let it serve.
|
|
5367
|
+
servePath:
|
|
5368
|
+
type: string
|
|
5369
|
+
description: >-
|
|
5370
|
+
On a dry run: the path that will answer queries on this source,
|
|
5371
|
+
judged by compiling the package's served copy over bindings
|
|
5372
|
+
declared from the plan's output columns (no table is built):
|
|
5373
|
+
`served_copy` (the served copy re-roots it on its table, or reads
|
|
5374
|
+
it through a base it re-roots), `rollup` (a rollup the rollup leg
|
|
5375
|
+
reads), or `live`, with `servePathReason`. An open string, so a
|
|
5376
|
+
later release can add a path; treat an unknown value as `live`.
|
|
5377
|
+
servePathReason:
|
|
5378
|
+
type: string
|
|
5379
|
+
description: >-
|
|
5380
|
+
Why the path is what it is, when that is not the source's own
|
|
5381
|
+
table. With a `live` `servePath`: `refused` (the plan refused it),
|
|
5382
|
+
`inherited_gate` (a row-level gate declared on a base the served
|
|
5383
|
+
copy replaces, which it cannot graft), the served copy's reason
|
|
5384
|
+
for leaving the source as written (`column_types`,
|
|
5385
|
+
`fields_not_carried`, `read_terms_not_kept`, `compile_failed`, and
|
|
5386
|
+
the like), the verdict's own `reason`, or `not_rerooted` when none
|
|
5387
|
+
names one. With a `served_copy` `servePath`: `through_base` (an
|
|
5388
|
+
extension of a re-rooted source, left as written, which reads that
|
|
5389
|
+
source's table by name). An open string.
|
|
5155
5390
|
cutoverPath:
|
|
5156
5391
|
type: string
|
|
5392
|
+
deprecated: true
|
|
5157
5393
|
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`.
|
|
5394
|
+
Deprecated: the same value as `servePath`, under its old name.
|
|
5395
|
+
Emitted beside it for this release only.
|
|
5166
5396
|
cutoverReason:
|
|
5167
5397
|
type: string
|
|
5398
|
+
deprecated: true
|
|
5168
5399
|
description: >-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
`read_terms_not_kept`, `compile_failed`, and the like), or
|
|
5172
|
-
`not_rerooted` when it names none. An open string.
|
|
5400
|
+
Deprecated: the same value as `servePathReason`, under its old
|
|
5401
|
+
name. Emitted beside it for this release only.
|
|
5173
5402
|
views:
|
|
5174
5403
|
type: array
|
|
5175
5404
|
description: >-
|
|
@@ -5211,13 +5440,17 @@ components:
|
|
|
5211
5440
|
package's models and reading a miss as corruption.
|
|
5212
5441
|
origin:
|
|
5213
5442
|
type: string
|
|
5214
|
-
enum: [persist, preaggregate]
|
|
5443
|
+
enum: [persist, materialize, view, query, rollup, preaggregate]
|
|
5215
5444
|
default: persist
|
|
5216
5445
|
description: >-
|
|
5217
|
-
|
|
5218
|
-
which is the meaning of an absent
|
|
5219
|
-
|
|
5220
|
-
|
|
5446
|
+
The mechanism that declared the bound table: `persist` for
|
|
5447
|
+
`#@ persist` on a source, which is the meaning of an absent
|
|
5448
|
+
value, `materialize` for `#(materialize)`, `view` and `query` for
|
|
5449
|
+
`#@ persist` on a view or a named query, and `rollup` for a
|
|
5450
|
+
rollup. `preaggregate` is retained, no longer produced: releases
|
|
5451
|
+
before this one said it for `rollup`. Releases before this one said `persist` for every table
|
|
5452
|
+
that was not a rollup; a client must accept a value it does not
|
|
5453
|
+
know as a table that is not a rollup.
|
|
5221
5454
|
storageDestinationName:
|
|
5222
5455
|
type: string
|
|
5223
5456
|
description: >-
|
|
@@ -5304,14 +5537,17 @@ components:
|
|
|
5304
5537
|
enum:
|
|
5305
5538
|
- unbound
|
|
5306
5539
|
- bound
|
|
5540
|
+
- bind_failed
|
|
5307
5541
|
- live_fallback
|
|
5308
5542
|
description: >-
|
|
5309
5543
|
Server-computed, read-only: whether the CONFIGURED build manifest is
|
|
5310
5544
|
currently bound to this package's served models. `unbound` = no
|
|
5311
5545
|
manifest configured, so the package serves live. `bound` = the
|
|
5312
|
-
configured manifest was fetched and applied. `
|
|
5546
|
+
configured manifest was fetched and applied. `bind_failed` = a
|
|
5313
5547
|
`manifestLocation` is configured but its fetch/bind failed or timed
|
|
5314
|
-
out, so the configured manifest is NOT applied.
|
|
5548
|
+
out, so the configured manifest is NOT applied. `live_fallback` is
|
|
5549
|
+
retained, no longer produced: releases before this one said it for
|
|
5550
|
+
`bind_failed`, so a client should read both the same. Lets the caller
|
|
5315
5551
|
confirm the publisher actually bound the configured manifest rather
|
|
5316
5552
|
than inferring it from logs.
|
|
5317
5553
|
|
|
@@ -5327,17 +5563,17 @@ components:
|
|
|
5327
5563
|
combination is the signature — `bound` with neither tier populated
|
|
5328
5564
|
means the manifest carried nothing, not that the bind was missed.
|
|
5329
5565
|
|
|
5330
|
-
`
|
|
5566
|
+
`bind_failed` does NOT imply the package is serving live. It says
|
|
5331
5567
|
the configured manifest was not applied — not that nothing is. A
|
|
5332
5568
|
failed FIRST bind leaves nothing bound (`boundManifestUri` null), but
|
|
5333
5569
|
a failed REBIND leaves the previously bound manifest in place: its
|
|
5334
|
-
|
|
5570
|
+
database substitutions stay compiled in, its storage serve bindings
|
|
5335
5571
|
stay installed, and `boundManifestUri`, `manifestEntryCount` and
|
|
5336
5572
|
`storageServeBindings` all continue to describe it.
|
|
5337
5573
|
|
|
5338
5574
|
That rebind guarantee covers a failure BEFORE either tier applies —
|
|
5339
5575
|
the manifest fetch failing or timing out, which is what produces
|
|
5340
|
-
`
|
|
5576
|
+
`bind_failed` in practice. A failure partway through the recompile,
|
|
5341
5577
|
after the new models are installed but before the binding is
|
|
5342
5578
|
recorded, is out of scope: the new substitutions would be live while
|
|
5343
5579
|
these fields still described the previous manifest.
|
|
@@ -5346,11 +5582,11 @@ components:
|
|
|
5346
5582
|
`boundManifestUri` is a LIVE reference to the manifest whose tables
|
|
5347
5583
|
this package is currently serving from. A caller reclaiming
|
|
5348
5584
|
superseded physical tables must treat it as one regardless of
|
|
5349
|
-
`manifestBindingStatus` — reading `
|
|
5585
|
+
`manifestBindingStatus` — reading `bind_failed` as "not serving
|
|
5350
5586
|
from manifest tables" and reclaiming that generation would drop
|
|
5351
5587
|
tables out from under a package actively serving them.
|
|
5352
5588
|
|
|
5353
|
-
|
|
5589
|
+
It is named apart from the `live_fallback` on a query result's
|
|
5354
5590
|
`servedFrom`, which reports that ONE query degraded to the warehouse.
|
|
5355
5591
|
This one is about the package's binding, and as above does not imply
|
|
5356
5592
|
any query ran live.
|
|
@@ -5359,9 +5595,9 @@ components:
|
|
|
5359
5595
|
readOnly: true
|
|
5360
5596
|
description: >-
|
|
5361
5597
|
Server-computed, read-only: number of sourceEntityId -> physical-table
|
|
5362
|
-
entries currently bound for the
|
|
5598
|
+
entries currently bound for the DATABASE (same-connection tableName
|
|
5363
5599
|
substitution) tier only. 0 when unbound, or when the bound manifest
|
|
5364
|
-
carried no
|
|
5600
|
+
carried no database entries — so a fully bound `storage=`-only
|
|
5365
5601
|
manifest reports `bound` with a count of 0. Corroborate a
|
|
5366
5602
|
cross-connection bind with `storageServeBindings`, not this count.
|
|
5367
5603
|
|
|
@@ -5404,7 +5640,7 @@ components:
|
|
|
5404
5640
|
|
|
5405
5641
|
|
|
5406
5642
|
"Bound" is not the same as "serving", and an entry with
|
|
5407
|
-
`origin:
|
|
5643
|
+
`origin: rollup` is where the two most often part: a rollup is
|
|
5408
5644
|
listed here once its table exists, but it is only offered to a query
|
|
5409
5645
|
through a composite re-exposing its base's name, so it does not serve
|
|
5410
5646
|
when something else already claims that name. Read `origin` before
|
|
@@ -5504,6 +5740,7 @@ components:
|
|
|
5504
5740
|
enum:
|
|
5505
5741
|
- unbound
|
|
5506
5742
|
- bound
|
|
5743
|
+
- bind_failed
|
|
5507
5744
|
- live_fallback
|
|
5508
5745
|
description: >-
|
|
5509
5746
|
Whether the configured build manifest is bound to the served models.
|
|
@@ -5701,7 +5938,7 @@ components:
|
|
|
5701
5938
|
`BuildPlan.refusedSources` member, carrying that gate's own message),
|
|
5702
5939
|
a persist-target collision, and materialization-config problems that
|
|
5703
5940
|
degrade attribution. A refusal is the one materialization finding the
|
|
5704
|
-
build plan cannot also be read for: a refused `storage`/`
|
|
5941
|
+
build plan cannot also be read for: a refused `storage`/`database`
|
|
5705
5942
|
source is ABSENT from `BuildPlan.sources`, so nothing there records
|
|
5706
5943
|
that the annotation was written at all. Discovery findings: a model
|
|
5707
5944
|
on the package's surface whose export closure surfaces no sources or
|
|
@@ -5873,10 +6110,16 @@ components:
|
|
|
5873
6110
|
deprecated `#(filter)` annotations (one per declaring source,
|
|
5874
6111
|
`model` naming its file and `subject` the source).
|
|
5875
6112
|
`deprecated-preaggregate-annotation`: a measure declaring
|
|
5876
|
-
`#@ preaggregate
|
|
5877
|
-
|
|
6113
|
+
`#@ preaggregate` or the deprecated alias `#(preaggregate)`,
|
|
6114
|
+
whose v2 spelling is `#(rollup)`; the message names the
|
|
6115
|
+
spelling it found (one per measure, `model` its file, `subject` the source and the
|
|
5878
6116
|
message the measure; `warn`; only while
|
|
5879
6117
|
`PUBLISHER_MATERIALIZE` is on).
|
|
6118
|
+
`deprecated-rollup-namespace`: a rollup line placed with
|
|
6119
|
+
`namespace=`, the deprecated spelling of its `name=`
|
|
6120
|
+
container; still read, in that container under the readable
|
|
6121
|
+
name (one per measure and container, `subject`
|
|
6122
|
+
`<base>.<measure>`; `warn`).
|
|
5880
6123
|
`report-name-ambiguous`: two or more grid reports share a
|
|
5881
6124
|
basename, so the deprecated `GET …/dashboards/{name}` route
|
|
5882
6125
|
answers 409 for it (one per name, `subject` naming it and the
|
|
@@ -5893,73 +6136,127 @@ components:
|
|
|
5893
6136
|
cannot tell from a real de-identification, so a review has
|
|
5894
6137
|
to (one per field, `subject` the source; `warn`; a plain
|
|
5895
6138
|
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
6139
|
Materialization codes follow one rule: the suffix tells the
|
|
5901
6140
|
outcome. An INVALID annotation (or invalid code it covers)
|
|
5902
6141
|
fails the publish and the load, on every path, so its code
|
|
5903
6142
|
appears only in the load failure's message (the publish 4xx
|
|
5904
6143
|
and `loadErrors`), never as a warning here:
|
|
5905
6144
|
`persist-invalid`, `materialize-invalid`,
|
|
5906
|
-
`
|
|
6145
|
+
`rollup-invalid`, `persist-view-invalid` and
|
|
5907
6146
|
`persist-query-invalid` (a bad value or contradictory
|
|
5908
6147
|
combination: a `storage=` that names nothing, an `@env.`
|
|
5909
|
-
reference, an unusable or reserved
|
|
5910
|
-
that names no join, an incremental
|
|
6148
|
+
reference, an unusable, unsafe, unquoted or reserved
|
|
6149
|
+
`name=`, an `inline=` that names no join, an incremental
|
|
6150
|
+
key or `refresh="incremental"` on a view or query);
|
|
5911
6151
|
`persist-unknown-key`, `materialize-unknown-key` and
|
|
5912
|
-
`
|
|
6152
|
+
`rollup-unknown-key` (every route's key set is
|
|
6153
|
+
closed, a `freshness.` group's included);
|
|
5913
6154
|
`persist-retired-key` and `materialize-retired-key`
|
|
5914
|
-
(`sharing=`, `schedule=`, `partition
|
|
5915
|
-
`persist-unparseable`,
|
|
5916
|
-
`
|
|
6155
|
+
(`sharing=`, `schedule=`, `partition=`, and on `#@ persist`
|
|
6156
|
+
`realization=`); `persist-unparseable`,
|
|
6157
|
+
`materialize-unparseable`, `rollup-unparseable`,
|
|
6158
|
+
`persist-view-unparseable` and `persist-query-unparseable`; `persist-not-materializable` (a
|
|
5917
6159
|
`#@ persist` on a shape Malloy does not plan);
|
|
5918
|
-
`
|
|
5919
|
-
|
|
6160
|
+
`rollup-not-a-measure`, `rollup-unknown-grain` and
|
|
6161
|
+
`rollup-not-mergeable` (a rollup line on a field that is not
|
|
6162
|
+
a measure, a grain naming no dimension, a measure no rollup
|
|
6163
|
+
can merge);
|
|
5920
6164
|
`materialization-table-collision` (two sources whose
|
|
5921
6165
|
`name=` puts them on one table; under
|
|
5922
6166
|
`PERSIST_COLLISION_ENFORCE=false` a refusal instead); and
|
|
5923
6167
|
`materialization-near-miss` (a misspelled materialization
|
|
5924
6168
|
route or directive, such as `#(materialise)` or
|
|
5925
6169
|
`#@ persits`). `preaggregate-malformed` is retained and no
|
|
5926
|
-
longer produced: it is `
|
|
5927
|
-
`
|
|
6170
|
+
longer produced: it is `rollup-invalid` or
|
|
6171
|
+
`rollup-unparseable` now. Retained, no longer produced:
|
|
6172
|
+
`preaggregate-invalid`, `preaggregate-unknown-key`,
|
|
6173
|
+
`preaggregate-unparseable`, `preaggregate-not-a-measure`,
|
|
6174
|
+
`preaggregate-unknown-grain` and
|
|
6175
|
+
`preaggregate-not-mergeable`, now `rollup-invalid`,
|
|
6176
|
+
`rollup-unknown-key`, `rollup-unparseable`,
|
|
6177
|
+
`rollup-not-a-measure`, `rollup-unknown-grain` and
|
|
6178
|
+
`rollup-not-mergeable`. A measure or
|
|
6179
|
+
source that carries both `#(rollup)` and `#(preaggregate)`
|
|
6180
|
+
is `rollup-invalid`.
|
|
5928
6181
|
A VALID annotation Publisher cannot build here is refused
|
|
5929
6182
|
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:
|
|
6183
|
+
severity `warn`, never `error`. Every one is a
|
|
6184
|
+
`BuildPlan.refusedSources` entry with a bounded `reason`,
|
|
6185
|
+
and its warning's code names the mechanism:
|
|
6186
|
+
`persist-not-built` (a `#@ persist` source; `subject` the
|
|
6187
|
+
source), `materialize-not-built` (a `#(materialize)` source;
|
|
6188
|
+
`subject` the source), `persist-view-not-built` and
|
|
6189
|
+
`persist-query-not-built` (a persisted view or named query;
|
|
6190
|
+
`subject` the view or query), and `rollup-not-built`
|
|
6191
|
+
(a `#(rollup)` or `#@ preaggregate` rollup; `subject`
|
|
6192
|
+
the base, or `<base>.<measure>` for one measure). The
|
|
6193
|
+
message says why, and `reason` is the refusal record's
|
|
6194
|
+
bounded reason. `preaggregate-not-built` is
|
|
6195
|
+
`rollup-not-built`'s former name: each `rollup-not-built`
|
|
6196
|
+
warning is repeated under it, with the same message, for
|
|
6197
|
+
this release only. `persist-source-refused`, the former name
|
|
6198
|
+
of `persist-not-built` repeated beside it in 0.14.0, is no
|
|
6199
|
+
longer produced.
|
|
6200
|
+
Retained, no longer produced: the rollup sub-family
|
|
5955
6201
|
`preaggregate-hidden-field`, `-access-filter`, `-time-zone`,
|
|
5956
6202
|
`-current-time`, `-reads-given`, `-unreadable-measure`,
|
|
5957
|
-
`-join-level`
|
|
5958
|
-
|
|
6203
|
+
`-join-level` and `-name-clash`, now each
|
|
6204
|
+
`rollup-not-built` with the reasons `hidden_field`,
|
|
6205
|
+
`access_filter` (or `authorize`), `time_zone`,
|
|
6206
|
+
`current_time`, `reads_given`,
|
|
6207
|
+
`inherited_where_with_given` or
|
|
6208
|
+
`given_where_over_unstored_field`, `unreadable_measure`,
|
|
6209
|
+
`join_not_in_grain` and `partial_name_collision`.
|
|
5959
6210
|
`materialization-storage-mode`: a `storage=` source the
|
|
5960
6211
|
deployment's `PERSIST_STORAGE_MODE` (`off` or `write-only`)
|
|
5961
6212
|
does not serve from storage (`subject` the source, or a
|
|
5962
|
-
rollup's base; `warn`).
|
|
6213
|
+
rollup's base; `reason` `storage_mode`; `warn`).
|
|
6214
|
+
`materialization-unreachable`,
|
|
6215
|
+
`materialization-destination-missing` and
|
|
6216
|
+
`materialization-connection-cannot-hold-table`: a source
|
|
6217
|
+
whose serve verdict is `live` for the reason each names (no
|
|
6218
|
+
published source reaches it; its `storage=` destination is not
|
|
6219
|
+
configured; its connection creates no tables), with the
|
|
6220
|
+
verdict's `message` and `fixes` (`subject` the source;
|
|
6221
|
+
`reason` the verdict's; `warn`).
|
|
6222
|
+
`materialize-pair-full-refresh`: a `#(materialize)` pair
|
|
6223
|
+
table (an inlined `join_many`) whose `refresh="incremental"`
|
|
6224
|
+
is not honoured: it is rebuilt in full on every refresh, and
|
|
6225
|
+
served (`subject` the source; `warn`).
|
|
6226
|
+
`rollup-join-one-key-repeated`: a rollup's last build found
|
|
6227
|
+
a `join_one` key repeated in the data, so queries that read
|
|
6228
|
+
that join beside other aggregates are answered live
|
|
6229
|
+
(`subject` the rollup's base; `warn`). Repeated under its
|
|
6230
|
+
former name `preaggregate-join-one-key-repeated` for this
|
|
6231
|
+
release only.
|
|
6232
|
+
`served-copy-not-served`: the served copy (the author's own
|
|
6233
|
+
files, each stored source re-rooted on its table) leaves a
|
|
6234
|
+
source as written, so it answers live, or serves it with a
|
|
6235
|
+
join read as written or left out; `reason` names why
|
|
6236
|
+
(`compile_failed`, `cross_connection_unbuilt`,
|
|
6237
|
+
`column_types`, `no_declaration`, `definition_not_parsed`,
|
|
6238
|
+
`pair_join_not_found`, `pair_not_compiled`,
|
|
6239
|
+
`fields_not_carried`, `read_terms_not_kept`,
|
|
6240
|
+
`cross_connection_join`, `inline_join_kept`,
|
|
6241
|
+
`reroot_not_compiled`, `classification_not_kept`; an open
|
|
6242
|
+
set) (`subject` the source; `warn`).
|
|
6243
|
+
`row-level-gate-unexpressible`: a row-level gate an entry
|
|
6244
|
+
point inherits, whose field it no longer carries, so that
|
|
6245
|
+
entry point denies every request; `row-level-gate-reads-no-given`:
|
|
6246
|
+
a source-line gate that reads no given, a fixed predicate
|
|
6247
|
+
rather than an access rule keyed on the caller;
|
|
6248
|
+
`row-level-gate-negated-membership`: a source-line gate that
|
|
6249
|
+
negates a membership test, which an empty given turns into
|
|
6250
|
+
match-all, or that is too deep to check for one (its message
|
|
6251
|
+
then says it is too deep to check, not that it negates one)
|
|
6252
|
+
(`model` the
|
|
6253
|
+
entry point's file, `subject` the entry point; `warn`; the
|
|
6254
|
+
model still loads).
|
|
6255
|
+
`annotation-near-miss` and `annotation-malformed-route`: an
|
|
6256
|
+
annotation whose route or directive looks like a misspelled
|
|
6257
|
+
one Publisher reads (`warn`); `annotation-gate-near-miss`: a
|
|
6258
|
+
misspelled gate annotation (`#(authorise)`), which
|
|
6259
|
+
`compile_model` refuses.
|
|
5963
6260
|
`persist-incremental-no-merge-key`: an incremental source
|
|
5964
6261
|
with no `merge_key=`, so each refresh replaces its watermark
|
|
5965
6262
|
range (`subject` the source; `warn`).
|
|
@@ -5967,18 +6264,79 @@ components:
|
|
|
5967
6264
|
the same SQL on one connection, so they share one table and
|
|
5968
6265
|
one boundary, where at least one is incremental (one per
|
|
5969
6266
|
source; `warn`).
|
|
6267
|
+
`persist-incremental-late-rows`: an incremental source whose
|
|
6268
|
+
bound table a delta's late-row check found missing rows
|
|
6269
|
+
stamped just below where a delta started reading, which no
|
|
6270
|
+
later delta reads (its manifest entry's `lateRows`); it is
|
|
6271
|
+
carried until the source is rebuilt in full (one per source;
|
|
6272
|
+
`warn`).
|
|
6273
|
+
`rollup-join-one-key-repeated`: a bound rollup whose last
|
|
6274
|
+
build found the key of a `join_one` it reads repeated, so a
|
|
6275
|
+
query reading that join beside other aggregates is answered
|
|
6276
|
+
live; it clears once a build finds the key unique (one per
|
|
6277
|
+
rollup; `warn`). `preaggregate-join-one-key-repeated` is
|
|
6278
|
+
retained, no longer produced: it is
|
|
6279
|
+
`rollup-join-one-key-repeated` now.
|
|
5970
6280
|
`join-bypass`: an author join from a published source to one
|
|
5971
6281
|
with a stricter gate, which the join does not carry (one per
|
|
5972
6282
|
join, or one for a walk cut short at the join bound; always
|
|
5973
6283
|
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
|
-
`
|
|
6284
|
+
`storage-column-type-mismatch`: a `storage=` table of any
|
|
6285
|
+
kind (`#@ persist`, `#(materialize)`, a rollup, a persisted
|
|
6286
|
+
view or query) stores a column as a type other than the one
|
|
6287
|
+
its build declares. It is read through a cast to the
|
|
6288
|
+
declared type where that is faithful, and otherwise
|
|
6289
|
+
answered live, never read as its stored type (one per
|
|
6290
|
+
source and column, `model` the model
|
|
6291
|
+
declaring it, `subject` the source, a rollup's base, or a
|
|
6292
|
+
view's or query's build source, the message naming the
|
|
6293
|
+
column, both types and which applies; `warn`; see
|
|
6294
|
+
docs/materialization.md).
|
|
6295
|
+
`database-column-type-mismatch`: a bound table in a source's
|
|
6296
|
+
own database whose column was altered, or dropped, outside a
|
|
6297
|
+
build, so it no longer stores the declared type; it is read
|
|
6298
|
+
through a cast where that is faithful, and otherwise answered
|
|
6299
|
+
live, until the table is rebuilt (one per source and column,
|
|
6300
|
+
`subject` the source; `warn`).
|
|
6301
|
+
`table-kept`: a table an auto-run replaced
|
|
6302
|
+
when its source's table was renamed or moved, which
|
|
6303
|
+
Publisher keeps rather than drops: one at an author's exact
|
|
6304
|
+
`name=` (never dropped), one in a storage destination
|
|
6305
|
+
that is no longer configured (which, when the destination
|
|
6306
|
+
was renamed rather than removed, may be the table served
|
|
6307
|
+
under the new name), or one a `storage=` or tier move left
|
|
6308
|
+
under the name the source is served under now (which may
|
|
6309
|
+
be the very table served, so it is never dropped).
|
|
6310
|
+
Listed on the newest run's
|
|
6311
|
+
`metadata.keptTables` until no committed run names it in
|
|
6312
|
+
its place (its runs deleted; a delete is record-only),
|
|
6313
|
+
a run finds it dropped by hand (never on Snowflake or
|
|
6314
|
+
MySQL, whose catalogs hide tables), or its name is used
|
|
6315
|
+
again in its own place
|
|
6316
|
+
(one per table, `model` the model
|
|
6317
|
+
declaring the source, `subject` the source or a rollup's
|
|
6318
|
+
base, the message naming the table and where it is,
|
|
6319
|
+
`reason` the kept table's `author_name`,
|
|
6320
|
+
`destination_missing` or `may_be_served`; `warn`; see
|
|
6321
|
+
docs/materialization.md).
|
|
6322
|
+
`database-table-unread`: a bound table in a source's own
|
|
6323
|
+
database whose columns could not be read when it was bound
|
|
6324
|
+
(missing, unreadable, slower than the read's bound, or named
|
|
6325
|
+
in more than one schema), so its queries are answered live
|
|
6326
|
+
until a read succeeds; the message names the table or
|
|
6327
|
+
rollup, one fixed reason (its connection could not be
|
|
6328
|
+
opened, the catalog read timed out, the catalog query
|
|
6329
|
+
failed, not found, a name matching more than one table, a
|
|
6330
|
+
name the catalog cannot read; never the driver's text) and
|
|
6331
|
+
whether a retry is pending, and the warning clears once the
|
|
6332
|
+
table is read (only for a table a source of the package
|
|
6333
|
+
reads; one per table, `model` the model declaring
|
|
6334
|
+
its source, `subject` the source, or a rollup's base, when
|
|
6335
|
+
the plan knows the table; `reason` one of
|
|
6336
|
+
`connection_failed`, `timed_out`, `catalog_query_failed`,
|
|
6337
|
+
`not_found`, `ambiguous`, `unparseable`, `not_read`; `warn`;
|
|
6338
|
+
see docs/materialization.md).
|
|
6339
|
+
`database-native-type-missing`: a database table is bound
|
|
5982
6340
|
with no captured warehouse type (its manifest entry's
|
|
5983
6341
|
`nativeSchema`) for a column whose field Malloy types as a big
|
|
5984
6342
|
integer. On BigQuery the column is read as `INT64`, its only
|
|
@@ -5987,7 +6345,8 @@ components:
|
|
|
5987
6345
|
full rebuild captures the types (one per source, `model` the
|
|
5988
6346
|
first model binding it, `subject` the source, the message
|
|
5989
6347
|
naming the columns and which applies; `warn`; see
|
|
5990
|
-
docs/materialization.md).
|
|
6348
|
+
docs/materialization.md). Repeated under its former name
|
|
6349
|
+
`stored-native-schema-missing` for this release only.
|
|
5991
6350
|
`entities-…` (`entities-not-a-dimension`,
|
|
5992
6351
|
`entities-parameterized-source`,
|
|
5993
6352
|
`entities-multiple-required-filters`,
|
|
@@ -6001,6 +6360,19 @@ components:
|
|
|
6001
6360
|
curation findings (`report-on-surface`,
|
|
6002
6361
|
`index-is-not-a-report`). The message wording may change; the
|
|
6003
6362
|
code does not.
|
|
6363
|
+
reason:
|
|
6364
|
+
type: string
|
|
6365
|
+
description: >-
|
|
6366
|
+
The bounded cause of a materialization finding, so a client
|
|
6367
|
+
branches on it rather than on the message (whose wording may
|
|
6368
|
+
change): the refusal record's `reason` on a `*-not-built`
|
|
6369
|
+
warning; the served copy's reason on
|
|
6370
|
+
`served-copy-not-served`; the unread reason on
|
|
6371
|
+
`database-table-unread`; the kept table's reason on
|
|
6372
|
+
`table-kept`; the serve verdict's reason on a
|
|
6373
|
+
`materialization-*` verdict warning; `storage_mode` on
|
|
6374
|
+
`materialization-storage-mode`. Always snake_case. An open
|
|
6375
|
+
string; absent on a finding that has none.
|
|
6004
6376
|
severity:
|
|
6005
6377
|
type: string
|
|
6006
6378
|
enum:
|
|
@@ -6126,6 +6498,7 @@ components:
|
|
|
6126
6498
|
enum:
|
|
6127
6499
|
- unbound
|
|
6128
6500
|
- bound
|
|
6501
|
+
- bind_failed
|
|
6129
6502
|
- live_fallback
|
|
6130
6503
|
description: >-
|
|
6131
6504
|
**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 +8893,19 @@ components:
|
|
|
8520
8893
|
exactly that many rows is a complete answer.
|
|
8521
8894
|
servedFrom:
|
|
8522
8895
|
type: ["string", "null"]
|
|
8523
|
-
enum: [storage, live_fallback, null]
|
|
8896
|
+
enum: [storage, database, live_fallback, null]
|
|
8524
8897
|
description: >-
|
|
8525
|
-
|
|
8526
|
-
routing decision at all.
|
|
8898
|
+
Which tier answered this query, when a materialized table did.
|
|
8527
8899
|
|
|
8528
8900
|
`storage` — served from a materialized table in a `storage=`
|
|
8529
8901
|
destination, via the virtual-source transform. The source's own
|
|
8530
8902
|
warehouse was not queried.
|
|
8531
8903
|
|
|
8904
|
+
`database` — served from a materialized table in the source's own
|
|
8905
|
+
database (`colocated` in releases before this one): a database `#@ persist` table Malloy substituted, a
|
|
8906
|
+
database `#(materialize)` table the served copy read, or a
|
|
8907
|
+
database rollup or persisted view.
|
|
8908
|
+
|
|
8532
8909
|
`live_fallback` — the query DID route to storage and the store then
|
|
8533
8910
|
failed underneath it, and the source's freshness fallback allowed it
|
|
8534
8911
|
to degrade to the live warehouse. **The rows are correct and the
|
|
@@ -8536,53 +8913,19 @@ components:
|
|
|
8536
8913
|
indistinguishable from a storage hit at the call site, and treating it
|
|
8537
8914
|
as one would report a healthy hit rate for a broken store. On
|
|
8538
8915
|
`publisher_query_route_total` the same event is the answering leg's
|
|
8539
|
-
`outcome="fallback", reason="
|
|
8540
|
-
|
|
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.
|
|
8916
|
+
`outcome="fallback", reason="READ_FAILED"`.
|
|
8917
|
+
|
|
8918
|
+
Null means no materialized table answered: the query was served
|
|
8919
|
+
live. `path`, the path report, says why each table that could have
|
|
8920
|
+
answered did not, and `path.servedBy.tier` names the same tier this
|
|
8921
|
+
field does. The server also logs a
|
|
8922
|
+
`served copy cannot answer this query` line at DEBUG, carrying the
|
|
8923
|
+
error that declined the query and its decline code.
|
|
8924
|
+
|
|
8925
|
+
`live_fallback` here means the store failed at run time for this
|
|
8926
|
+
query. A configured `manifestLocation` whose fetch or bind failed is
|
|
8927
|
+
`manifestBindingStatus: bind_failed` (releases before this one
|
|
8928
|
+
spelled that `live_fallback` too).
|
|
8586
8929
|
executionTimeMs:
|
|
8587
8930
|
type: integer
|
|
8588
8931
|
description: >-
|
|
@@ -8634,9 +8977,7 @@ components:
|
|
|
8634
8977
|
materialized table that served it (or `live`), every materialized
|
|
8635
8978
|
table on the queried source's chain with the reason each one that
|
|
8636
8979
|
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.
|
|
8980
|
+
use, for every tier.
|
|
8640
8981
|
|
|
8641
8982
|
Absent only when the report could not be assembled; the query's
|
|
8642
8983
|
answer never depends on it.
|
|
@@ -8664,8 +9005,10 @@ components:
|
|
|
8664
9005
|
Every materialized table on the queried source's chain, and every
|
|
8665
9006
|
rollup of a source on it, that could have answered this query: the
|
|
8666
9007
|
one that served it marked `used`, the rest `skipped` with a reason.
|
|
8667
|
-
|
|
8668
|
-
|
|
9008
|
+
Listed as `storage=` tables, then database rollups, then database
|
|
9009
|
+
tables nearest first, which is not the order Publisher tries them
|
|
9010
|
+
(a persisted view or query, then rollups coarsest first, then the
|
|
9011
|
+
served copy). A table
|
|
8669
9012
|
that was not tried because an earlier one answered is left out.
|
|
8670
9013
|
Empty when the queried source has no materialized table.
|
|
8671
9014
|
items:
|
|
@@ -8684,7 +9027,7 @@ components:
|
|
|
8684
9027
|
warnings:
|
|
8685
9028
|
type: array
|
|
8686
9029
|
description: >-
|
|
8687
|
-
The serve verdicts behind this query's `
|
|
9030
|
+
The serve verdicts behind this query's `NOT_SERVED` skips: one per table
|
|
8688
9031
|
on the queried source's chain that no query can be answered from,
|
|
8689
9032
|
each with a code and a sentence for a person. A table whose source
|
|
8690
9033
|
the caller cannot list is left out, as in `notConsidered`. Empty
|
|
@@ -8701,15 +9044,20 @@ components:
|
|
|
8701
9044
|
code:
|
|
8702
9045
|
type: string
|
|
8703
9046
|
description: >-
|
|
8704
|
-
The serve verdict's reason: `
|
|
8705
|
-
|
|
9047
|
+
The serve verdict's reason (`ServeVerdict.reason`): `refused` (the
|
|
9048
|
+
package refuses to serve it), `storage_mode` (built into storage,
|
|
9049
|
+
but the server's PERSIST_STORAGE_MODE routes no query to it),
|
|
8706
9050
|
`unreachable` (no published source reaches it), `row_level_gate`
|
|
8707
9051
|
(every published entry point over it carries a gate it cannot keep
|
|
8708
|
-
yet), `
|
|
8709
|
-
storage table is bound to another
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
9052
|
+
yet), `stale` (past its freshness window, with a fallback that does
|
|
9053
|
+
not serve stale), `shadowed` (its storage table is bound to another
|
|
9054
|
+
source of the same name), `destination_missing` (`storage=` names
|
|
9055
|
+
a destination the environment does not configure),
|
|
9056
|
+
`connection_cannot_hold_table` (its connection creates no tables),
|
|
9057
|
+
`materialization_off` (only the served copy reads it, and the
|
|
9058
|
+
served copy is off) or `served_copy` (only the served copy reads
|
|
9059
|
+
it, and the served copy does not re-root it). An open set: treat a
|
|
9060
|
+
code you do not know as a warning like any other.
|
|
8713
9061
|
tableId:
|
|
8714
9062
|
type: string
|
|
8715
9063
|
description: The table, as `considered` names it.
|
|
@@ -8768,9 +9116,24 @@ components:
|
|
|
8768
9116
|
properties:
|
|
8769
9117
|
kind:
|
|
8770
9118
|
$ref: "#/components/schemas/QueryPathTableKind"
|
|
9119
|
+
origin:
|
|
9120
|
+
type: string
|
|
9121
|
+
enum: [persist, materialize, view, query, rollup]
|
|
9122
|
+
description: >-
|
|
9123
|
+
The mechanism that declared the table, as `PersistSourcePlan.origin`
|
|
9124
|
+
names it. `kind: materialized` is `persist` or `materialize`.
|
|
9125
|
+
Absent when `kind` is `live`, or when the table's mechanism is not
|
|
9126
|
+
known.
|
|
8771
9127
|
tableId:
|
|
8772
9128
|
type: string
|
|
8773
9129
|
description: The table that answered. Absent when `kind` is `live`.
|
|
9130
|
+
tier:
|
|
9131
|
+
type: string
|
|
9132
|
+
enum: [database, storage]
|
|
9133
|
+
description: >-
|
|
9134
|
+
Where the table that answered lives: `database`, the source's own
|
|
9135
|
+
database, or `storage`, a `storage=` destination. The same tier the
|
|
9136
|
+
query result's `servedFrom` reports. Absent when `kind` is `live`.
|
|
8774
9137
|
dataAsOf:
|
|
8775
9138
|
type: string
|
|
8776
9139
|
format: date-time
|
|
@@ -8795,22 +9158,35 @@ components:
|
|
|
8795
9158
|
type: string
|
|
8796
9159
|
kind:
|
|
8797
9160
|
$ref: "#/components/schemas/QueryPathTableKind"
|
|
9161
|
+
origin:
|
|
9162
|
+
type: string
|
|
9163
|
+
enum: [persist, materialize, view, query, rollup]
|
|
9164
|
+
description: >-
|
|
9165
|
+
The mechanism that declared the table, as `PersistSourcePlan.origin`
|
|
9166
|
+
names it. `kind: materialized` is `persist` or `materialize`.
|
|
9167
|
+
Absent when `kind` is `live`, or when the table's mechanism is not
|
|
9168
|
+
known.
|
|
8798
9169
|
outcome:
|
|
8799
9170
|
type: string
|
|
8800
9171
|
enum: [used, skipped]
|
|
8801
|
-
description: "`used`, the table answered; `skipped`, it could not, and `reason` says why."
|
|
9172
|
+
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
9173
|
reason:
|
|
8803
9174
|
$ref: "#/components/schemas/SkipReason"
|
|
8804
9175
|
code:
|
|
8805
9176
|
type: string
|
|
8806
9177
|
description: >-
|
|
8807
|
-
For a `
|
|
8808
|
-
query
|
|
8809
|
-
|
|
8810
|
-
copy
|
|
8811
|
-
|
|
8812
|
-
|
|
8813
|
-
|
|
9178
|
+
For a `NOT_SERVED` skip, the serve verdict's reason the table
|
|
9179
|
+
answers no query, from the same set as `QueryPathWarning.code`;
|
|
9180
|
+
for a table only the served copy reads, `served_copy` also when
|
|
9181
|
+
the served copy does not re-root the queried source (the
|
|
9182
|
+
`served-copy-not-served` package warning says why). Always
|
|
9183
|
+
snake_case. An open set. Absent on any other outcome, and on a
|
|
9184
|
+
`NOT_SERVED` skip whose verdict is not known.
|
|
9185
|
+
|
|
9186
|
+
|
|
9187
|
+
Retained, no longer produced (shipped in 0.14.0):
|
|
9188
|
+
`served-copy-not-served`, now `served_copy`; `persist-opt-out`,
|
|
9189
|
+
now the skip reason `OPTED_OUT`.
|
|
8814
9190
|
detail:
|
|
8815
9191
|
type: string
|
|
8816
9192
|
description: >-
|
|
@@ -8830,6 +9206,14 @@ components:
|
|
|
8830
9206
|
type: string
|
|
8831
9207
|
kind:
|
|
8832
9208
|
$ref: "#/components/schemas/QueryPathTableKind"
|
|
9209
|
+
origin:
|
|
9210
|
+
type: string
|
|
9211
|
+
enum: [persist, materialize, view, query, rollup]
|
|
9212
|
+
description: >-
|
|
9213
|
+
The mechanism that declared the table, as `PersistSourcePlan.origin`
|
|
9214
|
+
names it. `kind: materialized` is `persist` or `materialize`.
|
|
9215
|
+
Absent when `kind` is `live`, or when the table's mechanism is not
|
|
9216
|
+
known.
|
|
8833
9217
|
sourceName:
|
|
8834
9218
|
type: string
|
|
8835
9219
|
description: The source the table materializes; for a rollup, the source it rolls up.
|
|
@@ -8850,36 +9234,54 @@ components:
|
|
|
8850
9234
|
What kind of answer: `view`, a persisted view's table; `query`, a
|
|
8851
9235
|
persisted named query's table (`#@ persist` on a top-level `query:`);
|
|
8852
9236
|
`rollup`, a pre-aggregation; `materialized`, a materialized source's
|
|
8853
|
-
table
|
|
9237
|
+
table (`origin` `persist` or `materialize`; this kind is not
|
|
9238
|
+
extended); `live`, the source's own warehouse. A client treats a kind it
|
|
8854
9239
|
does not know as a materialized table it cannot name.
|
|
8855
9240
|
|
|
8856
9241
|
SkipReason:
|
|
8857
9242
|
type: string
|
|
8858
9243
|
enum:
|
|
8859
9244
|
- NOT_BUILT
|
|
8860
|
-
-
|
|
9245
|
+
- NOT_SERVED
|
|
9246
|
+
- OPTED_OUT
|
|
8861
9247
|
- MISSING_FIELD
|
|
8862
|
-
-
|
|
9248
|
+
- SHAPE_MISMATCH
|
|
9249
|
+
- ROW_LEVEL_GATE
|
|
8863
9250
|
- GRAIN_TOO_COARSE
|
|
8864
9251
|
- TIME_ZONE
|
|
8865
9252
|
- CROSS_CONNECTION
|
|
8866
9253
|
- COUNT_SEMANTICS
|
|
8867
9254
|
- STALE
|
|
9255
|
+
- READ_FAILED
|
|
9256
|
+
- WARNED
|
|
9257
|
+
- CONTRACT
|
|
8868
9258
|
- RUN_FAILED
|
|
8869
9259
|
description: >-
|
|
8870
9260
|
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
|
-
|
|
9261
|
+
this package yet; `NOT_SERVED`, its serve verdict is `live`, so it
|
|
9262
|
+
answers no query, and the candidate's `code` names the verdict's
|
|
9263
|
+
reason; `OPTED_OUT`, the queried source opts out of its tables with
|
|
9264
|
+
`#@ -persist`; `MISSING_FIELD`, the query reads a field the table
|
|
9265
|
+
lacks (or otherwise does not compile against it); `SHAPE_MISMATCH`,
|
|
9266
|
+
the query is not the shape the stored result answers: it is not a
|
|
9267
|
+
call of the persisted view or query, it refines the call, or its text
|
|
9268
|
+
names beside the call a name the stored result's variant takes over;
|
|
9269
|
+
`ROW_LEVEL_GATE`, answering from it would bypass a row-level gate on
|
|
9270
|
+
the queried source; `GRAIN_TOO_COARSE`, a rollup's grain does not
|
|
9271
|
+
cover the query's groups or filters; `TIME_ZONE`, it was built in
|
|
9272
|
+
another time zone than the query's; `CROSS_CONNECTION`, the query
|
|
9273
|
+
needs a join the table's connection cannot reach; `COUNT_SEMANTICS`,
|
|
9274
|
+
an aggregate the table cannot reproduce as the live query computes
|
|
9275
|
+
it; `STALE`, it is past its freshness window; `READ_FAILED`, it was
|
|
9276
|
+
chosen but reading it failed at run time, and its freshness fallback
|
|
9277
|
+
allowed live.
|
|
9278
|
+
|
|
9279
|
+
|
|
9280
|
+
Retained, no longer produced (shipped in 0.14.0): `WARNED`, now
|
|
9281
|
+
`NOT_SERVED` (or `OPTED_OUT` for `#@ -persist`); `CONTRACT`, now
|
|
9282
|
+
`ROW_LEVEL_GATE`; `RUN_FAILED`, now `READ_FAILED`. A closed list to
|
|
9283
|
+
which codes may be added, so a client treats an unknown one as a
|
|
9284
|
+
skip it cannot explain.
|
|
8883
9285
|
|
|
8884
9286
|
LogMessage:
|
|
8885
9287
|
type: object
|
|
@@ -9909,6 +10311,12 @@ components:
|
|
|
9909
10311
|
details:
|
|
9910
10312
|
type: string
|
|
9911
10313
|
description: Additional error details or context
|
|
10314
|
+
refusalReason:
|
|
10315
|
+
type: string
|
|
10316
|
+
description: >-
|
|
10317
|
+
With `reason: MATERIALIZATION_REFUSED`: the refusal's bounded
|
|
10318
|
+
reason, from the same open set as `RefusedSource.reason`. Absent
|
|
10319
|
+
otherwise.
|
|
9912
10320
|
reason:
|
|
9913
10321
|
type: string
|
|
9914
10322
|
description: |
|
|
@@ -9937,6 +10345,67 @@ components:
|
|
|
9937
10345
|
the environment does not have, usually one deleted after the
|
|
9938
10346
|
package was loaded.
|
|
9939
10347
|
|
|
10348
|
+
STORAGE_ACCESS_DENIED, on a 403, means an object store refused the
|
|
10349
|
+
database's read under a data path the environment configures (a
|
|
10350
|
+
DuckLake catalog's, a storage destination's): the query and the
|
|
10351
|
+
model are fine, and whoever configures the database's storage
|
|
10352
|
+
credentials has to fix it. PATH_ACCESS_DENIED, on a 403, means the
|
|
10353
|
+
object store at a path the query or the model reads itself (a file
|
|
10354
|
+
or table URL) refused access: change the path, or get the caller a
|
|
10355
|
+
grant to it. Retrying either fails the same way. The body names the
|
|
10356
|
+
source or connection the caller read and no storage path.
|
|
10357
|
+
|
|
10358
|
+
ACCESS_DENIED, on a 403, means a gate (`#(authorize)` or
|
|
10359
|
+
`#(access_filter)`) refused the caller. Every gate 403 carries it,
|
|
10360
|
+
including a gate that could not be decided, which fails closed and
|
|
10361
|
+
answers the same: only the server's metrics and log tell those
|
|
10362
|
+
apart. A 403 with any other reason is not a gate's.
|
|
10363
|
+
|
|
10364
|
+
MATERIALIZATION_REFUSED means a valid materialization declaration
|
|
10365
|
+
this server will not build, and the body's `refusalReason` is the
|
|
10366
|
+
refusal's `RefusedSource.reason`. Reserved: no route answers with
|
|
10367
|
+
it today. The eligibility gate runs inside a materialization run,
|
|
10368
|
+
after `POST …/materializations` has answered 201, so a refusal is
|
|
10369
|
+
recorded on the run instead: as a `SourceFailure` with `refused`
|
|
10370
|
+
and `refusalReason` on a run with `buildInstructions`, otherwise
|
|
10371
|
+
in the run's `metadata.refusedSources`, or its `error` when
|
|
10372
|
+
nothing else was left to build.
|
|
10373
|
+
|
|
10374
|
+
TABLE_OWNED_ELSEWHERE and TABLE_OWNERSHIP_UNVERIFIED, on a 400,
|
|
10375
|
+
mean a build was refused before it wrote because its `name=` is
|
|
10376
|
+
held by a table this package does not own, or because who holds
|
|
10377
|
+
it could not be read. On a 409 from dropping a materialized table
|
|
10378
|
+
(`drop-materialized-table`), they mean the drop was refused for
|
|
10379
|
+
the same reasons: the table is another's, or nothing proves it is
|
|
10380
|
+
this package's.
|
|
10381
|
+
|
|
10382
|
+
TABLE_IN_USE, on a 409 from dropping a materialized table, means
|
|
10383
|
+
the table may still be read: a committed run of the package, of
|
|
10384
|
+
any version, names a table with that name (other than the run the
|
|
10385
|
+
caller named, unless that run is the one a version or the package
|
|
10386
|
+
serves); a loaded copy of any package in the environment, or any
|
|
10387
|
+
loaded version of one, is bound to a table with that name; or the
|
|
10388
|
+
warehouse refused the drop because other objects depend on the
|
|
10389
|
+
table. Delete or replace that run, rebind that copy, or drop
|
|
10390
|
+
those objects first.
|
|
10391
|
+
|
|
10392
|
+
BUILD_INSTRUCTIONS_INVALID, on a 400 from creating a
|
|
10393
|
+
materialization, means its body or build instructions are not a
|
|
10394
|
+
run this package can take (a field of the wrong shape, an unknown
|
|
10395
|
+
source, a table named twice, a ledger entry that does not fit);
|
|
10396
|
+
the message names which. Retrying unchanged fails the same way.
|
|
10397
|
+
|
|
10398
|
+
MATERIALIZATION_CONFLICT, on a 409, means a materialization run
|
|
10399
|
+
conflicts with another run or with the package's binding. Two of
|
|
10400
|
+
its cases clear on their own, so retry later: a run already active
|
|
10401
|
+
for the package, and a table another run is writing. Two do not
|
|
10402
|
+
clear until something changes, so a retry fails the same way: an
|
|
10403
|
+
auto-run of a package or version a host manifest serves (pass
|
|
10404
|
+
`buildInstructions`, or clear the binding), and a run of a version
|
|
10405
|
+
that is not latest touching the tables a `scope: package`
|
|
10406
|
+
package's versions share (name tables of its own in
|
|
10407
|
+
`buildInstructions`). The message says which.
|
|
10408
|
+
|
|
9940
10409
|
Deliberately an open string rather than an enum. Generators render
|
|
9941
10410
|
an enum closed, so adding a second value here would break every
|
|
9942
10411
|
client generated before it -- on the one field whose purpose is to
|
|
@@ -9977,7 +10446,10 @@ components:
|
|
|
9977
10446
|
|
|
9978
10447
|
Known values: TABLE_NOT_FOUND, CONNECTION_FAILED,
|
|
9979
10448
|
CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND,
|
|
9980
|
-
|
|
10449
|
+
STORAGE_ACCESS_DENIED, PATH_ACCESS_DENIED, ACCESS_DENIED,
|
|
10450
|
+
MATERIALIZATION_REFUSED, TABLE_OWNED_ELSEWHERE,
|
|
10451
|
+
TABLE_OWNERSHIP_UNVERIFIED, TABLE_IN_USE, BUILD_INSTRUCTIONS_INVALID,
|
|
10452
|
+
MATERIALIZATION_CONFLICT, MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID,
|
|
9981
10453
|
VERSION_CONFLICT, PACKAGE_IS_VERSIONED,
|
|
9982
10454
|
PACKAGE_INSTALLED_FROM_LOCATION, FILE_EXISTS, VERSION_IS_LATEST,
|
|
9983
10455
|
VERSION_IS_LAST_ACTIVE, VERSION_BUILDING, VERSION_ID_INVALID,
|
|
@@ -10094,8 +10566,12 @@ components:
|
|
|
10094
10566
|
against the replacement. It also reports the render-tag findings
|
|
10095
10567
|
(code "render-tag") and the dashboard, given and drill findings
|
|
10096
10568
|
(code "dashboard-lint") a reload would put on the package's
|
|
10097
|
-
warnings, at their own severity and with no position
|
|
10098
|
-
|
|
10569
|
+
warnings, at their own severity and with no position, and the
|
|
10570
|
+
load's verdict on the materialization annotations: each line a
|
|
10571
|
+
load fails with as an error with its code, each annotation the
|
|
10572
|
+
load leaves unbuilt as a warning ("file" reports the same verdict
|
|
10573
|
+
when the file names a materialization route or the package plans
|
|
10574
|
+
a table). The package's other warnings (storage, bound tables,
|
|
10099
10575
|
explores, surface and discovery warnings, among others) are not
|
|
10100
10576
|
reported. Package diagnostics can name
|
|
10101
10577
|
files hidden from discovery. No rows or SQL are returned, and
|
|
@@ -10462,9 +10938,16 @@ components:
|
|
|
10462
10938
|
description: >-
|
|
10463
10939
|
Build output. Null until the tables are built (status
|
|
10464
10940
|
MANIFEST_ROWS_READY), and on a run that failed or was cancelled
|
|
10465
|
-
before then
|
|
10941
|
+
before then, with one exception: a run that FAILED because every
|
|
10942
|
+
source it was asked to build failed or was refused carries a
|
|
10943
|
+
manifest whose `failures` holds each such source's own reason and
|
|
10944
|
+
`retryable`, keyed by sourceEntityId, and whose `entries` is
|
|
10945
|
+
empty. A run interrupted at MANIFEST_ROWS_READY (the server
|
|
10466
10946
|
stopped while it loaded its manifest) ends FAILED with its
|
|
10467
|
-
manifest
|
|
10947
|
+
manifest. Publisher never serves or binds a FAILED run's
|
|
10948
|
+
manifest; a host may still bind the sources it reused, from its
|
|
10949
|
+
own records. Such a manifest has no `builtAt`, since nothing was
|
|
10950
|
+
built; the run's `completedAt` says when it ended.
|
|
10468
10951
|
startedAt:
|
|
10469
10952
|
type: ["string", "null"]
|
|
10470
10953
|
format: date-time
|
|
@@ -10479,19 +10962,68 @@ components:
|
|
|
10479
10962
|
description: >-
|
|
10480
10963
|
Materialization metadata including build options, source counts,
|
|
10481
10964
|
and durations. Free-form object — fields such as `trigger`
|
|
10482
|
-
(
|
|
10965
|
+
(`on_demand` | `scheduler`, the words `RunContext.trigger` uses;
|
|
10966
|
+
releases before this one wrote `ON_DEMAND` | `SCHEDULER`, which a
|
|
10967
|
+
reader of older runs must still accept) live here deliberately, so a strict-schema
|
|
10483
10968
|
client does not need to know them. Promoting any such field to a
|
|
10484
10969
|
top-level `Materialization` property is a breaking schema change
|
|
10485
10970
|
that orchestrated clients must adopt first; do not do it casually.
|
|
10486
10971
|
`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
|
|
10972
|
+
nothing, the whole run's answer beside each source's own in
|
|
10973
|
+
`manifest.failures`: `false` when every source failed
|
|
10974
|
+
deterministically or was refused, `true` when any failure was
|
|
10975
|
+
transient, with the same rules as `SourceFailure.retryable`.
|
|
10976
|
+
Absent when unclassified, for a cancelled run, and from a
|
|
10977
|
+
Publisher that predates it.
|
|
10492
10978
|
`errorAtCancel` (string) is set on a CANCELLED run whose last
|
|
10493
10979
|
error was not the cancellation itself: the message of the failure
|
|
10494
10980
|
the cancel raced, which `error` reports only as "Cancelled".
|
|
10981
|
+
`keptTables` (array) is set on an auto-run that lists the tables
|
|
10982
|
+
a rename or move left and Publisher keeps rather than drops (see
|
|
10983
|
+
the `table-kept` warning).
|
|
10984
|
+
additionalProperties: true
|
|
10985
|
+
properties:
|
|
10986
|
+
keptTables:
|
|
10987
|
+
type: array
|
|
10988
|
+
description: >-
|
|
10989
|
+
Tables an auto-run replaced and Publisher keeps, carried
|
|
10990
|
+
forward by later runs until no committed run names the table
|
|
10991
|
+
in its place, the name is built again in its own place, or a
|
|
10992
|
+
run finds the table gone. An older server leaves out an entry
|
|
10993
|
+
whose `reason` it does not know.
|
|
10994
|
+
items:
|
|
10995
|
+
type: object
|
|
10996
|
+
required:
|
|
10997
|
+
[sourceEntityId, physicalTableName, connectionName, reason]
|
|
10998
|
+
properties:
|
|
10999
|
+
sourceEntityId:
|
|
11000
|
+
type: string
|
|
11001
|
+
description: The source the table was built for.
|
|
11002
|
+
sourceName:
|
|
11003
|
+
type: string
|
|
11004
|
+
description: The source's name, when the run recorded it.
|
|
11005
|
+
physicalTableName:
|
|
11006
|
+
type: string
|
|
11007
|
+
description: The kept table, as the run that built it wrote it.
|
|
11008
|
+
connectionName:
|
|
11009
|
+
type: string
|
|
11010
|
+
description: The source's connection.
|
|
11011
|
+
storageDestinationName:
|
|
11012
|
+
type: string
|
|
11013
|
+
description: >-
|
|
11014
|
+
The storage destination holding the table; absent for a
|
|
11015
|
+
table in the connection's own database.
|
|
11016
|
+
reason:
|
|
11017
|
+
type: string
|
|
11018
|
+
enum: [author_name, destination_missing, may_be_served]
|
|
11019
|
+
description: >-
|
|
11020
|
+
`author_name`: at an author's exact `name=`, which
|
|
11021
|
+
Publisher never drops. `destination_missing`: in a
|
|
11022
|
+
storage destination no longer configured, which
|
|
11023
|
+
Publisher cannot reach. `may_be_served`: under the
|
|
11024
|
+
table segment the source is served under now, in
|
|
11025
|
+
another place or container, so it may be the very
|
|
11026
|
+
table served, and is never dropped.
|
|
10495
11027
|
createdAt:
|
|
10496
11028
|
type: string
|
|
10497
11029
|
format: date-time
|
|
@@ -10526,17 +11058,26 @@ components:
|
|
|
10526
11058
|
refusedSources:
|
|
10527
11059
|
type: object
|
|
10528
11060
|
description: >-
|
|
10529
|
-
Map of sourceID ("sourceName@modelURL") to
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
11061
|
+
Map of sourceID ("sourceName@modelURL") to every valid
|
|
11062
|
+
materialization declaration the package makes that is not built
|
|
11063
|
+
here: a `#@ persist` or `#(materialize)` source, a persisted view
|
|
11064
|
+
or named query, or a rollup (`#(rollup)` or
|
|
11065
|
+
`#@ preaggregate`). Each is answered live while the rest of the
|
|
11066
|
+
package loads, and each carries its `reason`. An invalid
|
|
11067
|
+
declaration is never here: it fails the publish and the load. A
|
|
11068
|
+
SEPARATE collection rather than a field on `PersistSourcePlan`:
|
|
11069
|
+
constructing that plan entry requires the source's SQL and content
|
|
11070
|
+
address, and a refused declaration may produce neither. Lets a
|
|
11071
|
+
host distinguish "this package declares no materialization" (both
|
|
11072
|
+
maps empty) from "every declaration was refused" (empty `sources`,
|
|
11073
|
+
populated `refusedSources`), which silence otherwise reads as the
|
|
11074
|
+
former. A persisted view or query is keyed by the generated build
|
|
11075
|
+
source it would have had (`<source>__<view>__view@…` or
|
|
11076
|
+
`<query>__query@…`), a `#(materialize)` source by its own
|
|
11077
|
+
sourceID, and a rollup measure refused before its rollup is
|
|
11078
|
+
planned by the measure's path on its base, its grain and its
|
|
11079
|
+
destination (`<base>.<measure>[<grain>]@<model>.preaggregate.malloy`,
|
|
11080
|
+
`[<grain> in <destination>]` for a `storage=` one).
|
|
10540
11081
|
additionalProperties:
|
|
10541
11082
|
$ref: "#/components/schemas/RefusedSource"
|
|
10542
11083
|
omittedSources:
|
|
@@ -10603,7 +11144,7 @@ components:
|
|
|
10603
11144
|
value); `eligibility_check_failed` (an eligibility gate failed
|
|
10604
11145
|
with an error rather than a refusal); `projection_failed` (the
|
|
10605
11146
|
plan entry could not otherwise be computed);
|
|
10606
|
-
`rollup_companion_failed` (the generated `#(
|
|
11147
|
+
`rollup_companion_failed` (the generated `#(rollup)` rollup
|
|
10607
11148
|
companion, which also plans v1 `#@ preaggregate` rollups, did not
|
|
10608
11149
|
plan or compile); `rollup_companion_blanking_failed` (that companion was
|
|
10609
11150
|
not built because a `#@` line of the author's files could not be
|
|
@@ -10646,22 +11187,41 @@ components:
|
|
|
10646
11187
|
RefusedSource:
|
|
10647
11188
|
type: object
|
|
10648
11189
|
description: >-
|
|
10649
|
-
One
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
`
|
|
10656
|
-
|
|
10657
|
-
the
|
|
10658
|
-
|
|
10659
|
-
|
|
11190
|
+
One valid materialization declaration Publisher does not build here,
|
|
11191
|
+
and why: the one refusal record for every mechanism (`#@ persist`,
|
|
11192
|
+
`#(materialize)`, a persisted view or named query, and a rollup). It
|
|
11193
|
+
is answered live, and the package carries one `*-not-built` warning
|
|
11194
|
+
for it (`persist-not-built`, `materialize-not-built`,
|
|
11195
|
+
`persist-view-not-built`, `persist-query-not-built` or
|
|
11196
|
+
`rollup-not-built`) with this `message`. A `#@ persist`
|
|
11197
|
+
source's gate refusal is computed from the SAME tier-appropriate
|
|
11198
|
+
eligibility assert the build path itself enforces (the database
|
|
11199
|
+
tier's post-relaxation admission for a proven row-level,
|
|
11200
|
+
fully-attributed authorize gate applies here too), so a source this
|
|
11201
|
+
reports as refused is refused for the tier it would actually build
|
|
11202
|
+
under. A rollup's entry (`origin: rollup`) can coexist with an entry
|
|
11203
|
+
of the same sourceID in `BuildPlan.sources`: the one mechanism where
|
|
11204
|
+
refused-and-present-in-sources is the correct, intended state; for
|
|
11205
|
+
every other a refusal means absence from `sources`.
|
|
10660
11206
|
required: [name, sourceID, tier, reason, message]
|
|
10661
11207
|
properties:
|
|
11208
|
+
origin:
|
|
11209
|
+
type: string
|
|
11210
|
+
enum: [persist, materialize, view, query, rollup]
|
|
11211
|
+
description: >-
|
|
11212
|
+
The mechanism that declared it, as `PersistSourcePlan.origin` names
|
|
11213
|
+
it: `persist`, `materialize`, `view`, `query`, or `rollup`. Read
|
|
11214
|
+
this, not `tier`, to tell a rollup's refusal. Absent on a record a
|
|
11215
|
+
release before this one wrote, where `tier: preaggregate` marked a
|
|
11216
|
+
rollup.
|
|
10662
11217
|
name:
|
|
10663
11218
|
type: string
|
|
10664
|
-
description:
|
|
11219
|
+
description: >-
|
|
11220
|
+
The declaration's name: a source's declared name, a persisted
|
|
11221
|
+
view's or query's generated build source name
|
|
11222
|
+
(`<source>__<view>__view`, `<query>__query`), a planned rollup's
|
|
11223
|
+
generated name, or, for a rollup measure refused before its
|
|
11224
|
+
rollup is planned, `<base>.<measure>`.
|
|
10665
11225
|
sourceID:
|
|
10666
11226
|
type: string
|
|
10667
11227
|
description: "sourceName@modelURL — matches this entry's map key."
|
|
@@ -10673,18 +11233,20 @@ components:
|
|
|
10673
11233
|
model path could not be resolved.
|
|
10674
11234
|
tier:
|
|
10675
11235
|
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
|
-
|
|
11236
|
+
enum: [storage, database, preaggregate, colocated]
|
|
11237
|
+
description: >-
|
|
11238
|
+
Which build path this declaration was evaluated against: `storage`
|
|
11239
|
+
for one declaring `storage=<ref>` (a `#@ persist` source is
|
|
11240
|
+
evaluated against the full storage-destination eligibility gate,
|
|
11241
|
+
which never admits an authorize-gated source); `database` for one
|
|
11242
|
+
built in its own connection's database (a `#@ persist` source is
|
|
11243
|
+
evaluated against the database gate, which admits a proven
|
|
11244
|
+
row-level, fully-attributed gate). A rollup's is its own placement,
|
|
11245
|
+
as any other mechanism's. `preaggregate` is retained, no longer
|
|
11246
|
+
produced: releases before this one said it for a rollup, whatever
|
|
11247
|
+
its placement; read `origin` for the mechanism. `colocated` is
|
|
11248
|
+
retained, no longer produced: it is what releases before this one
|
|
11249
|
+
said for `database`, and a client should read it as `database`.
|
|
10688
11250
|
reason:
|
|
10689
11251
|
type: string
|
|
10690
11252
|
enum:
|
|
@@ -10705,96 +11267,163 @@ components:
|
|
|
10705
11267
|
not_duckdb_portable,
|
|
10706
11268
|
public_surface_unknown,
|
|
10707
11269
|
read_only_dialect,
|
|
11270
|
+
connection_cannot_hold_table,
|
|
10708
11271
|
storage_source_unsupported,
|
|
10709
11272
|
env_reference,
|
|
10710
11273
|
rollup_name_collision,
|
|
10711
11274
|
empty_storage,
|
|
10712
11275
|
table_name_collision,
|
|
10713
11276
|
current_time,
|
|
11277
|
+
reads_given,
|
|
11278
|
+
incremental_unsupported,
|
|
11279
|
+
materialization_off,
|
|
11280
|
+
multi_line_annotation,
|
|
11281
|
+
build_name_collision,
|
|
11282
|
+
run_target_unsupported,
|
|
11283
|
+
nested_result,
|
|
11284
|
+
inherited_persist,
|
|
11285
|
+
inline_unsupported,
|
|
11286
|
+
no_stored_columns,
|
|
11287
|
+
needs_qualified_name,
|
|
11288
|
+
generated_build_failed,
|
|
11289
|
+
hidden_field,
|
|
11290
|
+
access_filter,
|
|
11291
|
+
time_zone,
|
|
11292
|
+
unreadable_measure,
|
|
11293
|
+
join_not_in_grain,
|
|
11294
|
+
partial_name_collision,
|
|
11295
|
+
given_where_over_unstored_field,
|
|
11296
|
+
unreadable_grain,
|
|
10714
11297
|
]
|
|
10715
11298
|
description: >-
|
|
10716
|
-
The bounded refusal reason
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
11299
|
+
The bounded refusal reason; `message` says the specifics.
|
|
11300
|
+
|
|
11301
|
+
|
|
11302
|
+
On every mechanism: `free_parameter`; a row-level gate the
|
|
11303
|
+
table could not keep, named by the gate's kind, `access_filter`
|
|
11304
|
+
for a row filter (`#(access_filter)`, any of the gates that
|
|
11305
|
+
refused it) and `authorize` for a lock (`#(authorize)`);
|
|
11306
|
+
`reads_given`, the one reason every mechanism gives
|
|
11307
|
+
for a stored result that would read a given, so its table would
|
|
11308
|
+
hold one caller's rows or could not be read per caller (a given in
|
|
11309
|
+
a `#@ persist` source's persisted query, in a field it declares, in
|
|
11310
|
+
a join's `on:` condition or in a source it joins that is not
|
|
11311
|
+
stored per caller; a persisted view or query whose result reads
|
|
11312
|
+
one; a rollup whose build reads one), with `message` naming where
|
|
11313
|
+
the given sits; `inherited_where_with_given` (a
|
|
11314
|
+
given-reading `where:` or dimension the declaration inherits from
|
|
11315
|
+
a source it is built from, in its own file or another, rather than
|
|
11316
|
+
writing it in its own declaration: only the declaration's own
|
|
11317
|
+
terms are re-applied over the stored table at read; move the
|
|
11318
|
+
`where:` onto the persisted source to serve it from a table);
|
|
11319
|
+
`given_where_over_unstored_field` (a given-reading `where:` of the
|
|
11320
|
+
declaration's own over a field its table does not store, so it
|
|
11321
|
+
cannot be re-applied over the table at read: a field the rollup's
|
|
11322
|
+
grain drops, which adding it to the grain fixes, or on
|
|
11323
|
+
`#(materialize)` a field that is not a stored dimension);
|
|
10727
11324
|
`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
|
-
|
|
11325
|
+
cannot be expressed over the stored table's own columns);
|
|
11326
|
+
`connection_cannot_hold_table` (a database build on a connection
|
|
11327
|
+
that cannot create tables; SQL Server today, whose connection
|
|
11328
|
+
reports `canPersist: false`: the same words as the serve verdict's
|
|
11329
|
+
reason for the same case); `needs_qualified_name` (a database table on
|
|
11330
|
+
BigQuery, where a table needs a dataset, whose `name=` names none:
|
|
11331
|
+
a `#@ persist` source, a persisted view or query, a
|
|
11332
|
+
`#(materialize)` source, or a rollup whose own `name=` and base's
|
|
11333
|
+
give no container; refused at plan, before any warehouse work);
|
|
11334
|
+
`storage_source_unsupported` (`storage=` on a
|
|
11335
|
+
source whose connection the build cannot pass through to a
|
|
11336
|
+
destination, e.g. the package's DuckDB sandbox);
|
|
11337
|
+
`table_name_collision` (under `PERSIST_COLLISION_ENFORCE=false`, a
|
|
11338
|
+
declaration whose `name=` puts it on one table with another, so
|
|
11339
|
+
neither is built; by default such a package does not load; a run
|
|
11340
|
+
also records it in its `metadata.refusedSources` for a source
|
|
11341
|
+
whose readable table name another source's table already takes in
|
|
11342
|
+
that run); `current_time` (the build reads the current time, `now`,
|
|
11343
|
+
or keeps rows older than a moving cut-off it cannot leave out, so
|
|
11344
|
+
its table would hold the rows as of the build; `now` in the
|
|
11345
|
+
source's own extend block is applied at every read and is
|
|
11346
|
+
admitted); `incremental_unsupported` (a valid incremental
|
|
11347
|
+
declaration this deployment's dialect or destination cannot
|
|
11348
|
+
honour).
|
|
11349
|
+
|
|
11350
|
+
|
|
11351
|
+
A persisted view or named query: `materialization_off` (persisted
|
|
11352
|
+
named queries are built only with `PUBLISHER_MATERIALIZE` on),
|
|
11353
|
+
`multi_line_annotation` (its `#@` line spans more than one line),
|
|
11354
|
+
`build_name_collision` (its generated build source's name is one
|
|
11355
|
+
the model, or another persisted view, already takes),
|
|
11356
|
+
`run_target_unsupported` (its source is declared in another file,
|
|
11357
|
+
is not in the model's namespace, or cannot be read),
|
|
11358
|
+
`nested_result` (a result that nests, which its table cannot
|
|
11359
|
+
answer yet), `access_filter` or `authorize` (it reaches a
|
|
11360
|
+
row-level gate its stored result cannot keep, named by the gate's
|
|
11361
|
+
kind), `reads_given` (its result reads a given),
|
|
11362
|
+
`current_time` (its result reads `now`), `no_stored_columns` (it has no stage to store) and
|
|
11363
|
+
`generated_build_failed` (its build does not compile on its own).
|
|
11364
|
+
|
|
11365
|
+
|
|
11366
|
+
A `#(materialize)` source: `inherited_persist` (it inherits
|
|
11367
|
+
`#@ persist`, so it is already its base's table),
|
|
11368
|
+
`inline_unsupported` (an `inline=` join or pair-table layout the
|
|
11369
|
+
build cannot store), `no_stored_columns` (the source has no
|
|
11370
|
+
dimension to store), `needs_qualified_name` (as above),
|
|
11371
|
+
`time_zone` (the source sets its own time zone, which its stored
|
|
11372
|
+
columns cannot follow at read), and
|
|
11373
|
+
`generated_build_failed` (Publisher could not write or compile its
|
|
11374
|
+
generated build, a Publisher bug worth reporting).
|
|
11375
|
+
|
|
11376
|
+
|
|
11377
|
+
A rollup (`#(rollup)` or `#@ preaggregate`): `hidden_field`
|
|
11378
|
+
(a measure or grain dimension the published surface hides, which a
|
|
11379
|
+
rollup would publish), `access_filter` or `authorize` (a
|
|
11380
|
+
row-level gate a rollup cannot re-apply to its rows, named by the
|
|
11381
|
+
gate's kind as on every mechanism), `time_zone` (the source sets its own
|
|
11382
|
+
time zone, so no query reads the rollup), `unreadable_measure` (a
|
|
11383
|
+
measure definition outside what a rollup reads),
|
|
11384
|
+
`join_not_in_grain` (a measure that aggregates through a join its
|
|
11385
|
+
grain does not key, or through a fan-out join),
|
|
11386
|
+
`partial_name_collision` (a field already takes the name of the
|
|
11387
|
+
measure's stored partial), and `unreadable_grain` (a `storage=` rollup
|
|
11388
|
+
over a DuckDB source whose grain dimension is stored as a type no
|
|
11389
|
+
stored read declares, a BLOB, INTERVAL, MAP or JSON, so no query
|
|
11390
|
+
would read its table; database, it is built).
|
|
11391
|
+
|
|
11392
|
+
|
|
11393
|
+
Retained, no longer produced: `given` (replaced by the positional
|
|
11394
|
+
given reasons above), `given_in_persisted_query` (shipped in
|
|
11395
|
+
0.14.0: a `#@ persist` source's persisted query, or a
|
|
11396
|
+
`#(materialize)` source, whose build reads a given; now
|
|
11397
|
+
`reads_given`, the one name every mechanism gives the case),
|
|
11398
|
+
`preaggregate_over_dynamic_source` (shipped in 0.14.0: a rollup
|
|
11399
|
+
over a caller-scoped source, now `reads_given`,
|
|
11400
|
+
`given_where_over_unstored_field` or `inherited_where_with_given`,
|
|
11401
|
+
as every mechanism names the same case), `dynamic_projection`,
|
|
11402
|
+
`dynamic_join` and `dynamic_joined_where` (a `storage=`
|
|
11403
|
+
`#@ persist` source's given in a field it declares, in a join's
|
|
11404
|
+
`on:` condition, or in a source it joins; now `reads_given`,
|
|
11405
|
+
whose `message` still names the position), `not_duckdb_portable` (a `storage=` table no
|
|
10778
11406
|
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
|
|
11407
|
+
answered live), the three `partition_*` reasons (`partition=` is a
|
|
11408
|
+
retired key, which fails the publish and the load as
|
|
11409
|
+
`persist-retired-key` or `materialize-retired-key`), `env_reference`
|
|
11410
|
+
and `empty_storage` (invalid annotations, which fail the publish
|
|
11411
|
+
and the load, so no served package reports them; the plan keeps
|
|
11412
|
+
refusing such a source as a backstop, so a plan computed without
|
|
11413
|
+
the load's check can still carry one), and `rollup_name_collision` (a rollup's generated
|
|
11414
|
+
name digests its declaring source, so no two rollups share one).
|
|
11415
|
+
`read_only_dialect` (shipped in 0.14.0: now
|
|
11416
|
+
`connection_cannot_hold_table`).
|
|
11417
|
+
`public_surface_unknown` is raised by the build-time narrowing of a
|
|
11418
|
+
stored table to the source's public columns, never by a plan; it
|
|
11419
|
+
shares the enum with the eligibility metric.
|
|
10792
11420
|
message:
|
|
10793
11421
|
type: string
|
|
10794
11422
|
description: >-
|
|
10795
|
-
The full, human-readable refusal message the
|
|
10796
|
-
|
|
10797
|
-
|
|
11423
|
+
The full, human-readable refusal message, the text of the
|
|
11424
|
+
declaration's `*-not-built` warning. For a `#@ persist` gate
|
|
11425
|
+
refusal it is the same text a build attempting the source would
|
|
11426
|
+
422 with.
|
|
10798
11427
|
|
|
10799
11428
|
BuildGraph:
|
|
10800
11429
|
type: object
|
|
@@ -10888,15 +11517,22 @@ components:
|
|
|
10888
11517
|
type: string
|
|
10889
11518
|
origin:
|
|
10890
11519
|
type: string
|
|
10891
|
-
enum: [persist, preaggregate]
|
|
11520
|
+
enum: [persist, materialize, view, query, rollup, preaggregate]
|
|
10892
11521
|
default: persist
|
|
10893
11522
|
description: >-
|
|
10894
11523
|
Which authoring annotation produced this plan entry. `persist` — the
|
|
10895
|
-
modeler wrote `#@ persist` on the source
|
|
10896
|
-
|
|
10897
|
-
`
|
|
11524
|
+
modeler wrote `#@ persist` on the source, and the meaning of an
|
|
11525
|
+
absent value. `materialize` — `#(materialize)` on the source.
|
|
11526
|
+
`view` and `query` — `#@ persist` on a view or a named `query:`,
|
|
11527
|
+
whose generated build source this entry is. `rollup` — the
|
|
11528
|
+
modeler wrote `#(rollup)` (or its deprecated alias
|
|
11529
|
+
`#(preaggregate)`) or v1's `#@ preaggregate` on measures of
|
|
10898
11530
|
`preaggregate.baseSourceName`, and the publisher SYNTHESIZED this
|
|
10899
|
-
rollup source to serve them.
|
|
11531
|
+
rollup source to serve them. Releases before this one said
|
|
11532
|
+
`persist` for every entry that was not a rollup, and
|
|
11533
|
+
`preaggregate` for a rollup: `preaggregate` is retained, no longer
|
|
11534
|
+
produced. A client must accept a value it does not know as an
|
|
11535
|
+
entry that is not a rollup.
|
|
10900
11536
|
|
|
10901
11537
|
|
|
10902
11538
|
Note that BOTH kinds carry a `#@ persist` annotation by the time they
|
|
@@ -10918,7 +11554,7 @@ components:
|
|
|
10918
11554
|
description: >-
|
|
10919
11555
|
What the synthesized rollup covers: the base source it was derived
|
|
10920
11556
|
from, the one grain it is built at, and the measures served there.
|
|
10921
|
-
Present only when `origin` is `
|
|
11557
|
+
Present only when `origin` is `rollup`; null otherwise.
|
|
10922
11558
|
|
|
10923
11559
|
|
|
10924
11560
|
Coverage is complete by construction — a measure that cannot be
|
|
@@ -11012,12 +11648,16 @@ components:
|
|
|
11012
11648
|
declaring either on a source is a publish-time manifest error.)
|
|
11013
11649
|
|
|
11014
11650
|
|
|
11015
|
-
A synthesized rollup (`origin:
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11651
|
+
A synthesized rollup (`origin: rollup`) resolves the same way,
|
|
11652
|
+
with its source level being its own `freshness.window=` /
|
|
11653
|
+
`freshness.fallback=` (on `#(rollup)` or `#@ preaggregate`),
|
|
11654
|
+
field by field over its base's own source-level declaration. A
|
|
11655
|
+
rollup that declares nothing therefore goes stale with its base,
|
|
11656
|
+
and a stale rollup is answered from the base, the same answer.
|
|
11657
|
+
|
|
11658
|
+
A standalone run stamps this resolution on the manifest entries it
|
|
11659
|
+
commits (`freshnessWindowSeconds`, `freshnessFallback`, `dataAsOf`),
|
|
11660
|
+
as a control plane does on the manifest it distributes.
|
|
11021
11661
|
queryMetadata:
|
|
11022
11662
|
oneOf:
|
|
11023
11663
|
- $ref: "#/components/schemas/QueryMetadata"
|
|
@@ -11053,14 +11693,15 @@ components:
|
|
|
11053
11693
|
type: string
|
|
11054
11694
|
description: >-
|
|
11055
11695
|
All key=value fields of the source's `#@ persist` annotation (e.g.
|
|
11056
|
-
`name`, `
|
|
11696
|
+
`name`, `storage`). The control plane uses `name` as the
|
|
11057
11697
|
materialized table name (it may carry a dialect container path like
|
|
11058
|
-
`dataset.table`).
|
|
11059
|
-
|
|
11060
|
-
|
|
11698
|
+
`dataset.table`). The key set is closed: an unrecognized or retired
|
|
11699
|
+
key fails the publish and the load (`persist-unknown-key`,
|
|
11700
|
+
`persist-retired-key`), so a served plan carries only recognized
|
|
11701
|
+
keys.
|
|
11061
11702
|
|
|
11062
11703
|
|
|
11063
|
-
Recognized keys beyond `name`/`
|
|
11704
|
+
Recognized keys beyond `name`/`storage`, both read from
|
|
11064
11705
|
the EFFECTIVE merged tag (a source extending a persisted parent
|
|
11065
11706
|
inherits the parent's keys, and its own keys merge over them per key):
|
|
11066
11707
|
|
|
@@ -11078,13 +11719,26 @@ components:
|
|
|
11078
11719
|
quoted string (`merge_key="order_id, region"`).
|
|
11079
11720
|
|
|
11080
11721
|
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11722
|
+
* `lookback` — a duration (a positive whole number and one unit:
|
|
11723
|
+
`seconds`, `minutes`, `hours`, `days` or `weeks`, singular or
|
|
11724
|
+
plural, or `s`, `m`, `h`, `d` or `w`, as in `"2 days"` or `"36h"`;
|
|
11725
|
+
at most 365 days). Each delta of a `date` or `timestamp` watermark
|
|
11726
|
+
starts that much below the newest watermark the stored table holds,
|
|
11727
|
+
and the merge key matches the rows read again. Valid only with
|
|
11728
|
+
`refresh="incremental"`, a `date` or `timestamp` watermark and a
|
|
11729
|
+
`merge_key`; absent means no lookback.
|
|
11730
|
+
|
|
11085
11731
|
|
|
11732
|
+
All three are checked at publish: `watermark` and `merge_key`
|
|
11733
|
+
against the compiled output schema, and `lookback` against its
|
|
11734
|
+
grammar, its limit and the keys it requires, so a dangling or stale
|
|
11735
|
+
name, or an invalid lookback, is rejected rather than deferred to a
|
|
11736
|
+
build. None participates in
|
|
11737
|
+
`sourceEntityId`: adding a watermark to an existing source must not
|
|
11738
|
+
re-address its table.
|
|
11086
11739
|
|
|
11087
|
-
|
|
11740
|
+
|
|
11741
|
+
For a synthesized rollup (`origin: rollup`) the annotation was
|
|
11088
11742
|
generated by the publisher rather than authored, so this reports what
|
|
11089
11743
|
synthesis emitted. It is still the annotation that governs the build,
|
|
11090
11744
|
which is why it is reported the same way: a rollup is an ordinary
|
|
@@ -11099,7 +11753,7 @@ components:
|
|
|
11099
11753
|
the source back to its model.
|
|
11100
11754
|
|
|
11101
11755
|
|
|
11102
|
-
A synthesized rollup (`origin:
|
|
11756
|
+
A synthesized rollup (`origin: rollup`) is declared by no model,
|
|
11103
11757
|
so this is the model of its base — the file holding the
|
|
11104
11758
|
`#@ preaggregate` annotations it was synthesized from, which is where
|
|
11105
11759
|
an author would go to change it.
|
|
@@ -11221,7 +11875,9 @@ components:
|
|
|
11221
11875
|
Realization:
|
|
11222
11876
|
type: string
|
|
11223
11877
|
enum: [SNAPSHOT, COPY]
|
|
11224
|
-
description:
|
|
11878
|
+
description: >-
|
|
11879
|
+
COPY = CREATE TABLE AS SELECT, the only realization built. SNAPSHOT
|
|
11880
|
+
(a warehouse clone or snapshot) is refused.
|
|
11225
11881
|
|
|
11226
11882
|
BuildInstructions:
|
|
11227
11883
|
type: object
|
|
@@ -11333,12 +11989,11 @@ components:
|
|
|
11333
11989
|
declared now (a source that moved to or from `storage=` keeps its
|
|
11334
11990
|
content address): a stored upstream is stacked on in its
|
|
11335
11991
|
destination, and never rendered into warehouse SQL. Optional and
|
|
11336
|
-
additive: a reference without it still serves a
|
|
11992
|
+
additive: a reference without it still serves a database upstream.
|
|
11337
11993
|
|
|
11338
11994
|
BuildInstruction:
|
|
11339
11995
|
type: object
|
|
11340
|
-
required:
|
|
11341
|
-
[sourceEntityId, materializedTableId, physicalTableName, realization]
|
|
11996
|
+
required: [sourceEntityId, materializedTableId, physicalTableName]
|
|
11342
11997
|
properties:
|
|
11343
11998
|
sourceEntityId:
|
|
11344
11999
|
type: string
|
|
@@ -11364,7 +12019,11 @@ components:
|
|
|
11364
12019
|
hyphenated BigQuery project id, a container path) are valid, and
|
|
11365
12020
|
echoes this logical name back in the manifest.
|
|
11366
12021
|
realization:
|
|
11367
|
-
|
|
12022
|
+
allOf:
|
|
12023
|
+
- $ref: "#/components/schemas/Realization"
|
|
12024
|
+
description: >-
|
|
12025
|
+
Optional; absent means `COPY`, the only realization built.
|
|
12026
|
+
`SNAPSHOT` is refused.
|
|
11368
12027
|
destination:
|
|
11369
12028
|
type: string
|
|
11370
12029
|
description: >-
|
|
@@ -11372,7 +12031,7 @@ components:
|
|
|
11372
12031
|
`storage=` authoring axis) — an entry in the environment's
|
|
11373
12032
|
`storageDestinations`, which is a disjoint set from `connections`.
|
|
11374
12033
|
Absent means build into the persist source's own warehouse — the
|
|
11375
|
-
default, unchanged (
|
|
12034
|
+
default, unchanged (database) path. When present, the build runs
|
|
11376
12035
|
a native per-engine query-passthrough CTAS on a build-scoped session
|
|
11377
12036
|
for that destination (the source computes; only results cross), and
|
|
11378
12037
|
the manifest records the destination + captured schema so
|
|
@@ -11448,7 +12107,7 @@ components:
|
|
|
11448
12107
|
physical name and its content address when `storage=` is added or
|
|
11449
12108
|
removed (an annotation enters neither), so without this field a
|
|
11450
12109
|
boundary measured on the stored table is indistinguishable from one
|
|
11451
|
-
measured on a
|
|
12110
|
+
measured on a database table of the same name — and a delta computed
|
|
11452
12111
|
from the wrong one can skip rows.
|
|
11453
12112
|
|
|
11454
12113
|
A caller that has never recorded this field may omit it. An entry that
|
|
@@ -11523,7 +12182,9 @@ components:
|
|
|
11523
12182
|
some of its sources still returns the ones that succeeded in
|
|
11524
12183
|
`entries`, so this is how a consumer tells a partial failure from a
|
|
11525
12184
|
clean run and learns which source failed. Empty or absent on a run
|
|
11526
|
-
where every source built.
|
|
12185
|
+
where every source built. Present on a FAILED run too, when every
|
|
12186
|
+
source it was asked to build failed or was refused: there it names
|
|
12187
|
+
each of them, and `entries` is empty.
|
|
11527
12188
|
strict:
|
|
11528
12189
|
type: boolean
|
|
11529
12190
|
description: Whether unresolved references should error.
|
|
@@ -11570,7 +12231,7 @@ components:
|
|
|
11570
12231
|
The persist source's own connection (the source warehouse),
|
|
11571
12232
|
mirroring `ManifestEntry.connectionName`. Without this a failure-only
|
|
11572
12233
|
source carries no destination discriminator at all, so a consumer
|
|
11573
|
-
cannot tell a
|
|
12234
|
+
cannot tell a database failure from a `storage=` one and, lacking
|
|
11574
12235
|
`storageDestinationName`, would resolve a destination-scoped claim
|
|
11575
12236
|
against the wrong key.
|
|
11576
12237
|
storageDestinationName:
|
|
@@ -11578,10 +12239,24 @@ components:
|
|
|
11578
12239
|
description: >-
|
|
11579
12240
|
When the source was instructed to build into a `storage=`
|
|
11580
12241
|
destination, the destination name, mirroring
|
|
11581
|
-
`ManifestEntry.storageDestinationName`. Absent for a
|
|
12242
|
+
`ManifestEntry.storageDestinationName`. Absent for a database
|
|
11582
12243
|
failure. A consumer computes the same destination key a successful
|
|
11583
12244
|
build would (`storageDestinationName ?? connectionName`) whether the
|
|
11584
12245
|
source built or failed.
|
|
12246
|
+
refusalReason:
|
|
12247
|
+
type: string
|
|
12248
|
+
description: >-
|
|
12249
|
+
With `refused`: the refusal's bounded reason, from the same open set
|
|
12250
|
+
as `RefusedSource.reason`, so a client branches on it rather than on
|
|
12251
|
+
`reason`'s prose. Absent otherwise.
|
|
12252
|
+
code:
|
|
12253
|
+
type: string
|
|
12254
|
+
description: >-
|
|
12255
|
+
A bounded code for a failure a client may branch on, beside
|
|
12256
|
+
`reason`'s prose: `table-owned-elsewhere` (the build's `name=` is
|
|
12257
|
+
held by a table this package does not own) or
|
|
12258
|
+
`table-ownership-unverified` (who holds it could not be read). An
|
|
12259
|
+
open set; absent for a failure that has none.
|
|
11585
12260
|
refused:
|
|
11586
12261
|
type: boolean
|
|
11587
12262
|
description: >-
|
|
@@ -11602,7 +12277,8 @@ components:
|
|
|
11602
12277
|
and bounds fail the same way on every attempt. It is reported for an
|
|
11603
12278
|
eligibility refusal (always, beside `refused`), a Malloy or SQL
|
|
11604
12279
|
compile defect (a syntax or parser error), a rejected credential or
|
|
11605
|
-
missing grant (permission or access denied),
|
|
12280
|
+
missing grant (a message that says permission or access denied), a
|
|
12281
|
+
warehouse's own data or syntax error, and a source refused under
|
|
11606
12282
|
`strictUpstreams` because a persisted upstream it reads failed
|
|
11607
12283
|
deterministically earlier in the same run. That last source
|
|
11608
12284
|
inherits its upstream's classification (`true` when any such
|
|
@@ -11612,6 +12288,20 @@ components:
|
|
|
11612
12288
|
recompute its stored upstreams from the warehouse.
|
|
11613
12289
|
|
|
11614
12290
|
|
|
12291
|
+
A warehouse's own data or syntax error is one the warehouse names
|
|
12292
|
+
as such: a Postgres or Snowflake SQLSTATE in class 22 (data
|
|
12293
|
+
exception) or 42 (syntax error or access rule violation), or a
|
|
12294
|
+
BigQuery `invalidQuery` or `invalid` job error, and a Postgres data
|
|
12295
|
+
exception that reaches Publisher as text only (through a DuckDB
|
|
12296
|
+
passthrough). Five SQLSTATEs in class 42 are left to the other rules:
|
|
12297
|
+
a missing table or column (`42P01`, `42703`, `42S02`, `42S22`, and
|
|
12298
|
+
a BigQuery `Unrecognized name` or `Not found`), which stays absent,
|
|
12299
|
+
and `42501` (insufficient privilege). A Postgres `42501` still
|
|
12300
|
+
reports `false`, because its message says permission denied; a
|
|
12301
|
+
Snowflake `42501` stays absent. Transient codes (`40001`, `40P01`,
|
|
12302
|
+
and BigQuery's backend and quota reasons) are never `false`.
|
|
12303
|
+
|
|
12304
|
+
|
|
11615
12305
|
`true` is a transient failure, not a property of the inputs: the
|
|
11616
12306
|
database could not be reached or reset the connection, a timeout,
|
|
11617
12307
|
a rate limit, the build session running out of memory (`Out of
|
|
@@ -11669,13 +12359,21 @@ components:
|
|
|
11669
12359
|
treat a miss as a corrupt manifest.
|
|
11670
12360
|
origin:
|
|
11671
12361
|
type: string
|
|
11672
|
-
enum: [persist, preaggregate]
|
|
12362
|
+
enum: [persist, materialize, view, query, rollup, preaggregate]
|
|
11673
12363
|
default: persist
|
|
11674
12364
|
description: >-
|
|
11675
12365
|
Mirrors `PersistSourcePlan.origin` for the source this entry was built
|
|
11676
12366
|
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.
|
|
12367
|
+
is the meaning of an absent value, and `rollup` for a rollup
|
|
12368
|
+
synthesized from `#(rollup)` or `#@ preaggregate` measures.
|
|
12369
|
+
`preaggregate`, what releases before this one wrote for a rollup, is
|
|
12370
|
+
retained, no longer produced, and still read as a rollup, since a
|
|
12371
|
+
host echoes the entries it stored. The
|
|
12372
|
+
plan's other values (`materialize`, `view`, `query`) are accepted;
|
|
12373
|
+
`persist` or an absent value stays valid for every entry that is not
|
|
12374
|
+
a rollup, since a host echoes the entries it stored, and Publisher
|
|
12375
|
+
reads only whether an entry is a rollup, taking the mechanism from
|
|
12376
|
+
its own plan. Repeated here because a
|
|
11679
12377
|
manifest travels without its build plan, and a consumer holding only
|
|
11680
12378
|
the manifest otherwise cannot tell why it holds a table for a source
|
|
11681
12379
|
that does not appear in the package.
|
|
@@ -11718,7 +12416,7 @@ components:
|
|
|
11718
12416
|
nativeSchema:
|
|
11719
12417
|
type: array
|
|
11720
12418
|
description: >-
|
|
11721
|
-
For a
|
|
12419
|
+
For a database entry (no `storageDestinationName`): each column of
|
|
11722
12420
|
the built table with its type as the warehouse's own catalog names it
|
|
11723
12421
|
(`bigint`, `numeric`, `NUMBER(38,0)`, `UHUGEINT`), captured after the
|
|
11724
12422
|
build. The served copy reads a big-integer column through a cast to
|
|
@@ -11729,7 +12427,9 @@ components:
|
|
|
11729
12427
|
items:
|
|
11730
12428
|
$ref: "#/components/schemas/Column"
|
|
11731
12429
|
realization:
|
|
11732
|
-
|
|
12430
|
+
allOf:
|
|
12431
|
+
- $ref: "#/components/schemas/Realization"
|
|
12432
|
+
description: Retained; always `COPY`.
|
|
11733
12433
|
rowCount:
|
|
11734
12434
|
type: ["integer", "null"]
|
|
11735
12435
|
buildDurationMs:
|
|
@@ -11761,7 +12461,7 @@ components:
|
|
|
11761
12461
|
|
|
11762
12462
|
**Null is not zero**, and which paths report a figure differs.
|
|
11763
12463
|
|
|
11764
|
-
A
|
|
12464
|
+
A DATABASE build reports one, taken from the Malloy connection's own
|
|
11765
12465
|
statistics.
|
|
11766
12466
|
|
|
11767
12467
|
A plain `storage=` build reports one when its warehouse read carried
|
|
@@ -11774,7 +12474,7 @@ components:
|
|
|
11774
12474
|
reach its own job records also reports null; that case is counted by
|
|
11775
12475
|
`publisher_storage_build_attribution_skipped_total`.
|
|
11776
12476
|
|
|
11777
|
-
A
|
|
12477
|
+
A DATABASE incremental delta reports null because its statements do
|
|
11778
12478
|
not run through a single call whose result reaches here. A delta
|
|
11779
12479
|
into a `storage=` destination reports whatever its own bounded read
|
|
11780
12480
|
reported: that read is issued through the same call a full build's
|
|
@@ -11803,7 +12503,7 @@ components:
|
|
|
11803
12503
|
at least one persisted upstream was recomputed from its definition
|
|
11804
12504
|
and inlined into this build, because its table could not be read --
|
|
11805
12505
|
on either tier, an upstream this build neither materialized nor was
|
|
11806
|
-
handed by reference; for a
|
|
12506
|
+
handed by reference; for a database build, an upstream that
|
|
11807
12507
|
landed in a `storage=` destination; for a `storage=` build, a
|
|
11808
12508
|
source that reaches the warehouse through a non-persisted source,
|
|
11809
12509
|
or whose shape does not compile in the destination.
|
|
@@ -11815,6 +12515,13 @@ components:
|
|
|
11815
12515
|
Not a location: it does not name the table the rows came from.
|
|
11816
12516
|
Absent for a source that reads no persisted upstream, which has one
|
|
11817
12517
|
way to build and no choice to report.
|
|
12518
|
+
|
|
12519
|
+
A database rollup reports what its build actually read: `reused`
|
|
12520
|
+
only when it built from its base's materialized table, and absent
|
|
12521
|
+
when it built from the warehouse, even over a persisted base. Before
|
|
12522
|
+
0.15.0 every rollup over a persisted base reported `reused`. A
|
|
12523
|
+
`storage=` rollup reports `reused` only when it stacked on a stored
|
|
12524
|
+
table.
|
|
11818
12525
|
upstreamRecomputeReason:
|
|
11819
12526
|
type: string
|
|
11820
12527
|
description: >-
|
|
@@ -11872,6 +12579,56 @@ components:
|
|
|
11872
12579
|
`refresh="full"`, or one whose declaration the delta path cannot act
|
|
11873
12580
|
on at all (an unsupported source dialect), which the publish
|
|
11874
12581
|
gate rejects anyway.
|
|
12582
|
+
lateRows:
|
|
12583
|
+
type: object
|
|
12584
|
+
required: [count, from, to]
|
|
12585
|
+
description: >-
|
|
12586
|
+
For a source this run advanced by a delta (`refresh` is `delta`):
|
|
12587
|
+
rows the source holds below where the delta started reading that
|
|
12588
|
+
the stored table lacks. A delta reads from the newest watermark
|
|
12589
|
+
the table holds (less the source's `lookback=`), so a row stamped
|
|
12590
|
+
below that, landing after the rows above it were stored, is never
|
|
12591
|
+
read, and the table undercounts it until it is rebuilt.
|
|
12592
|
+
|
|
12593
|
+
The check reads one window directly below the delta's start, as
|
|
12594
|
+
wide as the delta's own range, so it finds a row stamped within
|
|
12595
|
+
that window and not one older. With `merge_key=` a source row
|
|
12596
|
+
counts when no stored row has its keys and its watermark (a
|
|
12597
|
+
skipped restatement counts too); without one, it is the source's
|
|
12598
|
+
rows in the window less the table's.
|
|
12599
|
+
|
|
12600
|
+
The window is capped, for a date or timestamp watermark, at
|
|
12601
|
+
seven days or the source's `lookback=`, whichever is longer.
|
|
12602
|
+
|
|
12603
|
+
Carried until the source is rebuilt in full: a later delta or
|
|
12604
|
+
skip reports what earlier ones found (read from the manifest
|
|
12605
|
+
bound when it runs), with its own findings added to `count` and
|
|
12606
|
+
`to` moved up, and a slice is checked once, so a row is counted
|
|
12607
|
+
once, so `count` is a lower bound: a row that lands in a slice
|
|
12608
|
+
already checked is not counted. It stays until a full rebuild,
|
|
12609
|
+
even after a widened `lookback=` has written the rows. `from` is
|
|
12610
|
+
where the first such window started. Absent when
|
|
12611
|
+
nothing was found since the last full rebuild. The check is
|
|
12612
|
+
best-effort, and not run for a pair table, a string watermark or
|
|
12613
|
+
a `storage=` source on BigQuery: it gives up after 60 seconds,
|
|
12614
|
+
stopping its statement, and one that fails is
|
|
12615
|
+
logged and leaves what was carried. While the run's manifest is
|
|
12616
|
+
bound, the package also warns with code
|
|
12617
|
+
`persist-incremental-late-rows`.
|
|
12618
|
+
properties:
|
|
12619
|
+
count:
|
|
12620
|
+
type: integer
|
|
12621
|
+
description: Source rows in the window the stored table lacks.
|
|
12622
|
+
from:
|
|
12623
|
+
type: string
|
|
12624
|
+
description: >-
|
|
12625
|
+
Where the window starts (inclusive), as the watermark's value:
|
|
12626
|
+
ISO-8601 for a date or timestamp, decimal text for a number.
|
|
12627
|
+
to:
|
|
12628
|
+
type: string
|
|
12629
|
+
description: >-
|
|
12630
|
+
Where it ends (exclusive): the delta's lower bound, spelled as
|
|
12631
|
+
`from` is.
|
|
11875
12632
|
|
|
11876
12633
|
parameters:
|
|
11877
12634
|
includeHiddenFilesAndSources:
|