@malloy-publisher/server 0.18.7 → 0.18.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.docker.md +18 -18
- package/README.md +2 -2
- package/dist/admin-api-doc.yaml +10 -41
- package/dist/app/api-doc.yaml +292 -136
- package/dist/app/assets/{EnvironmentPage-nfT0sfcF.js → EnvironmentPage-B9eJXM9R.js} +1 -1
- package/dist/app/assets/{HomePage-CLVuGwtd.js → HomePage-CUCq65Mm.js} +1 -1
- package/dist/app/assets/{MainPage-BPN92PmE.js → MainPage-DMCpsSwG.js} +1 -1
- package/dist/app/assets/{ModelPage-BtYHo01_.js → ModelPage-CRpHJTqZ.js} +2 -2
- package/dist/app/assets/{PackagePage-BYTMF_z7.js → PackagePage-CrgssVfP.js} +1 -1
- package/dist/app/assets/PackageSplatRoute-Dh1u1dZ4.js +2 -0
- package/dist/app/assets/{RenderedResult-BkBdGb49.es-BeM14Cw6.js → RenderedResult-DW_0pVGi.es-CQe3gbdA.js} +3 -3
- package/dist/app/assets/{RouteError-O8rWhL-e.js → RouteError-C11mhFOT.js} +1 -1
- package/dist/app/assets/{ThemeEditorPage-BPlQ20Nk.js → ThemeEditorPage-CQdYTEul.js} +1 -1
- package/dist/app/assets/{ToggleButtonGroup-ZFDdg4WD.js → ToggleButtonGroup-CPXIFQqB.js} +1 -1
- package/dist/app/assets/{documentRoutes-D2CHPd13.js → documentRoutes-DarwM5Zm.js} +1 -1
- package/dist/app/assets/{editPageMounted-CK5o2lS_.js → editPageMounted-DmeRc7t9.js} +2 -2
- package/dist/app/assets/{index-BvIvG2Vi.js → index-BNAHVKoh.js} +1 -1
- package/dist/app/assets/{index-Dd4jjg8n.js → index-BX1A_FPA.js} +109 -109
- package/dist/app/assets/{index-w9WgUNKi.js → index-C0mf24Mk.js} +1 -1
- package/dist/app/assets/{index-m8b6Cq0X.js → index-CHCSj9_S.js} +1 -1
- package/dist/app/assets/{index.es-c9W9AVnk.js → index.es-B1q1T-14.js} +10 -10
- package/dist/app/assets/usePackageLinkNavigate-iOWW_Iek.js +1 -0
- package/dist/app/assets/{usePackageRoute-DZUIBpcE.js → usePackageRoute-BNCiKCRB.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/instrumentation.mjs +171 -88
- package/dist/package_load_worker.mjs +1226 -660
- package/dist/server.mjs +5992 -2644
- package/package.json +1 -1
- package/dist/app/assets/PackageSplatRoute-M9_ZKB-f.js +0 -2
- package/dist/app/assets/usePackageLinkNavigate-DFEdCQJt.js +0 -1
package/dist/app/api-doc.yaml
CHANGED
|
@@ -253,6 +253,8 @@ paths:
|
|
|
253
253
|
Creates a new Malloy environment with the specified configuration. An environment serves as a
|
|
254
254
|
container for packages, connections, and other resources. The environment will be initialized
|
|
255
255
|
with the provided metadata and can immediately accept packages and connections.
|
|
256
|
+
A name that differs only in letter case from an existing environment's is refused with a
|
|
257
|
+
400: on a case-insensitive file system both would resolve to one directory.
|
|
256
258
|
requestBody:
|
|
257
259
|
required: true
|
|
258
260
|
content:
|
|
@@ -338,6 +340,8 @@ paths:
|
|
|
338
340
|
Updates the configuration and metadata of an existing environment. This allows you to
|
|
339
341
|
modify environment settings, update the README, change the location, or update other
|
|
340
342
|
environment-level properties. The environment must exist and be accessible.
|
|
343
|
+
The update applies only to the environment the path names: a body whose `name` names
|
|
344
|
+
another environment is refused with a 400.
|
|
341
345
|
parameters:
|
|
342
346
|
- name: environmentName
|
|
343
347
|
in: path
|
|
@@ -477,7 +481,8 @@ paths:
|
|
|
477
481
|
operationId: create-connection
|
|
478
482
|
summary: Create a new database connection
|
|
479
483
|
description: |
|
|
480
|
-
Creates a new database connection in the specified environment
|
|
484
|
+
Creates a new database connection in the specified environment, named as the path names
|
|
485
|
+
it: a body whose `name` names another connection is refused with a 400.
|
|
481
486
|
parameters:
|
|
482
487
|
- name: environmentName
|
|
483
488
|
in: path
|
|
@@ -839,11 +844,19 @@ paths:
|
|
|
839
844
|
bytes and last modification time, each null where the catalog does not
|
|
840
845
|
record it. `method` says how the numbers were read; `rowCountBand`
|
|
841
846
|
appears only where the row count is an estimate (Postgres
|
|
842
|
-
`reltuples
|
|
843
|
-
|
|
844
|
-
or
|
|
845
|
-
|
|
846
|
-
|
|
847
|
+
`reltuples`; DuckLake where its catalog leaves deletes unaccounted).
|
|
848
|
+
Only a table has stats (on Postgres a partitioned table, its
|
|
849
|
+
partitions summed, or a materialized view too); a view, an index or
|
|
850
|
+
an external table answers `unsupported`. On DuckDB and MotherDuck the
|
|
851
|
+
row count is counted, and that answer writes an access record with
|
|
852
|
+
`decision: "ungated"`. A caller that declines the count (the MCP
|
|
853
|
+
`search_database_schema` tool) is answered DuckDB's row-group
|
|
854
|
+
estimate instead: `method` `catalog`, with a `rowCountBand`, and no
|
|
855
|
+
access record. A DuckLake connection reads its catalog's
|
|
856
|
+
metadata tables and never counts: `method` `catalog`, no access
|
|
857
|
+
record. Every stats read holds a query slot while it runs, a DuckLake
|
|
858
|
+
one included, since it loads the catalog's shared metadata database.
|
|
859
|
+
Metadata only: no field holds a row value. Answered for
|
|
847
860
|
Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake
|
|
848
861
|
connections; any other answers `status` `unsupported`. A `publisher`
|
|
849
862
|
proxy connection forwards the request and relays the answer with
|
|
@@ -1338,11 +1351,16 @@ paths:
|
|
|
1338
1351
|
bytes and last modification time, each null where the catalog does not
|
|
1339
1352
|
record it. `method` says how the numbers were read; `rowCountBand`
|
|
1340
1353
|
appears only where the row count is an estimate (Postgres
|
|
1341
|
-
`reltuples
|
|
1342
|
-
|
|
1343
|
-
or
|
|
1344
|
-
|
|
1345
|
-
|
|
1354
|
+
`reltuples`; DuckLake where its catalog leaves deletes unaccounted).
|
|
1355
|
+
Only a table has stats (on Postgres a partitioned table, its
|
|
1356
|
+
partitions summed, or a materialized view too); a view, an index or
|
|
1357
|
+
an external table answers `unsupported`. On DuckDB and MotherDuck the
|
|
1358
|
+
row count is counted, and that answer writes an access record with
|
|
1359
|
+
`decision: "ungated"`. A DuckLake connection reads its catalog's
|
|
1360
|
+
metadata tables and never counts: `method` `catalog`, no access
|
|
1361
|
+
record. Every stats read holds a query slot while it runs, a DuckLake
|
|
1362
|
+
one included, since it loads the catalog's shared metadata database.
|
|
1363
|
+
Metadata only: no field holds a row value. Answered for
|
|
1346
1364
|
Postgres, BigQuery, DuckDB, MotherDuck, DuckLake and Snowflake
|
|
1347
1365
|
connections; any other answers `status` `unsupported`. A `publisher`
|
|
1348
1366
|
proxy connection forwards the request and relays the answer with
|
|
@@ -1689,7 +1707,12 @@ paths:
|
|
|
1689
1707
|
424 refusal, or 200 with the package as it would load, its `warnings` included, plus the
|
|
1690
1708
|
`location` it was loaded from. The 200 also carries what a publish would build and serve:
|
|
1691
1709
|
the `buildPlan`, and `serveVerdicts`, each materialized source's serve verdict with each
|
|
1692
|
-
stored source's named views compiled against a compile-only served copy (no table is built)
|
|
1710
|
+
stored source's named views compiled against a compile-only served copy (no table is built),
|
|
1711
|
+
and `materializationSummary`, one line per materialized item as the publish would leave
|
|
1712
|
+
it, in the shape a package's serving state carries. Since the dry run builds and binds
|
|
1713
|
+
nothing, no item is `built` and none `serves`: each is `awaiting_build` (with `serves`
|
|
1714
|
+
`after_build`, or `live` and the reason it would answer live), `not_buildable`, or
|
|
1715
|
+
`refused` with its reason. The tree's `publisher.json`
|
|
1693
1716
|
must declare a valid version, as a versioned publish requires (400
|
|
1694
1717
|
`MANIFEST_VERSION_MISSING` or `MANIFEST_VERSION_INVALID`), and the 200 names it as
|
|
1695
1718
|
`versionId`. Version lifecycle checks (a version that already exists, `latest`) are not
|
|
@@ -1697,24 +1720,14 @@ paths:
|
|
|
1697
1720
|
package being served. A frozen configuration refuses a dry run as it refuses a publish,
|
|
1698
1721
|
since the server still downloads and loads the caller's content; so does memory
|
|
1699
1722
|
backpressure (503).
|
|
1700
|
-
A server runs at most 2 dry runs at once and refuses more with 503.
|
|
1701
|
-
|
|
1723
|
+
A server runs at most 2 dry runs at once and refuses more with 503. A
|
|
1724
|
+
`description` that is not a string or a
|
|
1702
1725
|
`manifestLocation` that names no manifest is the 400 a versioned
|
|
1703
1726
|
publish answers.
|
|
1704
1727
|
|
|
1705
1728
|
## Versioned publish
|
|
1706
1729
|
|
|
1707
|
-
|
|
1708
|
-
default; `ServerStatus.packageVersioning` reports it), and a transition: a later release
|
|
1709
|
-
removes the setting and always publishes versions.
|
|
1710
|
-
|
|
1711
|
-
With it off, a request that carries a `location` installs the package in place,
|
|
1712
|
-
replacing the previous publish, as before versions, whatever its `publisher.json`
|
|
1713
|
-
declares; the package has no versions, and the server logs a warning that names it. A
|
|
1714
|
-
package that already has published versions refuses that with 409 (`reason`
|
|
1715
|
-
`PACKAGE_IS_VERSIONED`).
|
|
1716
|
-
|
|
1717
|
-
With it on, a request that carries a `location` publishes an immutable version of the
|
|
1730
|
+
A request that carries a `location` publishes an immutable version of the
|
|
1718
1731
|
package: the one its own `publisher.json` declares. The request takes no version
|
|
1719
1732
|
parameter: the version is that field, the way `npm publish` reads `package.json`, so
|
|
1720
1733
|
bumping it is the release action.
|
|
@@ -1739,10 +1752,12 @@ paths:
|
|
|
1739
1752
|
hold immutable versions: publishing a version of it is refused with 400.
|
|
1740
1753
|
- The request's `description`, when sent, is the package's description. Each version
|
|
1741
1754
|
keeps the `description` from its own publisher.json.
|
|
1755
|
+
- An environment whose version registry is not bound yet (its database row was not
|
|
1756
|
+
written) refuses a publish, and a dry run, with 503 naming the environment. It never
|
|
1757
|
+
installs the package in place instead.
|
|
1742
1758
|
|
|
1743
1759
|
A request without a `location` registers a directory already in the environment as a
|
|
1744
|
-
single unversioned package
|
|
1745
|
-
versioning off. A
|
|
1760
|
+
single unversioned package. A
|
|
1746
1761
|
package that already has versions refuses that with 409 (`reason`
|
|
1747
1762
|
`PACKAGE_IS_VERSIONED`).
|
|
1748
1763
|
parameters:
|
|
@@ -1884,8 +1899,16 @@ paths:
|
|
|
1884
1899
|
naming the route that replaces it.
|
|
1885
1900
|
|
|
1886
1901
|
Updates the configuration and metadata of an existing package. This allows you to
|
|
1887
|
-
modify package settings, update the description,
|
|
1888
|
-
|
|
1902
|
+
modify package settings, update the description, or update other package-level
|
|
1903
|
+
properties. The package must exist and be accessible.
|
|
1904
|
+
|
|
1905
|
+
It does not install new content. A `location` other than the one the package was
|
|
1906
|
+
installed from (on a package with no versions: one an earlier release installed in
|
|
1907
|
+
place, or a directory registered without a location) is refused with 409 (`reason`
|
|
1908
|
+
`PACKAGE_NOT_VERSIONED`), and nothing of the request is applied: publish that location
|
|
1909
|
+
as a version instead (`create-package` with the `location`, and a semantic `version` in
|
|
1910
|
+
its publisher.json). A `location` equal to the installed one is a metadata update, and a
|
|
1911
|
+
reload fetches that location again.
|
|
1889
1912
|
|
|
1890
1913
|
A supplied `materialization` block REPLACES the one on disk, so re-send every
|
|
1891
1914
|
field of it you want to keep. Two exceptions are preserved when omitted:
|
|
@@ -1904,20 +1927,13 @@ paths:
|
|
|
1904
1927
|
|
|
1905
1928
|
A package fetched from a `location` keeps none of these on reload: a reload fetches
|
|
1906
1929
|
it again and replaces its files, `publisher.json` included, keeping only its
|
|
1907
|
-
`location` and manifest binding. So
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
`scope`, `queryMetadata` or `materialization` is refused with 409 (`reason`
|
|
1930
|
+
`location` and manifest binding. So on a package installed from a location, a
|
|
1931
|
+
change to `description`, `explores`, `queryableSources`, `scope`, `queryMetadata`
|
|
1932
|
+
or `materialization` is refused with 409 (`reason`
|
|
1911
1933
|
`PACKAGE_INSTALLED_FROM_LOCATION`). A change is judged by the value the request
|
|
1912
1934
|
would leave in force: clearing a set field is a change, a null is omitted, and a
|
|
1913
|
-
value equal to the current one (`explores` normalized as stored) is not.
|
|
1914
|
-
|
|
1915
|
-
refusal leaves the previous install serving. When the package it replaces was
|
|
1916
|
-
itself installed from a location, a field sent with that package's value is the
|
|
1917
|
-
package sent back, not a change: it is left out and the new tree's value serves,
|
|
1918
|
-
so a whole package read back with only its `location` changed is accepted.
|
|
1919
|
-
Make the change in the package's
|
|
1920
|
-
source and reload it, or publish it as a version.
|
|
1935
|
+
value equal to the current one (`explores` normalized as stored) is not. Make the
|
|
1936
|
+
change in the package's source and reload it, or publish it as a version.
|
|
1921
1937
|
parameters:
|
|
1922
1938
|
- name: environmentName
|
|
1923
1939
|
in: path
|
|
@@ -2029,7 +2045,7 @@ paths:
|
|
|
2029
2045
|
Lists every version published to the package, highest version first, including archived
|
|
2030
2046
|
ones (marked by `archiveStatus`). The entry marked `latest` is the version served when a
|
|
2031
2047
|
request names no `versionId`. An unversioned package (one registered from a directory,
|
|
2032
|
-
mounted in a watched environment, or
|
|
2048
|
+
mounted in a watched environment, or installed by an earlier release with versioning off) has no
|
|
2033
2049
|
versions and returns an empty list.
|
|
2034
2050
|
parameters:
|
|
2035
2051
|
- $ref: "#/components/parameters/environmentName"
|
|
@@ -3201,7 +3217,8 @@ paths:
|
|
|
3201
3217
|
BUILD_PLAN_UNAVAILABLE; reloading the package derives it again, and
|
|
3202
3218
|
retrying the read does not. After an edit to a connection the
|
|
3203
3219
|
package's persisted sources build on, the plan is re-derived (a
|
|
3204
|
-
content address folds in its connection's digest)
|
|
3220
|
+
content address folds in its connection's digest), or once a
|
|
3221
|
+
container it refused sources for now exists, and the read waits
|
|
3205
3222
|
for it; past 10 seconds it answers 503 with `reason`
|
|
3206
3223
|
BUILD_PLAN_REFRESHING and a `Retry-After` header. A failed
|
|
3207
3224
|
re-derivation answers 409 BUILD_PLAN_UNAVAILABLE, as at load, and run
|
|
@@ -4389,6 +4406,9 @@ components:
|
|
|
4389
4406
|
content. Bump the `version` in publisher.json and publish again.
|
|
4390
4407
|
* PACKAGE_IS_VERSIONED: the package has published versions, which are
|
|
4391
4408
|
immutable, so it cannot be changed in place.
|
|
4409
|
+
* PACKAGE_NOT_VERSIONED: a package update named a new `location` for a
|
|
4410
|
+
package with no versions, which is not installed in place. Publish the
|
|
4411
|
+
location as a version instead.
|
|
4392
4412
|
* PACKAGE_INSTALLED_FROM_LOCATION: the package is fetched again from
|
|
4393
4413
|
the location it was installed from on reload, which would discard
|
|
4394
4414
|
the change. Make it in the package's source and reload.
|
|
@@ -4835,18 +4855,6 @@ components:
|
|
|
4835
4855
|
This server's release version, for example "0.8.2". Use it to tell
|
|
4836
4856
|
which build answered, for instance to rule out an old copy served
|
|
4837
4857
|
from the npx cache.
|
|
4838
|
-
packageVersioning:
|
|
4839
|
-
type: string
|
|
4840
|
-
enum: ["off", "on"]
|
|
4841
|
-
readOnly: true
|
|
4842
|
-
description: >-
|
|
4843
|
-
"on" when a publish from a location publishes an immutable
|
|
4844
|
-
version (`PUBLISHER_PACKAGE_VERSIONING=on`, the default); "off" when
|
|
4845
|
-
it installs the package in place, as before versions
|
|
4846
|
-
(`PUBLISHER_PACKAGE_VERSIONING=off`). Reads and the versions
|
|
4847
|
-
routes answer in both. Absent from a server that predates
|
|
4848
|
-
versions, which reads as "off": how an orchestrator talking to
|
|
4849
|
-
servers mid-rollout tells which ones publish native versions.
|
|
4850
4858
|
versionPromotion:
|
|
4851
4859
|
type: string
|
|
4852
4860
|
enum: ["on-publish", "explicit"]
|
|
@@ -5246,7 +5254,8 @@ components:
|
|
|
5246
5254
|
installed in place) whose tables this server builds itself.
|
|
5247
5255
|
`published`: a published version, or a package whose tables a host's
|
|
5248
5256
|
manifest bound. `simulated`: a package simulated materialization
|
|
5249
|
-
serves, its tables predicted and never built
|
|
5257
|
+
serves, its tables predicted and never built, every query routed to
|
|
5258
|
+
one answered from live.
|
|
5250
5259
|
`draft` is reserved for a later release. A client must accept a value
|
|
5251
5260
|
it does not know.
|
|
5252
5261
|
|
|
@@ -5270,22 +5279,52 @@ components:
|
|
|
5270
5279
|
type: object
|
|
5271
5280
|
description: >-
|
|
5272
5281
|
One fact about an item's table, and how it is known. `basis` is
|
|
5273
|
-
`exact` for a fact read off a table that exists
|
|
5274
|
-
`
|
|
5275
|
-
|
|
5282
|
+
`exact` for a fact read off a table that exists, or off column
|
|
5283
|
+
metadata; `predicted` for one simulated materialization predicts
|
|
5284
|
+
without building; `not_knowable_locally` for one that depends on what
|
|
5285
|
+
only the host knows (its build times, limits, catalogs), for which
|
|
5286
|
+
`value` says why.
|
|
5276
5287
|
required: [fact, value, basis]
|
|
5277
5288
|
properties:
|
|
5278
5289
|
fact:
|
|
5279
5290
|
type: string
|
|
5280
5291
|
description: >-
|
|
5281
5292
|
Which fact: `table` (the physical table a query reads, present
|
|
5282
|
-
once built) or `builtAt` (when that table was built).
|
|
5293
|
+
once built) or `builtAt` (when that table was built). Under
|
|
5294
|
+
simulated materialization also `storedTypes`, `collation`,
|
|
5295
|
+
`rowCount`, `bytes`, `keyUniqueness`, `freshness`, `limits`,
|
|
5296
|
+
`sameCatalog`, `managed`, `buildCost` and `reuse`. An open
|
|
5283
5297
|
string: a client must skip a fact it does not know.
|
|
5284
5298
|
value:
|
|
5285
5299
|
type: string
|
|
5286
5300
|
basis:
|
|
5287
5301
|
type: string
|
|
5288
5302
|
enum: [exact, predicted, not_knowable_locally]
|
|
5303
|
+
method:
|
|
5304
|
+
type: string
|
|
5305
|
+
description: >-
|
|
5306
|
+
How the fact was obtained, where that is more than reading a
|
|
5307
|
+
built table: `described` (the build SQL's output as the warehouse
|
|
5308
|
+
describes it, never run), `declared` (the build source's declared
|
|
5309
|
+
output), `catalog`, `estimated` or `counted` (the table stats
|
|
5310
|
+
route's methods), `build_sql` (read off the build SQL without
|
|
5311
|
+
running it), `aggregate` (one aggregate per key check: the
|
|
5312
|
+
`COUNT(*)` of the rows the build's own check SQL finds, or, for a
|
|
5313
|
+
`storage=` table's own key, `count()` against `count(distinct
|
|
5314
|
+
key)` over the rows its build SQL selects; only counts come back),
|
|
5315
|
+
`address` (the content address).
|
|
5316
|
+
Metadata is read with the author's own credentials. An open
|
|
5317
|
+
string.
|
|
5318
|
+
band:
|
|
5319
|
+
type: object
|
|
5320
|
+
description: >-
|
|
5321
|
+
Where a fact is approximate, its spread; an upper bound sets
|
|
5322
|
+
only `high`.
|
|
5323
|
+
properties:
|
|
5324
|
+
low:
|
|
5325
|
+
type: string
|
|
5326
|
+
high:
|
|
5327
|
+
type: string
|
|
5289
5328
|
|
|
5290
5329
|
MaterializationItem:
|
|
5291
5330
|
type: object
|
|
@@ -5321,6 +5360,13 @@ components:
|
|
|
5321
5360
|
`sourceName@modelPath`, package-relative: the `BuildPlan.sources`
|
|
5322
5361
|
key with its file URL read relative to the package, so it names no
|
|
5323
5362
|
place the server keeps files.
|
|
5363
|
+
sourceEntityId:
|
|
5364
|
+
type: string
|
|
5365
|
+
description: >-
|
|
5366
|
+
The content address its table is built under: the key of a build
|
|
5367
|
+
manifest's `entries` and `failures`, so a run's manifest can be
|
|
5368
|
+
matched to its items. Absent for an item the plan never addressed
|
|
5369
|
+
(a refused one).
|
|
5324
5370
|
modelPath:
|
|
5325
5371
|
type: string
|
|
5326
5372
|
description: The package-relative model that declares it.
|
|
@@ -5391,6 +5437,11 @@ components:
|
|
|
5391
5437
|
type: array
|
|
5392
5438
|
items:
|
|
5393
5439
|
$ref: "#/components/schemas/MaterializationFact"
|
|
5440
|
+
readsThrough:
|
|
5441
|
+
$ref: "#/components/schemas/ReadsThrough"
|
|
5442
|
+
description: >-
|
|
5443
|
+
On a `refused` item, as `ServeVerdict.readsThrough`: the stored
|
|
5444
|
+
source whose table answers its queries through the served copy.
|
|
5394
5445
|
|
|
5395
5446
|
MaterializationSummary:
|
|
5396
5447
|
type: object
|
|
@@ -5408,6 +5459,13 @@ components:
|
|
|
5408
5459
|
type: array
|
|
5409
5460
|
items:
|
|
5410
5461
|
$ref: "#/components/schemas/MaterializationItem"
|
|
5462
|
+
hiddenItems:
|
|
5463
|
+
type: integer
|
|
5464
|
+
description: >-
|
|
5465
|
+
Set only on `GET …/packages/{packageName}/status`: the items
|
|
5466
|
+
`items` leaves out because they are not on the package's
|
|
5467
|
+
published surface, by the rule `MaterializationDigest.hiddenNotServed`
|
|
5468
|
+
follows. Counted, never named; `counts` still counts them.
|
|
5411
5469
|
|
|
5412
5470
|
MaterializationDigest:
|
|
5413
5471
|
type: object
|
|
@@ -5646,19 +5704,8 @@ components:
|
|
|
5646
5704
|
the like), the verdict's own `reason`, or `not_rerooted` when none
|
|
5647
5705
|
names one. With a `served_copy` `servePath`: `through_base` (an
|
|
5648
5706
|
extension of a re-rooted source, left as written, which reads that
|
|
5649
|
-
source's table by name
|
|
5650
|
-
|
|
5651
|
-
type: string
|
|
5652
|
-
deprecated: true
|
|
5653
|
-
description: >-
|
|
5654
|
-
Deprecated: the same value as `servePath`, under its old name.
|
|
5655
|
-
Emitted beside it for this release only.
|
|
5656
|
-
cutoverReason:
|
|
5657
|
-
type: string
|
|
5658
|
-
deprecated: true
|
|
5659
|
-
description: >-
|
|
5660
|
-
Deprecated: the same value as `servePathReason`, under its old
|
|
5661
|
-
name. Emitted beside it for this release only.
|
|
5707
|
+
source's table by name, a plan-refused one with `readsThrough`
|
|
5708
|
+
included). An open string.
|
|
5662
5709
|
views:
|
|
5663
5710
|
type: array
|
|
5664
5711
|
description: >-
|
|
@@ -5669,6 +5716,47 @@ components:
|
|
|
5669
5716
|
reproduce).
|
|
5670
5717
|
items:
|
|
5671
5718
|
$ref: "#/components/schemas/ViewServeVerdict"
|
|
5719
|
+
readsThrough:
|
|
5720
|
+
$ref: "#/components/schemas/ReadsThrough"
|
|
5721
|
+
description: >-
|
|
5722
|
+
With a `refused` reason: present when the source has no table of
|
|
5723
|
+
its own but the served copy answers its queries from the table of
|
|
5724
|
+
a stored source it refines (by `extend` or rename, never across a
|
|
5725
|
+
query), with that source's row-level gate applied, so a query on
|
|
5726
|
+
it reports `path.servedBy.kind: materialized` with
|
|
5727
|
+
`via: served_copy`. `verdict` and `reason` still describe its own
|
|
5728
|
+
table, which is never built. Read off the compiled served copies
|
|
5729
|
+
and the build plan as they stand, never by running a query; absent
|
|
5730
|
+
when no served copy reads it through a base (the base is reached
|
|
5731
|
+
across a query, the served copy declines the base or the source
|
|
5732
|
+
itself for a gate, or the copy has yet to compile). On a dry run
|
|
5733
|
+
it is judged from the preview's served copy, compiled over
|
|
5734
|
+
bindings declared from the plan, as `servePath` is, and such a
|
|
5735
|
+
source's `servePath` is `served_copy` with `servePathReason`
|
|
5736
|
+
`through_base`.
|
|
5737
|
+
|
|
5738
|
+
ReadsThrough:
|
|
5739
|
+
type: object
|
|
5740
|
+
description: >-
|
|
5741
|
+
The stored source a refused refinement is read through, and the table
|
|
5742
|
+
that answers its queries.
|
|
5743
|
+
required: [sourceName, sourceID]
|
|
5744
|
+
properties:
|
|
5745
|
+
sourceName:
|
|
5746
|
+
type: string
|
|
5747
|
+
description: The stored source it refines, by name.
|
|
5748
|
+
sourceID:
|
|
5749
|
+
type: string
|
|
5750
|
+
description: >-
|
|
5751
|
+
That source's identity, as `ServeVerdict.sourceID` gives one
|
|
5752
|
+
(package-relative on a `MaterializationItem`, as its own
|
|
5753
|
+
`sourceID` is): a name alone is ambiguous across models.
|
|
5754
|
+
tableId:
|
|
5755
|
+
type: string
|
|
5756
|
+
description: >-
|
|
5757
|
+
That source's table: its `sourceEntityId` in the build plan, the
|
|
5758
|
+
`tableId` a query's `path.servedBy` names when this table answers
|
|
5759
|
+
it. Absent when the plan does not address the source.
|
|
5672
5760
|
|
|
5673
5761
|
NotServedIn:
|
|
5674
5762
|
type: object
|
|
@@ -5688,7 +5776,7 @@ components:
|
|
|
5688
5776
|
Every reason the served copy gives for not reading the source's
|
|
5689
5777
|
table in this model: the `reason` of each `served-copy-not-served`
|
|
5690
5778
|
package warning on that model that names the source or the model's
|
|
5691
|
-
whole copy, the codes `
|
|
5779
|
+
whole copy, the codes `publisher_served_copy_outcome_total` counts,
|
|
5692
5780
|
most actionable first (for example `cross_connection_join` before
|
|
5693
5781
|
`fields_not_carried`): `cross_connection_join`,
|
|
5694
5782
|
`cross_connection_unbuilt`, `sql_embed_cross_connection` (a
|
|
@@ -5697,13 +5785,22 @@ components:
|
|
|
5697
5785
|
catalog read through one), `sql_embed_bare` (a `.sql()`
|
|
5698
5786
|
source embeds it bare, `%{ x }`, which its stored table cannot be
|
|
5699
5787
|
embedded as), `inline_join_kept`,
|
|
5700
|
-
`read_terms_not_kept`, `
|
|
5701
|
-
|
|
5788
|
+
`read_terms_not_kept`, `refinement_left_as_written` (declared by
|
|
5789
|
+
refinement alone over a base whose filter or gate its table does
|
|
5790
|
+
not hold, and reading no re-rooted base), `fields_not_carried`,
|
|
5791
|
+
`column_types`, `classification_not_kept`, `pair_join_not_found`,
|
|
5702
5792
|
`pair_not_compiled`, `definition_not_parsed`, `compile_failed`,
|
|
5703
|
-
`no_declaration`, `reroot_not_compiled`.
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5793
|
+
`no_declaration`, `reroot_not_compiled`. With no warning naming
|
|
5794
|
+
one, `inherited_gate` alone (it is re-rooted, or read through a
|
|
5795
|
+
re-rooted base, but a row-level gate declared on a source the
|
|
5796
|
+
re-root replaces cannot be grafted on the copy, so its queries
|
|
5797
|
+
are answered live, under that gate), `through_base` alone (a
|
|
5798
|
+
refinement left as written by design, which reads the re-rooted
|
|
5799
|
+
source it refines by name, so that source's table answers its
|
|
5800
|
+
queries and its own is unread), or `not_rerooted` alone (no
|
|
5801
|
+
reason at all, a Publisher defect; also `servePathReason`'s
|
|
5802
|
+
value for that case). Never empty. An open set: treat an
|
|
5803
|
+
unknown value as `not_rerooted`.
|
|
5707
5804
|
ViewServeVerdict:
|
|
5708
5805
|
type: object
|
|
5709
5806
|
required: [view, verdict]
|
|
@@ -5957,6 +6054,18 @@ components:
|
|
|
5957
6054
|
views checked as well.
|
|
5958
6055
|
items:
|
|
5959
6056
|
$ref: "#/components/schemas/ServeVerdict"
|
|
6057
|
+
materializationSummary:
|
|
6058
|
+
readOnly: true
|
|
6059
|
+
$ref: "#/components/schemas/MaterializationSummary"
|
|
6060
|
+
description: >-
|
|
6061
|
+
Server-computed, read-only: each materialized item of the loaded
|
|
6062
|
+
copy on the package's published surface, with its tier,
|
|
6063
|
+
destination, state, whether queries are answered from it, and why
|
|
6064
|
+
not, as a reload's response carries it. An item off that surface
|
|
6065
|
+
is counted in `hiddenItems`, never named, as the `/status` digest
|
|
6066
|
+
counts it. Recomputed on every read, like `serveVerdicts`. Absent
|
|
6067
|
+
when the package materializes nothing or no copy is loaded.
|
|
6068
|
+
`malloy-pub materialize --wait` prints it when a run settles.
|
|
5960
6069
|
|
|
5961
6070
|
PackageStatusEntry:
|
|
5962
6071
|
description: |
|
|
@@ -6048,8 +6157,9 @@ components:
|
|
|
6048
6157
|
Set on a loaded copy that materializes anything: counts of its
|
|
6049
6158
|
materialized items by state, and the ones not answered from a
|
|
6050
6159
|
table, with reason codes. Recomputed at most every few seconds.
|
|
6051
|
-
The full rows are on the reload response
|
|
6052
|
-
`package`
|
|
6160
|
+
The full rows are on the reload response, `compile` at scope
|
|
6161
|
+
`package`, and `GET …/packages/{packageName}/status`
|
|
6162
|
+
(`materializationSummary`).
|
|
6053
6163
|
|
|
6054
6164
|
ServerStatusEnvironment:
|
|
6055
6165
|
type: object
|
|
@@ -6222,10 +6332,12 @@ components:
|
|
|
6222
6332
|
readOnly: true
|
|
6223
6333
|
$ref: "#/components/schemas/MaterializationSummary"
|
|
6224
6334
|
description: >-
|
|
6225
|
-
Set only on the response of a reload (`?reload=true`)
|
|
6226
|
-
package materializes anything:
|
|
6227
|
-
tier, destination, state, whether
|
|
6228
|
-
and why not.
|
|
6335
|
+
Set only on the response of a reload (`?reload=true`) or a dry-run
|
|
6336
|
+
publish (`?dryRun=true`), when the package materializes anything:
|
|
6337
|
+
each materialized item, with its tier, destination, state, whether
|
|
6338
|
+
queries are answered from it, and why not. A dry run builds and
|
|
6339
|
+
binds nothing, so none of its items is `built` or `serves`.
|
|
6340
|
+
Ignored on create and update requests.
|
|
6229
6341
|
warnings:
|
|
6230
6342
|
type: array
|
|
6231
6343
|
readOnly: true
|
|
@@ -6588,6 +6700,7 @@ components:
|
|
|
6588
6700
|
`column_types`, `no_declaration`, `definition_not_parsed`,
|
|
6589
6701
|
`pair_join_not_found`, `pair_not_compiled`,
|
|
6590
6702
|
`fields_not_carried`, `read_terms_not_kept`,
|
|
6703
|
+
`refinement_left_as_written`,
|
|
6591
6704
|
`cross_connection_join`, `inline_join_kept`,
|
|
6592
6705
|
`reroot_not_compiled`, `classification_not_kept`,
|
|
6593
6706
|
`sql_embed_cross_connection`, `sql_embed_bare`; an
|
|
@@ -9469,6 +9582,27 @@ components:
|
|
|
9469
9582
|
author's own files with each stored source re-rooted on its
|
|
9470
9583
|
table). An open string; absent
|
|
9471
9584
|
otherwise.
|
|
9585
|
+
mode:
|
|
9586
|
+
$ref: "#/components/schemas/MaterializationMode"
|
|
9587
|
+
tableSql:
|
|
9588
|
+
type: string
|
|
9589
|
+
description: >-
|
|
9590
|
+
The SQL that reads the table that answered, in every mode. Under
|
|
9591
|
+
simulated materialization it is what would have run, since the
|
|
9592
|
+
table does not exist and the rows came from live. Given only in
|
|
9593
|
+
the full response, beside the result's own `sql`: a
|
|
9594
|
+
`compactJson` response carries no SQL, so it leaves this out.
|
|
9595
|
+
Absent too when `kind` is `live`, or when the SQL could not be
|
|
9596
|
+
prepared.
|
|
9597
|
+
measuredOn:
|
|
9598
|
+
type: string
|
|
9599
|
+
enum: [table, live]
|
|
9600
|
+
description: >-
|
|
9601
|
+
What the query's rows, latency and cost were measured on: `table`,
|
|
9602
|
+
the table that answered; `live`, the warehouse (a simulated
|
|
9603
|
+
table, or a stored run that fell back to live). A latency or cost
|
|
9604
|
+
measured on `live` is never the table's. Absent when `kind` is
|
|
9605
|
+
`live`.
|
|
9472
9606
|
|
|
9473
9607
|
QueryPathCandidate:
|
|
9474
9608
|
type: object
|
|
@@ -9575,11 +9709,9 @@ components:
|
|
|
9575
9709
|
- TIME_ZONE
|
|
9576
9710
|
- CROSS_CONNECTION
|
|
9577
9711
|
- COUNT_SEMANTICS
|
|
9712
|
+
- COMPARISON_SEMANTICS
|
|
9578
9713
|
- STALE
|
|
9579
9714
|
- READ_FAILED
|
|
9580
|
-
- WARNED
|
|
9581
|
-
- CONTRACT
|
|
9582
|
-
- RUN_FAILED
|
|
9583
9715
|
description: >-
|
|
9584
9716
|
Why a table could not answer a query. `NOT_BUILT`, it is not bound to
|
|
9585
9717
|
this package yet; `NOT_SERVED`, either its serve verdict is `live`,
|
|
@@ -9595,18 +9727,31 @@ components:
|
|
|
9595
9727
|
than live, or the source's ungated `where:` reads a column the table
|
|
9596
9728
|
does not hold exactly or does not compare as its source does (a
|
|
9597
9729
|
zoned timestamp, or a collation: on Postgres a database table's
|
|
9598
|
-
stored collation that differs from its source's or cannot be read)
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9730
|
+
stored collation that differs from its source's or cannot be read),
|
|
9731
|
+
the caller's own filters or the result's string ordering or grouping
|
|
9732
|
+
compare a string the table does not compare as its source does, or
|
|
9733
|
+
an access decision (a gate, or a given) would read a table stored as
|
|
9734
|
+
of its build. A database table is `NOT_SERVED` this way only for
|
|
9735
|
+
those last cases, with a `detail` and no `code`. A query that itself
|
|
9736
|
+
names a column a stored table leaves out is `MISSING_FIELD`, and a
|
|
9737
|
+
gate the table cannot keep is `ROW_LEVEL_GATE`; `OPTED_OUT`, the queried source opts out of its tables with
|
|
9603
9738
|
`#@ -persist`; `MISSING_FIELD`, the query reads a field the table
|
|
9604
9739
|
lacks (or otherwise does not compile against it); `SHAPE_MISMATCH`,
|
|
9605
9740
|
the query is not the shape the stored result answers: it is not a
|
|
9606
9741
|
call of the persisted view or query, it refines the call, or its text
|
|
9607
9742
|
names beside the call a name the stored result's variant takes over;
|
|
9608
9743
|
`ROW_LEVEL_GATE`, answering from it would bypass a row-level gate on
|
|
9609
|
-
the queried source
|
|
9744
|
+
the queried source, or, from a rollup, persisted view or persisted
|
|
9745
|
+
query, the source's ungated `where:` reads a column the table does
|
|
9746
|
+
not hold exactly or does not compare as its source does, or an
|
|
9747
|
+
access decision (a gate, or a given) would read a table stored as of
|
|
9748
|
+
its build; `COMPARISON_SEMANTICS`, from a rollup, persisted view or
|
|
9749
|
+
persisted query, the caller's own filters, or the string the result
|
|
9750
|
+
orders or groups by, compare a string the table does not compare as
|
|
9751
|
+
the source does (a collation, or a zoned timestamp), or could not be
|
|
9752
|
+
read to tell (releases through 0.18.7 said `ROW_LEVEL_GATE` for
|
|
9753
|
+
these on a rollup or past a gate, and `MISSING_FIELD` on a persisted
|
|
9754
|
+
view or query); `GRAIN_TOO_COARSE`, a rollup's grain does not
|
|
9610
9755
|
cover the query's groups or filters; `TIME_ZONE`, it was built in
|
|
9611
9756
|
another time zone than the query's; `CROSS_CONNECTION`, the query
|
|
9612
9757
|
needs a join the table's connection cannot reach; `COUNT_SEMANTICS`,
|
|
@@ -9618,11 +9763,8 @@ components:
|
|
|
9618
9763
|
destination holds, or a destination catalog missing on the worker).
|
|
9619
9764
|
|
|
9620
9765
|
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
`ROW_LEVEL_GATE`; `RUN_FAILED`, now `READ_FAILED`. A closed list to
|
|
9624
|
-
which codes may be added, so a client treats an unknown one as a
|
|
9625
|
-
skip it cannot explain.
|
|
9766
|
+
A closed list to which codes may be added, so a client treats an
|
|
9767
|
+
unknown one as a skip it cannot explain.
|
|
9626
9768
|
|
|
9627
9769
|
LogMessage:
|
|
9628
9770
|
type: object
|
|
@@ -10904,15 +11046,18 @@ components:
|
|
|
10904
11046
|
The package-version values let a caller tell "forgot to bump the
|
|
10905
11047
|
version" from "the model is broken", which share a status code:
|
|
10906
11048
|
|
|
10907
|
-
* MANIFEST_VERSION_MISSING (400):
|
|
10908
|
-
|
|
11049
|
+
* MANIFEST_VERSION_MISSING (400): a publish whose publisher.json
|
|
11050
|
+
has no `version`.
|
|
10909
11051
|
* MANIFEST_VERSION_INVALID (400): such a publish whose `version`
|
|
10910
11052
|
is not a semantic version.
|
|
10911
11053
|
* VERSION_CONFLICT (409): that version is already published with
|
|
10912
11054
|
different content.
|
|
10913
11055
|
* PACKAGE_IS_VERSIONED (409): the package has published versions,
|
|
10914
|
-
so it cannot be changed in place (a write, or a
|
|
10915
|
-
|
|
11056
|
+
so it cannot be changed in place (a write, or registering a
|
|
11057
|
+
directory under its name).
|
|
11058
|
+
* PACKAGE_NOT_VERSIONED (409): a package update named a new
|
|
11059
|
+
`location` for a package with no versions; new content from a
|
|
11060
|
+
location is published as a version, not installed in place.
|
|
10916
11061
|
* PACKAGE_INSTALLED_FROM_LOCATION (409): the package is fetched
|
|
10917
11062
|
again from a `location` on reload, which would discard a report
|
|
10918
11063
|
write or a package update's change to its settings.
|
|
@@ -10941,7 +11086,7 @@ components:
|
|
|
10941
11086
|
MATERIALIZATION_REFUSED, TABLE_OWNED_ELSEWHERE,
|
|
10942
11087
|
TABLE_OWNERSHIP_UNVERIFIED, TABLE_IN_USE, BUILD_INSTRUCTIONS_INVALID,
|
|
10943
11088
|
MATERIALIZATION_CONFLICT, MANIFEST_VERSION_MISSING, MANIFEST_VERSION_INVALID,
|
|
10944
|
-
VERSION_CONFLICT, PACKAGE_IS_VERSIONED,
|
|
11089
|
+
VERSION_CONFLICT, PACKAGE_IS_VERSIONED, PACKAGE_NOT_VERSIONED,
|
|
10945
11090
|
PACKAGE_INSTALLED_FROM_LOCATION, FILE_EXISTS, VERSION_IS_LATEST,
|
|
10946
11091
|
VERSION_IS_LAST_ACTIVE, VERSION_BUILDING, VERSION_ID_INVALID,
|
|
10947
11092
|
VERSION_NOT_LATEST, VERSION_NOT_FOUND, VERSION_ARCHIVED,
|
|
@@ -11004,10 +11149,15 @@ components:
|
|
|
11004
11149
|
rowCountBand:
|
|
11005
11150
|
type: object
|
|
11006
11151
|
description: |
|
|
11007
|
-
Present only when `rowCount` is an estimate
|
|
11152
|
+
Present only when `rowCount` is an estimate. Postgres: the spread
|
|
11008
11153
|
of the catalog's own estimates (`reltuples`, that value scaled to
|
|
11009
11154
|
the table's current pages, and the statistics collector's live-row
|
|
11010
|
-
count).
|
|
11155
|
+
count). DuckLake, where its catalog leaves deletes unaccounted:
|
|
11156
|
+
`high` is `rowCount`, which counts them as nothing, and `low` takes
|
|
11157
|
+
off the most they could remove. DuckDB and MotherDuck, where the
|
|
11158
|
+
count is declined: `high` is `rowCount`, DuckDB's `estimated_size`
|
|
11159
|
+
(the rows its row groups hold, which a delete does not lower),
|
|
11160
|
+
and `low` is 0. It is not a confidence interval.
|
|
11011
11161
|
required:
|
|
11012
11162
|
- low
|
|
11013
11163
|
- high
|
|
@@ -11021,11 +11171,11 @@ components:
|
|
|
11021
11171
|
bytes:
|
|
11022
11172
|
type: ["integer", "null"]
|
|
11023
11173
|
format: int64
|
|
11024
|
-
description: The table's stored bytes (Postgres, its total relation size with indexes and TOAST); null when not recorded.
|
|
11174
|
+
description: The table's stored bytes (Postgres, its total relation size with indexes and TOAST; DuckLake, its live data and delete files); null when not recorded.
|
|
11025
11175
|
lastModified:
|
|
11026
11176
|
type: ["string", "null"]
|
|
11027
11177
|
format: date-time
|
|
11028
|
-
description: When the table's data last changed; null when the catalog does not record it.
|
|
11178
|
+
description: When the table's data last changed; null when the catalog does not record it. On DuckLake, the latest snapshot that wrote or retired the table's storage (a compaction or a flush included); it may be null, or earlier than the true last write, after snapshot expiry.
|
|
11029
11179
|
|
|
11030
11180
|
Column:
|
|
11031
11181
|
type: object
|
|
@@ -11749,17 +11899,10 @@ components:
|
|
|
11749
11899
|
set aside); `materialize_companion_failed` (the generated
|
|
11750
11900
|
`#(materialize)` companion did not plan or compile);
|
|
11751
11901
|
`persisted_view_companion_failed` (the persisted-view companion
|
|
11752
|
-
did not plan or compile); `
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
`persist_companion_failed` (planning a model file's `#@ persist`
|
|
11757
|
-
sources failed, so none of the ones it declares were planned; the
|
|
11758
|
-
file's other legs and the package's other files still plan);
|
|
11759
|
-
`persist_annotation_unparseable` is retained and no longer
|
|
11760
|
-
produced: a `#@` line that does not parse is an invalid annotation
|
|
11761
|
-
(`persist-unparseable`), which fails the publish and the load, so
|
|
11762
|
-
no served plan carries it.
|
|
11902
|
+
did not plan or compile); `persist_companion_failed` (planning a
|
|
11903
|
+
model file's `#@ persist` sources failed, so none of the ones it
|
|
11904
|
+
declares were planned; the file's other legs and the package's
|
|
11905
|
+
other files still plan).
|
|
11763
11906
|
|
|
11764
11907
|
OmittedFile:
|
|
11765
11908
|
type: object
|
|
@@ -11855,9 +11998,6 @@ components:
|
|
|
11855
11998
|
free_parameter,
|
|
11856
11999
|
given,
|
|
11857
12000
|
given_in_persisted_query,
|
|
11858
|
-
dynamic_projection,
|
|
11859
|
-
dynamic_join,
|
|
11860
|
-
dynamic_joined_where,
|
|
11861
12001
|
inherited_where_with_given,
|
|
11862
12002
|
partition_without_storage,
|
|
11863
12003
|
partition_column_unknown,
|
|
@@ -11898,12 +12038,24 @@ components:
|
|
|
11898
12038
|
upstream_unread,
|
|
11899
12039
|
upstream_table_unusable,
|
|
11900
12040
|
container_not_found,
|
|
12041
|
+
bound_invocation_unkeyable,
|
|
12042
|
+
address_unresolved,
|
|
11901
12043
|
]
|
|
11902
12044
|
description: >-
|
|
11903
12045
|
The bounded refusal reason; `message` says the specifics.
|
|
11904
12046
|
|
|
11905
12047
|
|
|
11906
|
-
On every mechanism: `free_parameter
|
|
12048
|
+
On every mechanism: `free_parameter` (the source declares a
|
|
12049
|
+
parameter left unbound: a source with one is never stored,
|
|
12050
|
+
whether or not its rows read it); `bound_invocation_unkeyable`
|
|
12051
|
+
(the source extends a bound invocation of a source that reads
|
|
12052
|
+
the parameter it binds, `s(x is 50) extend { … }`, whose build
|
|
12053
|
+
cannot be keyed: write it as a query source over the invocation,
|
|
12054
|
+
`s(x is 50) -> { select: * } extend { … }`, which is stored);
|
|
12055
|
+
`address_unresolved` (a run's own refusal of a source whose
|
|
12056
|
+
build Malloy could not key, so its content address could not be
|
|
12057
|
+
resolved, of any other shape: it alone is not built,
|
|
12058
|
+
and the rest of the package is); a row-level gate the
|
|
11907
12059
|
table could not keep, named by the gate's kind, `access_filter`
|
|
11908
12060
|
for a row filter (`#(access_filter)`, any of the gates that
|
|
11909
12061
|
refused it) and `authorize` for a lock (`#(authorize)`);
|
|
@@ -12034,11 +12186,7 @@ components:
|
|
|
12034
12186
|
`preaggregate_over_dynamic_source` (shipped in 0.14.0: a rollup
|
|
12035
12187
|
over a caller-scoped source, now `reads_given`,
|
|
12036
12188
|
`given_where_over_unstored_field` or `inherited_where_with_given`,
|
|
12037
|
-
as every mechanism names the same case), `
|
|
12038
|
-
`dynamic_join` and `dynamic_joined_where` (a `storage=`
|
|
12039
|
-
`#@ persist` source's given in a field it declares, in a join's
|
|
12040
|
-
`on:` condition, or in a source it joins; now `reads_given`,
|
|
12041
|
-
whose `message` still names the position), `not_duckdb_portable` (a `storage=` table no
|
|
12189
|
+
as every mechanism names the same case), `not_duckdb_portable` (a `storage=` table no
|
|
12042
12190
|
column of which Malloy can type is now built, and its source is
|
|
12043
12191
|
answered live), the three `partition_*` reasons (`partition=` is a
|
|
12044
12192
|
retired key, which fails the publish and the load as
|
|
@@ -12739,13 +12887,12 @@ components:
|
|
|
12739
12887
|
table in place of its source, it reads the table's columns from
|
|
12740
12888
|
the warehouse and compares each with this type (case and spacing
|
|
12741
12889
|
aside). If a column was retyped or dropped since, or cannot be
|
|
12742
|
-
read,
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
`
|
|
12747
|
-
|
|
12748
|
-
it there. Optional and additive.
|
|
12890
|
+
read, the build is refused; no build recomputes the upstream from
|
|
12891
|
+
its definition. Without it nothing can be checked: the build
|
|
12892
|
+
reads the table unchecked, with a warning and a count
|
|
12893
|
+
(`publisher_materialization_upstream_read_unchecked_total`).
|
|
12894
|
+
Ignored for a `storage=` upstream: omit it there. Optional and
|
|
12895
|
+
additive.
|
|
12749
12896
|
items:
|
|
12750
12897
|
$ref: "#/components/schemas/Column"
|
|
12751
12898
|
schema:
|
|
@@ -13534,6 +13681,15 @@ components:
|
|
|
13534
13681
|
manifest travels without its build plan, and a consumer holding only
|
|
13535
13682
|
the manifest otherwise cannot tell why it holds a table for a source
|
|
13536
13683
|
that does not appear in the package.
|
|
13684
|
+
mode:
|
|
13685
|
+
type: string
|
|
13686
|
+
enum: [simulated]
|
|
13687
|
+
description: >-
|
|
13688
|
+
`simulated`: an entry simulated materialization predicted, for a
|
|
13689
|
+
table it never creates. Its address, physical name, schema and
|
|
13690
|
+
contract are those a build would record, and `builtAt` is the
|
|
13691
|
+
simulated build's time. Absent on an entry a build wrote. Never
|
|
13692
|
+
stored, and never on a manifest a run commits.
|
|
13537
13693
|
materializedTableId:
|
|
13538
13694
|
type: string
|
|
13539
13695
|
description: Echoes the caller-assigned id from the BuildInstruction.
|