@malloy-publisher/server 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/api-doc.yaml +320 -26
- package/dist/app/assets/{EnvironmentPage-CKUvEX7r.js → EnvironmentPage-Y9IWPC9J.js} +1 -1
- package/dist/app/assets/{HomePage-COpZmm3Z.js → HomePage-BOUo0MEl.js} +1 -1
- package/dist/app/assets/{MainPage-nIyVOgy5.js → MainPage-BkM5UDRU.js} +1 -1
- package/dist/app/assets/{ModelPage-BelGfTpw.js → ModelPage-PgDTkS5C.js} +2 -2
- package/dist/app/assets/{PackagePage-CbnVG2uD.js → PackagePage-Dn7FrQ5r.js} +1 -1
- package/dist/app/assets/{PackageSplatRoute-37oqxKyq.js → PackageSplatRoute-BLC29ek-.js} +2 -2
- package/dist/app/assets/{RenderedResult-Ct3z543g.es-QeWq894a.js → RenderedResult-vyM2wQbC.es-ha8dF24T.js} +3 -3
- package/dist/app/assets/{RouteError-CjmVxFgv.js → RouteError-BolMqTuz.js} +1 -1
- package/dist/app/assets/{ThemeEditorPage-BjPyhpFF.js → ThemeEditorPage-CPv1eHkI.js} +1 -1
- package/dist/app/assets/{ToggleButtonGroup-bM-WVZrV.js → ToggleButtonGroup-DZtImN0S.js} +1 -1
- package/dist/app/assets/{documentRoutes-BAPDdua3.js → documentRoutes-DI5cX3ty.js} +1 -1
- package/dist/app/assets/{editPageMounted-B4HEQbbz.js → editPageMounted-C--4kcld.js} +2 -2
- package/dist/app/assets/{index-DbRUcXfe.js → index-CbsrzNSp.js} +1 -1
- package/dist/app/assets/{index-C-aFb4Gn.js → index-D9wSfMZN.js} +1 -1
- package/dist/app/assets/{index-DUgED99B.js → index-DLToSg1f.js} +62 -62
- package/dist/app/assets/{index-Bx-5B05C.js → index-DyYEltlF.js} +1 -1
- package/dist/app/assets/{index.es-DO67FMt6.js → index.es-D8SVyfmS.js} +1 -1
- package/dist/app/assets/usePackageLinkNavigate-DxHGKrmZ.js +1 -0
- package/dist/app/assets/{usePackageRoute-Cso_p7RX.js → usePackageRoute-A_YQMrax.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/app/mcp-app/report.js +145 -145
- package/dist/instrumentation.mjs +10 -2
- package/dist/package_load_worker.mjs +1048 -384
- package/dist/server.mjs +31884 -27490
- package/package.json +1 -1
- package/dist/app/assets/usePackageLinkNavigate-BgdbNERJ.js +0 -1
package/dist/app/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
|
|
@@ -1293,7 +1300,8 @@ paths:
|
|
|
1293
1300
|
resolved in the context of the named package, and returns the results.
|
|
1294
1301
|
|
|
1295
1302
|
Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the
|
|
1296
|
-
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.
|
|
1297
1305
|
parameters:
|
|
1298
1306
|
- name: environmentName
|
|
1299
1307
|
in: path
|
|
@@ -4131,9 +4139,12 @@ paths:
|
|
|
4131
4139
|
description: |
|
|
4132
4140
|
Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED)
|
|
4133
4141
|
materialization record. A delete is record-only: it never drops a
|
|
4134
|
-
table, and the caller owns table GC. To drop a table this run
|
|
4135
|
-
|
|
4136
|
-
|
|
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.
|
|
4137
4148
|
`dropTables=true` is refused with 400 and deletes nothing, as is any
|
|
4138
4149
|
value other than `true` or `false` (the fix is to omit it);
|
|
4139
4150
|
`dropTables=false`, which older clients send, is accepted and ignored.
|
|
@@ -4158,6 +4169,126 @@ paths:
|
|
|
4158
4169
|
"410":
|
|
4159
4170
|
$ref: "#/components/responses/Gone"
|
|
4160
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
|
|
4258
|
+
in: query
|
|
4259
|
+
required: false
|
|
4260
|
+
description: |
|
|
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).
|
|
4267
|
+
schema:
|
|
4268
|
+
type: string
|
|
4269
|
+
- $ref: "#/components/parameters/versionId"
|
|
4270
|
+
responses:
|
|
4271
|
+
"204":
|
|
4272
|
+
description: |
|
|
4273
|
+
The table was dropped, or is already gone and a run record of
|
|
4274
|
+
this package names it on this connection.
|
|
4275
|
+
"400":
|
|
4276
|
+
$ref: "#/components/responses/BadRequest"
|
|
4277
|
+
"404":
|
|
4278
|
+
$ref: "#/components/responses/NotFound"
|
|
4279
|
+
"409":
|
|
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`).
|
|
4285
|
+
content:
|
|
4286
|
+
application/json:
|
|
4287
|
+
schema:
|
|
4288
|
+
$ref: "#/components/schemas/Error"
|
|
4289
|
+
"410":
|
|
4290
|
+
$ref: "#/components/responses/Gone"
|
|
4291
|
+
|
|
4161
4292
|
/environments/{environmentName}/storageDestinations/{destinationName}/schemas/{schemaName}/tables:
|
|
4162
4293
|
get:
|
|
4163
4294
|
tags:
|
|
@@ -4528,9 +4659,11 @@ components:
|
|
|
4528
4659
|
format: date-time
|
|
4529
4660
|
expiredSnapshots:
|
|
4530
4661
|
type: integer
|
|
4662
|
+
format: int64
|
|
4531
4663
|
description: Snapshots this cleanup expired
|
|
4532
4664
|
deletedFiles:
|
|
4533
4665
|
type: integer
|
|
4666
|
+
format: int64
|
|
4534
4667
|
description: Data and delete files this cleanup removed from storage
|
|
4535
4668
|
|
|
4536
4669
|
VersionIdPattern:
|
|
@@ -6129,10 +6262,24 @@ components:
|
|
|
6129
6262
|
`persist-incremental-no-merge-key`: an incremental source
|
|
6130
6263
|
with no `merge_key=`, so each refresh replaces its watermark
|
|
6131
6264
|
range (`subject` the source; `warn`).
|
|
6265
|
+
`persist-reads-current-time`: a `#@ persist` source,
|
|
6266
|
+
persisted view or persisted named query whose stored
|
|
6267
|
+
relation reads the current time (`now`, or a relative time
|
|
6268
|
+
filter string such as `f'last 7 days'`), so its answers are
|
|
6269
|
+
as of its last build and it is rebuilt on every run; the
|
|
6270
|
+
message names where it reads the clock and how to answer as
|
|
6271
|
+
of each query instead (one per table, `subject` the source,
|
|
6272
|
+
the view as `<source> -> <view>`, or the query; `warn`).
|
|
6132
6273
|
`persist-incremental-shared-address`: sources that compile to
|
|
6133
6274
|
the same SQL on one connection, so they share one table and
|
|
6134
6275
|
one boundary, where at least one is incremental (one per
|
|
6135
6276
|
source; `warn`).
|
|
6277
|
+
`persist-incremental-late-rows`: an incremental source whose
|
|
6278
|
+
bound table a delta's late-row check found missing rows
|
|
6279
|
+
stamped just below where a delta started reading, which no
|
|
6280
|
+
later delta reads (its manifest entry's `lateRows`); it is
|
|
6281
|
+
carried until the source is rebuilt in full (one per source;
|
|
6282
|
+
`warn`).
|
|
6136
6283
|
`rollup-join-one-key-repeated`: a bound rollup whose last
|
|
6137
6284
|
build found the key of a `join_one` it reads repeated, so a
|
|
6138
6285
|
query reading that join beside other aggregates is answered
|
|
@@ -6544,6 +6691,7 @@ components:
|
|
|
6544
6691
|
minimum: 1
|
|
6545
6692
|
llm_tokens:
|
|
6546
6693
|
type: integer
|
|
6694
|
+
format: int64
|
|
6547
6695
|
minimum: 1
|
|
6548
6696
|
job_minutes:
|
|
6549
6697
|
type: integer
|
|
@@ -8776,7 +8924,7 @@ components:
|
|
|
8776
8924
|
indistinguishable from a storage hit at the call site, and treating it
|
|
8777
8925
|
as one would report a healthy hit rate for a broken store. On
|
|
8778
8926
|
`publisher_query_route_total` the same event is the answering leg's
|
|
8779
|
-
`outcome="fallback", reason="
|
|
8927
|
+
`outcome="fallback", reason="READ_FAILED"`.
|
|
8780
8928
|
|
|
8781
8929
|
Null means no materialized table answered: the query was served
|
|
8782
8930
|
live. `path`, the path report, says why each table that could have
|
|
@@ -8804,6 +8952,7 @@ components:
|
|
|
8804
8952
|
histogram for rates and percentiles.
|
|
8805
8953
|
queryCostBytes:
|
|
8806
8954
|
type: ["integer", "null"]
|
|
8955
|
+
format: int64
|
|
8807
8956
|
description: >-
|
|
8808
8957
|
Warehouse bytes this query SCANNED, as reported by the backend that
|
|
8809
8958
|
ran it. Not what it is billed — see below.
|
|
@@ -9040,11 +9189,14 @@ components:
|
|
|
9040
9189
|
description: >-
|
|
9041
9190
|
For a `NOT_SERVED` skip, the serve verdict's reason the table
|
|
9042
9191
|
answers no query, from the same set as `QueryPathWarning.code`;
|
|
9043
|
-
for a table only the served copy reads, `served_copy`
|
|
9044
|
-
the served copy
|
|
9192
|
+
for a `storage=` table only the served copy reads, `served_copy`
|
|
9193
|
+
also when the served copy declined this query on it, such as
|
|
9194
|
+
when it does not re-root the queried source (the
|
|
9045
9195
|
`served-copy-not-served` package warning says why). Always
|
|
9046
|
-
snake_case. An open set. Absent on any other outcome,
|
|
9047
|
-
`NOT_SERVED` skip whose verdict is not known
|
|
9196
|
+
snake_case. An open set. Absent on any other outcome, on a
|
|
9197
|
+
`NOT_SERVED` skip whose verdict is not known, and on a database
|
|
9198
|
+
table the served copy declined for this query alone (its
|
|
9199
|
+
`detail` says why).
|
|
9048
9200
|
|
|
9049
9201
|
|
|
9050
9202
|
Retained, no longer produced (shipped in 0.14.0):
|
|
@@ -9121,9 +9273,24 @@ components:
|
|
|
9121
9273
|
- RUN_FAILED
|
|
9122
9274
|
description: >-
|
|
9123
9275
|
Why a table could not answer a query. `NOT_BUILT`, it is not bound to
|
|
9124
|
-
this package yet; `NOT_SERVED`, its serve verdict is `live`,
|
|
9125
|
-
answers no query, and the candidate's `code` names the
|
|
9126
|
-
reason
|
|
9276
|
+
this package yet; `NOT_SERVED`, either its serve verdict is `live`,
|
|
9277
|
+
so it answers no query, and the candidate's `code` names the
|
|
9278
|
+
verdict's reason, or the table otherwise serves and the served copy
|
|
9279
|
+
declined this one query on it. A `storage=` table only the served
|
|
9280
|
+
copy reads is then `NOT_SERVED` with `code` `served_copy` when the
|
|
9281
|
+
served copy re-roots nothing the query reads, cannot graft a gate on
|
|
9282
|
+
the queried source, would answer without a column a gate or the
|
|
9283
|
+
result (through a wildcard) needs because it leaves that column out
|
|
9284
|
+
of a stored table's type, would expose a field the compile of record
|
|
9285
|
+
does not classify or carry, resolves a composite to another member
|
|
9286
|
+
than live, or the source's ungated `where:` reads a column the table
|
|
9287
|
+
does not hold exactly or does not compare as its source does (a
|
|
9288
|
+
zoned timestamp, or a collation: on Postgres a database table's
|
|
9289
|
+
stored collation that differs from its source's or cannot be read).
|
|
9290
|
+
A database table is `NOT_SERVED` this way only for that last case,
|
|
9291
|
+
with a `detail` and no `code`. A query that itself names a column a
|
|
9292
|
+
stored table leaves out is `MISSING_FIELD`, and a gate the table
|
|
9293
|
+
cannot keep is `ROW_LEVEL_GATE`; `OPTED_OUT`, the queried source opts out of its tables with
|
|
9127
9294
|
`#@ -persist`; `MISSING_FIELD`, the query reads a field the table
|
|
9128
9295
|
lacks (or otherwise does not compile against it); `SHAPE_MISMATCH`,
|
|
9129
9296
|
the query is not the shape the stored result answers: it is not a
|
|
@@ -9136,8 +9303,10 @@ components:
|
|
|
9136
9303
|
needs a join the table's connection cannot reach; `COUNT_SEMANTICS`,
|
|
9137
9304
|
an aggregate the table cannot reproduce as the live query computes
|
|
9138
9305
|
it; `STALE`, it is past its freshness window; `READ_FAILED`, it was
|
|
9139
|
-
chosen but reading it failed at run time
|
|
9140
|
-
allowed live
|
|
9306
|
+
chosen but reading it failed at run time and the query was answered
|
|
9307
|
+
live: its freshness fallback allowed live, or the failure answers live
|
|
9308
|
+
whatever the fallback says (DECIMAL arithmetic past what the
|
|
9309
|
+
destination holds, or a destination catalog missing on the worker).
|
|
9141
9310
|
|
|
9142
9311
|
|
|
9143
9312
|
Retained, no longer produced (shipped in 0.14.0): `WARNED`, now
|
|
@@ -10224,14 +10393,33 @@ components:
|
|
|
10224
10393
|
answers the same: only the server's metrics and log tell those
|
|
10225
10394
|
apart. A 403 with any other reason is not a gate's.
|
|
10226
10395
|
|
|
10227
|
-
MATERIALIZATION_REFUSED
|
|
10228
|
-
|
|
10229
|
-
|
|
10396
|
+
MATERIALIZATION_REFUSED means a valid materialization declaration
|
|
10397
|
+
this server will not build, and the body's `refusalReason` is the
|
|
10398
|
+
refusal's `RefusedSource.reason`. Reserved: no route answers with
|
|
10399
|
+
it today. The eligibility gate runs inside a materialization run,
|
|
10400
|
+
after `POST …/materializations` has answered 201, so a refusal is
|
|
10401
|
+
recorded on the run instead: as a `SourceFailure` with `refused`
|
|
10402
|
+
and `refusalReason` on a run with `buildInstructions`, otherwise
|
|
10403
|
+
in the run's `metadata.refusedSources`, or its `error` when
|
|
10404
|
+
nothing else was left to build.
|
|
10230
10405
|
|
|
10231
10406
|
TABLE_OWNED_ELSEWHERE and TABLE_OWNERSHIP_UNVERIFIED, on a 400,
|
|
10232
10407
|
mean a build was refused before it wrote because its `name=` is
|
|
10233
10408
|
held by a table this package does not own, or because who holds
|
|
10234
|
-
it could not be read.
|
|
10409
|
+
it could not be read. On a 409 from dropping a materialized table
|
|
10410
|
+
(`drop-materialized-table`), they mean the drop was refused for
|
|
10411
|
+
the same reasons: the table is another's, or nothing proves it is
|
|
10412
|
+
this package's.
|
|
10413
|
+
|
|
10414
|
+
TABLE_IN_USE, on a 409 from dropping a materialized table, means
|
|
10415
|
+
the table may still be read: a committed run of the package, of
|
|
10416
|
+
any version, names a table with that name (other than the run the
|
|
10417
|
+
caller named, unless that run is the one a version or the package
|
|
10418
|
+
serves); a loaded copy of any package in the environment, or any
|
|
10419
|
+
loaded version of one, is bound to a table with that name; or the
|
|
10420
|
+
warehouse refused the drop because other objects depend on the
|
|
10421
|
+
table. Delete or replace that run, rebind that copy, or drop
|
|
10422
|
+
those objects first.
|
|
10235
10423
|
|
|
10236
10424
|
BUILD_INSTRUCTIONS_INVALID, on a 400 from creating a
|
|
10237
10425
|
materialization, means its body or build instructions are not a
|
|
@@ -10292,7 +10480,7 @@ components:
|
|
|
10292
10480
|
CONNECTION_AUTH_FAILED, CONNECTION_NOT_FOUND,
|
|
10293
10481
|
STORAGE_ACCESS_DENIED, PATH_ACCESS_DENIED, ACCESS_DENIED,
|
|
10294
10482
|
MATERIALIZATION_REFUSED, TABLE_OWNED_ELSEWHERE,
|
|
10295
|
-
TABLE_OWNERSHIP_UNVERIFIED, BUILD_INSTRUCTIONS_INVALID,
|
|
10483
|
+
TABLE_OWNERSHIP_UNVERIFIED, TABLE_IN_USE, BUILD_INSTRUCTIONS_INVALID,
|
|
10296
10484
|
MATERIALIZATION_CONFLICT, MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID,
|
|
10297
10485
|
VERSION_CONFLICT, PACKAGE_IS_VERSIONED,
|
|
10298
10486
|
PACKAGE_INSTALLED_FROM_LOCATION, FILE_EXISTS, VERSION_IS_LATEST,
|
|
@@ -10333,6 +10521,7 @@ components:
|
|
|
10333
10521
|
description: Name of the table
|
|
10334
10522
|
rowCount:
|
|
10335
10523
|
type: integer
|
|
10524
|
+
format: int64
|
|
10336
10525
|
description: Number of rows in the table
|
|
10337
10526
|
columns:
|
|
10338
10527
|
type: array
|
|
@@ -10676,8 +10865,12 @@ components:
|
|
|
10676
10865
|
default: false
|
|
10677
10866
|
description: >-
|
|
10678
10867
|
Build a new table even when a source's sourceEntityId is unchanged —
|
|
10679
|
-
that is, defeat skip-if-unchanged, which would otherwise carry
|
|
10680
|
-
|
|
10868
|
+
that is, defeat skip-if-unchanged, which would otherwise carry an
|
|
10869
|
+
unchanged table forward and run no SQL for that source. Not every
|
|
10870
|
+
unchanged table is carried: one whose source refreshes
|
|
10871
|
+
incrementally, one past its declared freshness window, and one
|
|
10872
|
+
whose stored relation reads the current time (the plan entry's
|
|
10873
|
+
`asOfBuild`) are rebuilt on every run without this flag.
|
|
10681
10874
|
|
|
10682
10875
|
It means ONLY that. It never re-seeds a source declaring
|
|
10683
10876
|
`refresh="incremental"`: such a source is exempt from
|
|
@@ -11478,6 +11671,19 @@ components:
|
|
|
11478
11671
|
advances its serving table by a bounded delta in place instead of
|
|
11479
11672
|
being rebuilt, so the mode also governs the build path — which is why
|
|
11480
11673
|
it is validated rather than passed through.
|
|
11674
|
+
asOfBuild:
|
|
11675
|
+
type: boolean
|
|
11676
|
+
description: >-
|
|
11677
|
+
True when this source's stored relation reads the current time
|
|
11678
|
+
(`now`, or a relative time filter string such as
|
|
11679
|
+
`f'last 7 days'`), so its table holds the rows as of its build
|
|
11680
|
+
and its answers are as of that build (a `#@ persist` source, a
|
|
11681
|
+
persisted view or a persisted named query; the package carries a
|
|
11682
|
+
`persist-reads-current-time` warning for it). Unchanged SQL does
|
|
11683
|
+
not mean unchanged rows, so such a table must be rebuilt on every
|
|
11684
|
+
run: a host that reuses a ready table by `sourceEntityId` must
|
|
11685
|
+
not reuse this one, and a standalone run never carries it
|
|
11686
|
+
forward. Absent otherwise.
|
|
11481
11687
|
freshness:
|
|
11482
11688
|
oneOf:
|
|
11483
11689
|
- $ref: "#/components/schemas/Freshness"
|
|
@@ -11563,10 +11769,23 @@ components:
|
|
|
11563
11769
|
quoted string (`merge_key="order_id, region"`).
|
|
11564
11770
|
|
|
11565
11771
|
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11772
|
+
* `lookback` — a duration (a positive whole number and one unit:
|
|
11773
|
+
`seconds`, `minutes`, `hours`, `days` or `weeks`, singular or
|
|
11774
|
+
plural, or `s`, `m`, `h`, `d` or `w`, as in `"2 days"` or `"36h"`;
|
|
11775
|
+
at most 365 days). Each delta of a `date` or `timestamp` watermark
|
|
11776
|
+
starts that much below the newest watermark the stored table holds,
|
|
11777
|
+
and the merge key matches the rows read again. Valid only with
|
|
11778
|
+
`refresh="incremental"`, a `date` or `timestamp` watermark and a
|
|
11779
|
+
`merge_key`; absent means no lookback.
|
|
11780
|
+
|
|
11781
|
+
|
|
11782
|
+
All three are checked at publish: `watermark` and `merge_key`
|
|
11783
|
+
against the compiled output schema, and `lookback` against its
|
|
11784
|
+
grammar, its limit and the keys it requires, so a dangling or stale
|
|
11785
|
+
name, or an invalid lookback, is rejected rather than deferred to a
|
|
11786
|
+
build. None participates in
|
|
11787
|
+
`sourceEntityId`: adding a watermark to an existing source must not
|
|
11788
|
+
re-address its table.
|
|
11570
11789
|
|
|
11571
11790
|
|
|
11572
11791
|
For a synthesized rollup (`origin: rollup`) the annotation was
|
|
@@ -12108,7 +12327,8 @@ components:
|
|
|
12108
12327
|
and bounds fail the same way on every attempt. It is reported for an
|
|
12109
12328
|
eligibility refusal (always, beside `refused`), a Malloy or SQL
|
|
12110
12329
|
compile defect (a syntax or parser error), a rejected credential or
|
|
12111
|
-
missing grant (permission or access denied),
|
|
12330
|
+
missing grant (a message that says permission or access denied), a
|
|
12331
|
+
warehouse's own data or syntax error, and a source refused under
|
|
12112
12332
|
`strictUpstreams` because a persisted upstream it reads failed
|
|
12113
12333
|
deterministically earlier in the same run. That last source
|
|
12114
12334
|
inherits its upstream's classification (`true` when any such
|
|
@@ -12118,6 +12338,20 @@ components:
|
|
|
12118
12338
|
recompute its stored upstreams from the warehouse.
|
|
12119
12339
|
|
|
12120
12340
|
|
|
12341
|
+
A warehouse's own data or syntax error is one the warehouse names
|
|
12342
|
+
as such: a Postgres or Snowflake SQLSTATE in class 22 (data
|
|
12343
|
+
exception) or 42 (syntax error or access rule violation), or a
|
|
12344
|
+
BigQuery `invalidQuery` or `invalid` job error, and a Postgres data
|
|
12345
|
+
exception that reaches Publisher as text only (through a DuckDB
|
|
12346
|
+
passthrough). Five SQLSTATEs in class 42 are left to the other rules:
|
|
12347
|
+
a missing table or column (`42P01`, `42703`, `42S02`, `42S22`, and
|
|
12348
|
+
a BigQuery `Unrecognized name` or `Not found`), which stays absent,
|
|
12349
|
+
and `42501` (insufficient privilege). A Postgres `42501` still
|
|
12350
|
+
reports `false`, because its message says permission denied; a
|
|
12351
|
+
Snowflake `42501` stays absent. Transient codes (`40001`, `40P01`,
|
|
12352
|
+
and BigQuery's backend and quota reasons) are never `false`.
|
|
12353
|
+
|
|
12354
|
+
|
|
12121
12355
|
`true` is a transient failure, not a property of the inputs: the
|
|
12122
12356
|
database could not be reached or reset the connection, a timeout,
|
|
12123
12357
|
a rate limit, the build session running out of memory (`Out of
|
|
@@ -12248,6 +12482,7 @@ components:
|
|
|
12248
12482
|
description: Retained; always `COPY`.
|
|
12249
12483
|
rowCount:
|
|
12250
12484
|
type: ["integer", "null"]
|
|
12485
|
+
format: int64
|
|
12251
12486
|
buildDurationMs:
|
|
12252
12487
|
type: ["integer", "null"]
|
|
12253
12488
|
description: >-
|
|
@@ -12265,6 +12500,7 @@ components:
|
|
|
12265
12500
|
the run's duration by whatever the orchestration cost.
|
|
12266
12501
|
queryCostBytes:
|
|
12267
12502
|
type: ["integer", "null"]
|
|
12503
|
+
format: int64
|
|
12268
12504
|
description: >-
|
|
12269
12505
|
Warehouse bytes SCANNED by the read that produced this table — the
|
|
12270
12506
|
recurring cost of keeping the source materialized, and the debit
|
|
@@ -12331,6 +12567,13 @@ components:
|
|
|
12331
12567
|
Not a location: it does not name the table the rows came from.
|
|
12332
12568
|
Absent for a source that reads no persisted upstream, which has one
|
|
12333
12569
|
way to build and no choice to report.
|
|
12570
|
+
|
|
12571
|
+
A database rollup reports what its build actually read: `reused`
|
|
12572
|
+
only when it built from its base's materialized table, and absent
|
|
12573
|
+
when it built from the warehouse, even over a persisted base. Before
|
|
12574
|
+
0.15.0 every rollup over a persisted base reported `reused`. A
|
|
12575
|
+
`storage=` rollup reports `reused` only when it stacked on a stored
|
|
12576
|
+
table.
|
|
12334
12577
|
upstreamRecomputeReason:
|
|
12335
12578
|
type: string
|
|
12336
12579
|
description: >-
|
|
@@ -12388,6 +12631,57 @@ components:
|
|
|
12388
12631
|
`refresh="full"`, or one whose declaration the delta path cannot act
|
|
12389
12632
|
on at all (an unsupported source dialect), which the publish
|
|
12390
12633
|
gate rejects anyway.
|
|
12634
|
+
lateRows:
|
|
12635
|
+
type: object
|
|
12636
|
+
required: [count, from, to]
|
|
12637
|
+
description: >-
|
|
12638
|
+
For a source this run advanced by a delta (`refresh` is `delta`):
|
|
12639
|
+
rows the source holds below where the delta started reading that
|
|
12640
|
+
the stored table lacks. A delta reads from the newest watermark
|
|
12641
|
+
the table holds (less the source's `lookback=`), so a row stamped
|
|
12642
|
+
below that, landing after the rows above it were stored, is never
|
|
12643
|
+
read, and the table undercounts it until it is rebuilt.
|
|
12644
|
+
|
|
12645
|
+
The check reads one window directly below the delta's start, as
|
|
12646
|
+
wide as the delta's own range, so it finds a row stamped within
|
|
12647
|
+
that window and not one older. With `merge_key=` a source row
|
|
12648
|
+
counts when no stored row has its keys and its watermark (a
|
|
12649
|
+
skipped restatement counts too); without one, it is the source's
|
|
12650
|
+
rows in the window less the table's.
|
|
12651
|
+
|
|
12652
|
+
The window is capped, for a date or timestamp watermark, at
|
|
12653
|
+
seven days or the source's `lookback=`, whichever is longer.
|
|
12654
|
+
|
|
12655
|
+
Carried until the source is rebuilt in full: a later delta or
|
|
12656
|
+
skip reports what earlier ones found (read from the manifest
|
|
12657
|
+
bound when it runs), with its own findings added to `count` and
|
|
12658
|
+
`to` moved up, and a slice is checked once, so a row is counted
|
|
12659
|
+
once, so `count` is a lower bound: a row that lands in a slice
|
|
12660
|
+
already checked is not counted. It stays until a full rebuild,
|
|
12661
|
+
even after a widened `lookback=` has written the rows. `from` is
|
|
12662
|
+
where the first such window started. Absent when
|
|
12663
|
+
nothing was found since the last full rebuild. The check is
|
|
12664
|
+
best-effort, and not run for a pair table, a string watermark or
|
|
12665
|
+
a `storage=` source on BigQuery: it gives up after 60 seconds,
|
|
12666
|
+
stopping its statement, and one that fails is
|
|
12667
|
+
logged and leaves what was carried. While the run's manifest is
|
|
12668
|
+
bound, the package also warns with code
|
|
12669
|
+
`persist-incremental-late-rows`.
|
|
12670
|
+
properties:
|
|
12671
|
+
count:
|
|
12672
|
+
type: integer
|
|
12673
|
+
format: int64
|
|
12674
|
+
description: Source rows in the window the stored table lacks.
|
|
12675
|
+
from:
|
|
12676
|
+
type: string
|
|
12677
|
+
description: >-
|
|
12678
|
+
Where the window starts (inclusive), as the watermark's value:
|
|
12679
|
+
ISO-8601 for a date or timestamp, decimal text for a number.
|
|
12680
|
+
to:
|
|
12681
|
+
type: string
|
|
12682
|
+
description: >-
|
|
12683
|
+
Where it ends (exclusive): the delta's lower bound, spelled as
|
|
12684
|
+
`from` is.
|
|
12391
12685
|
|
|
12392
12686
|
parameters:
|
|
12393
12687
|
includeHiddenFilesAndSources:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as r,C as t,j as e,a7 as i,aa as o}from"./index-
|
|
1
|
+
import{y as r,C as t,j as e,a7 as i,aa as o}from"./index-DLToSg1f.js";function m(){const s=r(),{environmentName:n}=t();if(n){const a=i({environmentName:n});return e.jsx(o,{onSelectPackage:s,resourceUri:a})}else return e.jsx("div",{children:e.jsx("h2",{children:"Missing environment name"})})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as t,j as o,I as a}from"./index-
|
|
1
|
+
import{y as t,j as o,I as a}from"./index-DLToSg1f.js";function s(){const n=t();return o.jsx(a,{onClickEnvironment:n})}export{s as default};
|