@malloy-publisher/app 0.17.1 → 0.17.3
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 +525 -68
- package/dist/assets/{EnvironmentPage-DF2PahCR.js → EnvironmentPage-Cpetyfj1.js} +1 -1
- package/dist/assets/{HomePage-DIYlgPCz.js → HomePage-RlrpQRV8.js} +1 -1
- package/dist/assets/{MainPage-C7PGAA5k.js → MainPage-C1559_mQ.js} +1 -1
- package/dist/assets/{ModelPage-BMoBnrW7.js → ModelPage-D8T03Bd7.js} +2 -2
- package/dist/assets/{PackagePage-DD2vLSFe.js → PackagePage-BIl1r9eP.js} +1 -1
- package/dist/assets/{PackageSplatRoute-BYIMwnLL.js → PackageSplatRoute-DJlJXk6p.js} +2 -2
- package/dist/assets/{RenderedResult-CYJ2Y9Fm.es-C8nokn71.js → RenderedResult-Cm0Wwtek.es-CfBPkvGU.js} +1 -1
- package/dist/assets/{RouteError-B8dE60Vs.js → RouteError-DRuMstfb.js} +1 -1
- package/dist/assets/{ThemeEditorPage-D0wf74fh.js → ThemeEditorPage-ss_tmVWo.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-CX0_J2zR.js → ToggleButtonGroup-DA9EfQQB.js} +1 -1
- package/dist/assets/{documentRoutes-DgSMAc0m.js → documentRoutes-_ma0jaCp.js} +1 -1
- package/dist/assets/{editPageMounted-BUGVg-_g.js → editPageMounted-DxNTqmFg.js} +2 -2
- package/dist/assets/{index-DRkw60sj.js → index-BL_7q21Q.js} +5 -5
- package/dist/assets/{index-BQL8UUcK.js → index-BZA1HAyp.js} +1 -1
- package/dist/assets/{index-DAQjZOAL.js → index-DrkXqbpl.js} +1 -1
- package/dist/assets/{index-BiOT4K_d.js → index-w1w5RvZI.js} +1 -1
- package/dist/assets/{index.es-DgNl8IqU.js → index.es-XV_AUlWO.js} +1 -1
- package/dist/assets/usePackageLinkNavigate-BKkPNdJ4.js +1 -0
- package/dist/assets/{usePackageRoute-BhB6txS6.js → usePackageRoute-ev5b1KRn.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/usePackageLinkNavigate-bHr_AFYo.js +0 -1
package/dist/api-doc.yaml
CHANGED
|
@@ -4973,13 +4973,61 @@ components:
|
|
|
4973
4973
|
another source), `destination_missing` (`storage=` names a
|
|
4974
4974
|
destination the environment does not configure),
|
|
4975
4975
|
`connection_cannot_hold_table` (database, on a connection whose
|
|
4976
|
-
type creates no tables), `
|
|
4976
|
+
type creates no tables), `types_unrecorded` (retained, no longer
|
|
4977
|
+
produced: an entry with no recorded types reads
|
|
4978
|
+
`contract_missing` now), `materialization_off` (a `#(materialize)`
|
|
4977
4979
|
source, which only the served copy reads, and the served copy is
|
|
4978
4980
|
off: `PUBLISHER_MATERIALIZE`, and for `storage=`
|
|
4979
4981
|
`PERSIST_STORAGE_MODE`), `served_copy` (a source the served copy
|
|
4980
4982
|
reads, `#(materialize)` or `#@ persist`, whose table is bound and
|
|
4981
4983
|
built, but no model's served copy re-roots it, so its queries are
|
|
4982
|
-
answered live; `notServedIn` says where and why)
|
|
4984
|
+
answered live; `notServedIn` says where and why),
|
|
4985
|
+
`contract_missing` (bound, but its manifest entry carries no
|
|
4986
|
+
column contract, `ManifestEntry.contract`: built before contracts
|
|
4987
|
+
were recorded, or by an older worker), `incompatible` (bound, but
|
|
4988
|
+
the table no longer matches the contract its build recorded: a
|
|
4989
|
+
column gone, retyped or recollated since, or the source of a
|
|
4990
|
+
substituted table now declaring another type; `incompatibility`
|
|
4991
|
+
says what). Both judge the table itself, never anything local to
|
|
4992
|
+
one worker: a catalog read that failed or timed out leaves the
|
|
4993
|
+
table unread (answered live, read again), never `incompatible`.
|
|
4994
|
+
Both are non-terminal and never a plan-time refusal: a rebuild
|
|
4995
|
+
fixes them, and a source with either counts as stale, so the next
|
|
4996
|
+
build rebuilds it in full. Each names the generation it judged in
|
|
4997
|
+
`table`, so a consumer drops a verdict about a table it has since
|
|
4998
|
+
replaced. An open set.
|
|
4999
|
+
table:
|
|
5000
|
+
type: object
|
|
5001
|
+
required: [physicalTableName]
|
|
5002
|
+
description: >-
|
|
5003
|
+
With `contract_missing` or `incompatible`: the table generation
|
|
5004
|
+
the verdict judged, its `physicalTableName` and the `builtAt` its
|
|
5005
|
+
entry carried (absent when the entry carried none).
|
|
5006
|
+
properties:
|
|
5007
|
+
physicalTableName:
|
|
5008
|
+
type: string
|
|
5009
|
+
builtAt:
|
|
5010
|
+
type: string
|
|
5011
|
+
format: date-time
|
|
5012
|
+
incompatibility:
|
|
5013
|
+
type: object
|
|
5014
|
+
required: [code, columns]
|
|
5015
|
+
description: >-
|
|
5016
|
+
With `incompatible`: what changed (`column_gone`,
|
|
5017
|
+
`column_retyped`, `collation_changed`, `declared_moved`, or
|
|
5018
|
+
`upstream_altered`: a table an upstream it was built from
|
|
5019
|
+
changed under, found when a reload could not recompile; an open
|
|
5020
|
+
set) and the columns it changed (none for `upstream_altered`). A
|
|
5021
|
+
query's failed read of a table never makes it `incompatible`: it
|
|
5022
|
+
leaves the table unread, answered live, until the package's
|
|
5023
|
+
rebind reads its catalog and holds it to its contract.
|
|
5024
|
+
properties:
|
|
5025
|
+
code:
|
|
5026
|
+
type: string
|
|
5027
|
+
columns:
|
|
5028
|
+
type: array
|
|
5029
|
+
items:
|
|
5030
|
+
type: string
|
|
4983
5031
|
notServedIn:
|
|
4984
5032
|
type: array
|
|
4985
5033
|
items:
|
|
@@ -4999,6 +5047,17 @@ components:
|
|
|
4999
5047
|
while a served copy has yet to compile. Read from the same compile
|
|
5000
5048
|
of record as the `served-copy-not-served` warnings, never by
|
|
5001
5049
|
running a query.
|
|
5050
|
+
servedCopyPending:
|
|
5051
|
+
type: boolean
|
|
5052
|
+
deprecated: true
|
|
5053
|
+
description: >-
|
|
5054
|
+
DEPRECATED, removed in a later release: a bind now compiles every
|
|
5055
|
+
model's served copy over the new tables before they are swapped
|
|
5056
|
+
in, and models read the previous tables until then, so a verdict
|
|
5057
|
+
read after a bind returns is never pending. Present, and `true`,
|
|
5058
|
+
only while some model holding this source has yet to compile its
|
|
5059
|
+
copy over the tables bound now, which a server's own binds never
|
|
5060
|
+
leave behind.
|
|
5002
5061
|
message:
|
|
5003
5062
|
type: string
|
|
5004
5063
|
description: What the verdict means for this source, in a sentence.
|
|
@@ -5924,6 +5983,18 @@ components:
|
|
|
5924
5983
|
table (an inlined `join_many`) whose `refresh="incremental"`
|
|
5925
5984
|
is not honoured: it is rebuilt in full on every refresh, and
|
|
5926
5985
|
served (`subject` the source; `warn`).
|
|
5986
|
+
`materialize-extension-full-refresh`: an incremental
|
|
5987
|
+
`#(materialize)` extension whose watermark is not the same
|
|
5988
|
+
stored column as its incremental parent's: it is rebuilt in
|
|
5989
|
+
full over the parent's table whenever that table changes, and
|
|
5990
|
+
served (`subject` the extension; `warn`; the message names
|
|
5991
|
+
both watermarks).
|
|
5992
|
+
`materialize-extension-generation-unproven`: the newest run
|
|
5993
|
+
rebuilt an incremental extension in full because it could not
|
|
5994
|
+
prove which build of its parent's table it last read (neither
|
|
5995
|
+
the run's ledger entry nor the bound manifest records it;
|
|
5996
|
+
step reason `upstream_generation_skipped`) (`subject` the
|
|
5997
|
+
extension; `warn`).
|
|
5927
5998
|
`rollup-join-one-key-repeated`: a rollup's last build found
|
|
5928
5999
|
a `join_one` key repeated in the data, so queries that read
|
|
5929
6000
|
that join beside other aggregates are answered live
|
|
@@ -5993,7 +6064,9 @@ components:
|
|
|
5993
6064
|
`storage-column-type-mismatch`: a `storage=` table of any
|
|
5994
6065
|
kind (`#@ persist`, `#(materialize)`, a rollup, a persisted
|
|
5995
6066
|
view or query) stores a column as a type other than the one
|
|
5996
|
-
its build declares
|
|
6067
|
+
its build declares, as its build wrote it (a change after
|
|
6068
|
+
the build is `materialization-table-incompatible`). It is
|
|
6069
|
+
read through a cast to the
|
|
5997
6070
|
declared type where that is faithful, and otherwise
|
|
5998
6071
|
answered live, never read as its stored type (one per
|
|
5999
6072
|
source and column, `model` the model
|
|
@@ -6001,12 +6074,24 @@ components:
|
|
|
6001
6074
|
view's or query's build source, the message naming the
|
|
6002
6075
|
column, both types and which applies; `warn`; see
|
|
6003
6076
|
docs/materialization.md).
|
|
6004
|
-
`database-column-type-mismatch
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6077
|
+
`database-column-type-mismatch` is retained, no longer
|
|
6078
|
+
produced: a bound table altered outside a build is now
|
|
6079
|
+
`materialization-table-incompatible`, answered live whole
|
|
6080
|
+
until it is rebuilt, never read through a cast.
|
|
6081
|
+
`materialization-table-incompatible`: a bound table, on
|
|
6082
|
+
either tier, that no longer matches the column contract its
|
|
6083
|
+
build recorded (a column gone, retyped or recollated since,
|
|
6084
|
+
or its source now declaring another type than it was built
|
|
6085
|
+
for); it is answered live until a build rebuilds it (one per
|
|
6086
|
+
source, `subject` the source; `warn`; the serve verdict's
|
|
6087
|
+
`incompatible` names the table and what changed).
|
|
6088
|
+
`materialization-contract-missing`: a bound table whose
|
|
6089
|
+
entry carries no column contract (built before contracts
|
|
6090
|
+
were recorded); it is answered live until a build rebuilds
|
|
6091
|
+
it in full (one per source, `subject` the source; `warn`).
|
|
6092
|
+
`materialization-types-unrecorded` is retained, no longer
|
|
6093
|
+
produced: a table with no recorded types is
|
|
6094
|
+
`materialization-contract-missing` now.
|
|
6010
6095
|
`table-kept`: a table an auto-run replaced
|
|
6011
6096
|
when its source's table was renamed or moved, which
|
|
6012
6097
|
Publisher keeps rather than drops: one at an author's exact
|
|
@@ -6045,6 +6130,12 @@ components:
|
|
|
6045
6130
|
`connection_failed`, `timed_out`, `catalog_query_failed`,
|
|
6046
6131
|
`not_found`, `ambiguous`, `unparseable`, `not_read`; `warn`;
|
|
6047
6132
|
see docs/materialization.md).
|
|
6133
|
+
`storage-table-unread`: the same, for a bound `storage=`
|
|
6134
|
+
table whose columns its destination session could not read
|
|
6135
|
+
when it was bound, or that a query's failed read left
|
|
6136
|
+
unread until the package reads it again; the message names
|
|
6137
|
+
the table or rollup and its destination; same fields and
|
|
6138
|
+
reasons.
|
|
6048
6139
|
`database-native-type-missing`: a database table is bound
|
|
6049
6140
|
with no captured warehouse type (its manifest entry's
|
|
6050
6141
|
`nativeSchema`) for a column whose field Malloy types as a big
|
|
@@ -6077,7 +6168,7 @@ components:
|
|
|
6077
6168
|
rather than on the message (whose wording may change): the
|
|
6078
6169
|
refusal record's `reason` on a `*-not-built` warning; the served copy's reason on
|
|
6079
6170
|
`served-copy-not-served`; the unread reason on
|
|
6080
|
-
`database-table-unread`; the kept table's reason on
|
|
6171
|
+
`database-table-unread` and `storage-table-unread`; the kept table's reason on
|
|
6081
6172
|
`table-kept`; the serve verdict's reason on a
|
|
6082
6173
|
`materialization-*` verdict warning; `storage_mode` on
|
|
6083
6174
|
`materialization-storage-mode`; the rule a cell breaks on
|
|
@@ -7163,8 +7254,7 @@ components:
|
|
|
7163
7254
|
$ref: "#/components/schemas/NotebookCell"
|
|
7164
7255
|
annotations:
|
|
7165
7256
|
type: array
|
|
7166
|
-
description:
|
|
7167
|
-
Array of file-level (##) annotations attached to the notebook.
|
|
7257
|
+
description: Array of file-level (##) annotations attached to the notebook.
|
|
7168
7258
|
items:
|
|
7169
7259
|
type: string
|
|
7170
7260
|
startingGivens:
|
|
@@ -10925,6 +11015,7 @@ components:
|
|
|
10925
11015
|
given_where_over_unstored_field,
|
|
10926
11016
|
unreadable_grain,
|
|
10927
11017
|
upstream_unread,
|
|
11018
|
+
upstream_table_unusable,
|
|
10928
11019
|
]
|
|
10929
11020
|
description: >-
|
|
10930
11021
|
The bounded refusal reason; `message` says the specifics.
|
|
@@ -10988,6 +11079,17 @@ components:
|
|
|
10988
11079
|
and a host's instruction for it is refused, until a reload or a
|
|
10989
11080
|
plan refresh reads the catalog and plans it at its address; the
|
|
10990
11081
|
`*-not-built` warning names the table).
|
|
11082
|
+
`upstream_table_unusable` (a persisted source, view, named query
|
|
11083
|
+
or rollup that is built from its upstream's stored table, and
|
|
11084
|
+
never by recomputing the upstream from raw, in any build, when
|
|
11085
|
+
that table cannot be read where it is built: a database one over
|
|
11086
|
+
an upstream declared `storage=`, whose table lives in a storage
|
|
11087
|
+
destination a build in the warehouse cannot read; a `storage=` one
|
|
11088
|
+
over an upstream stored in another destination; or one over an
|
|
11089
|
+
upstream that declares a persisted table but is itself refused,
|
|
11090
|
+
or not planned, so it has none. `message` names the upstream and
|
|
11091
|
+
why. Terminal until the model changes; the declaration is
|
|
11092
|
+
answered live).
|
|
10991
11093
|
|
|
10992
11094
|
|
|
10993
11095
|
A persisted view or named query: `materialization_off` (persisted
|
|
@@ -11664,30 +11766,25 @@ components:
|
|
|
11664
11766
|
strictUpstreams:
|
|
11665
11767
|
type: boolean
|
|
11666
11768
|
default: false
|
|
11769
|
+
deprecated: true
|
|
11667
11770
|
description: >-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11771
|
+
Deprecated: accepted and ignored. Every build is strict: a persist
|
|
11772
|
+
upstream that is neither built here nor present in
|
|
11773
|
+
referenceManifest (nor carried by a standalone run, which builds
|
|
11774
|
+
the upstreams a named source reads when it cannot carry them)
|
|
11775
|
+
fails the build, and a downstream is never built by recomputing
|
|
11776
|
+
its upstreams from raw.
|
|
11672
11777
|
warehouseReach:
|
|
11673
11778
|
type: string
|
|
11674
11779
|
default: recompute
|
|
11780
|
+
deprecated: true
|
|
11675
11781
|
description: >-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
`upstreamReuse: recomputed` with the reason; `refuse` fails the
|
|
11683
|
-
source instead, with that reason in its `SourceFailure.reason` and
|
|
11684
|
-
`retryable: false`, and nothing reads the warehouse. Non-strict
|
|
11685
|
-
builds ignore it, as they ignore `strictUpstreams`.
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
An open string, not an enum, so a later value needs no client
|
|
11689
|
-
change; today's values are `recompute` and `refuse`, and any other
|
|
11690
|
-
is a 400.
|
|
11782
|
+
Deprecated: accepted and ignored. No build recomputes a stored
|
|
11783
|
+
upstream from the source warehouse, so there is nothing for it to
|
|
11784
|
+
choose; a request that sends it (or `strictUpstreams`) logs one
|
|
11785
|
+
deprecation warning. The values are still validated: `recompute`
|
|
11786
|
+
and `refuse` are accepted, null reads as absent, and any other
|
|
11787
|
+
value is a 400.
|
|
11691
11788
|
ledger:
|
|
11692
11789
|
type: array
|
|
11693
11790
|
items:
|
|
@@ -11701,9 +11798,10 @@ components:
|
|
|
11701
11798
|
every existing caller. Present (even empty), it IS the ledger for
|
|
11702
11799
|
this run: boundaries are read from here, the local store is neither
|
|
11703
11800
|
read nor written, and an incremental source with no entry here
|
|
11704
|
-
seeds. An entry that does not validate against this run is a 400
|
|
11705
|
-
|
|
11706
|
-
|
|
11801
|
+
seeds. An entry that does not validate against this run is a 400,
|
|
11802
|
+
while one whose own shape is malformed is dropped and its source
|
|
11803
|
+
seeds (see `LedgerEntry`); an entry for a source being `reseed`-ed
|
|
11804
|
+
is ignored.
|
|
11707
11805
|
|
|
11708
11806
|
For an orchestrator that dispatches one package's refreshes across
|
|
11709
11807
|
interchangeable workers: the local store is per-process, so a
|
|
@@ -11751,6 +11849,85 @@ components:
|
|
|
11751
11849
|
content address): a stored upstream is stacked on in its
|
|
11752
11850
|
destination, and never rendered into warehouse SQL. Optional and
|
|
11753
11851
|
additive: a reference without it still serves a database upstream.
|
|
11852
|
+
nativeSchema:
|
|
11853
|
+
type: array
|
|
11854
|
+
description: >-
|
|
11855
|
+
For a database upstream (no `storageDestinationName`): the
|
|
11856
|
+
`nativeSchema` the upstream's build reported on its manifest
|
|
11857
|
+
entry, sent back as it came. Before a build reads the referenced
|
|
11858
|
+
table in place of its source, it reads the table's columns from
|
|
11859
|
+
the warehouse and compares each with this type (case and spacing
|
|
11860
|
+
aside). If a column was retyped or dropped since, or cannot be
|
|
11861
|
+
read, a strict build is refused and any other build recomputes
|
|
11862
|
+
the upstream from its definition. Without it nothing can be
|
|
11863
|
+
checked: a strict build reads the table unchecked, with a warning
|
|
11864
|
+
and a count (`publisher_materialization_upstream_recompute_total`,
|
|
11865
|
+
`reason="reference_types_unrecorded"`), and any other build
|
|
11866
|
+
recomputes the upstream. Ignored for a `storage=` upstream: omit
|
|
11867
|
+
it there. Optional and additive.
|
|
11868
|
+
items:
|
|
11869
|
+
$ref: "#/components/schemas/Column"
|
|
11870
|
+
schema:
|
|
11871
|
+
type: array
|
|
11872
|
+
description: >-
|
|
11873
|
+
For a `storage=` upstream: the `schema` its build reported on its
|
|
11874
|
+
manifest entry, sent back as it came. A `storage=` build stacked
|
|
11875
|
+
on the referenced table declares exactly these columns, so without
|
|
11876
|
+
it (and without this worker's own record of the table) that build
|
|
11877
|
+
is refused rather than recomputing the upstream. Optional and
|
|
11878
|
+
additive.
|
|
11879
|
+
items:
|
|
11880
|
+
$ref: "#/components/schemas/Column"
|
|
11881
|
+
dataAsOf:
|
|
11882
|
+
type: string
|
|
11883
|
+
format: date-time
|
|
11884
|
+
description: >-
|
|
11885
|
+
The upstream entry's `dataAsOf`, sent back as it came: how fresh
|
|
11886
|
+
the referenced table is. A downstream with a freshness window
|
|
11887
|
+
reads a referenced table only when it is fresh enough by this
|
|
11888
|
+
instant; without it the table is of unknown age, and such a
|
|
11889
|
+
downstream is refused rather than built from raw. Optional and
|
|
11890
|
+
additive.
|
|
11891
|
+
builtAt:
|
|
11892
|
+
type: string
|
|
11893
|
+
format: date-time
|
|
11894
|
+
description: >-
|
|
11895
|
+
The upstream entry's `builtAt`, sent back as it came, so a
|
|
11896
|
+
downstream's `builtFrom` names which build of the table it read.
|
|
11897
|
+
Optional and additive.
|
|
11898
|
+
contract:
|
|
11899
|
+
allOf:
|
|
11900
|
+
- $ref: "#/components/schemas/ColumnContract"
|
|
11901
|
+
description: >-
|
|
11902
|
+
The upstream entry's `contract`, sent back unparsed. A downstream
|
|
11903
|
+
built over the referenced table reads it to know how the table's
|
|
11904
|
+
strings compare with live, and, for a pair table, whether its leaf
|
|
11905
|
+
key check passed; without it those columns are unknown, and a
|
|
11906
|
+
downstream that needs them is refused. Optional and additive.
|
|
11907
|
+
ledger:
|
|
11908
|
+
allOf:
|
|
11909
|
+
- $ref: "#/components/schemas/LedgerEntry"
|
|
11910
|
+
description: >-
|
|
11911
|
+
The referenced upstream's ledger entry (`ManifestEntry.ledger`),
|
|
11912
|
+
exactly as the publisher reported it, sent back whole: opaque, like
|
|
11913
|
+
an entry in `BuildInstructions.ledger`. Absent means unknown.
|
|
11914
|
+
|
|
11915
|
+
An incremental `#(materialize)` extension built in this run over a
|
|
11916
|
+
referenced incremental parent reads the parent's history from it
|
|
11917
|
+
(`seededBy`, `advances`, `advancedBy`) to prove it may refresh by
|
|
11918
|
+
delta. Without it, on a worker whose bound manifest and own store
|
|
11919
|
+
do not name the parent's current build, the extension rebuilds in
|
|
11920
|
+
full (`upstream_generation_skipped`). It is preferred over both.
|
|
11921
|
+
|
|
11922
|
+
It must name the reference's table and source (the same
|
|
11923
|
+
`connectionName`, `physicalTableName`, `storageDestinationName` and
|
|
11924
|
+
`sourceEntityId`). One that does not, or whose own shape is malformed
|
|
11925
|
+
(see `LedgerEntry`), is dropped with a logged warning and the request
|
|
11926
|
+
proceeds as if it were absent, never a 400: the extensions fall back
|
|
11927
|
+
to the bound manifest's entry, then the worker's own, and rebuild in
|
|
11928
|
+
full only when neither proves which build of the parent they read. Keys this release does not know are
|
|
11929
|
+
kept. Unlike `BuildInstructions.ledger`, it names a table this run
|
|
11930
|
+
does not build, and is never written to. Optional and additive.
|
|
11754
11931
|
|
|
11755
11932
|
BuildInstruction:
|
|
11756
11933
|
type: object
|
|
@@ -11831,10 +12008,25 @@ components:
|
|
|
11831
12008
|
returns it verbatim in `BuildInstructions.ledger` on the next run —
|
|
11832
12009
|
only the publisher derives these values.
|
|
11833
12010
|
|
|
12011
|
+
OPAQUE to hosts: store each entry whole (as JSON, say) and echo it back
|
|
12012
|
+
unchanged. Do not rebuild it from the fields listed here. The publisher
|
|
12013
|
+
may add keys at any time (`additionalProperties`): it carries a key it
|
|
12014
|
+
does not know on an echoed entry onto the entry the next run reports
|
|
12015
|
+
(a release before this one dropped such keys), and a key a host drops
|
|
12016
|
+
is lost to the next run.
|
|
12017
|
+
|
|
11834
12018
|
A returned entry is validated at create time: one naming a table the
|
|
11835
12019
|
run does not instruct, or whose `sourceEntityId` is no longer the
|
|
11836
|
-
source's, is a 400
|
|
11837
|
-
|
|
12020
|
+
source's, is a 400, as are duplicate entries for one table. An entry
|
|
12021
|
+
whose own shape is malformed (not an object, a required field missing,
|
|
12022
|
+
empty or not a string, an unknown `strategy`, `mergeKeys` not an array
|
|
12023
|
+
of strings, an empty `storageDestinationName`, an unusable
|
|
12024
|
+
`physicalTableName`) is not a 400: it is dropped with a logged warning
|
|
12025
|
+
before those checks, and its source seeds (rebuilds in full) under the
|
|
12026
|
+
reason `ledger_entry_malformed`, so one corrupted entry cannot wedge
|
|
12027
|
+
every build of the package. After a publish or rollback that changes
|
|
12028
|
+
the source, delete the entry (the source seeds) or set `reseed`.
|
|
12029
|
+
additionalProperties: true
|
|
11838
12030
|
required:
|
|
11839
12031
|
[
|
|
11840
12032
|
connectionName,
|
|
@@ -11912,6 +12104,204 @@ components:
|
|
|
11912
12104
|
`BuildInstruction.sourceEntityId`. The match is what guarantees a
|
|
11913
12105
|
boundary is never applied to a table whose definition has moved on
|
|
11914
12106
|
since it was measured.
|
|
12107
|
+
advancedBy:
|
|
12108
|
+
type: string
|
|
12109
|
+
description: >-
|
|
12110
|
+
The materialization run that last changed the table: a delta, or
|
|
12111
|
+
a full rebuild. A run that applied nothing (`refresh: none`) keeps
|
|
12112
|
+
the one before. Which build of the table the boundary describes,
|
|
12113
|
+
for an extension table built over it (`parent.advancedBy`).
|
|
12114
|
+
Returned verbatim; absent on an entry an older release reported.
|
|
12115
|
+
parent:
|
|
12116
|
+
type: object
|
|
12117
|
+
description: >-
|
|
12118
|
+
For an incremental extension table (a `#(materialize)` extension
|
|
12119
|
+
of a `#(materialize)` parent, built over the parent's table): which
|
|
12120
|
+
build of the parent's table this boundary was reached over, as
|
|
12121
|
+
`builtFrom` names it. The next refresh deltas only when the
|
|
12122
|
+
parent's table is still that build, or was refreshed in that run
|
|
12123
|
+
from exactly it; otherwise the extension rebuilds in full over the
|
|
12124
|
+
parent's table (step reason `upstream_generation_skipped`), since a
|
|
12125
|
+
delta could miss rows a parent refresh it never read restated.
|
|
12126
|
+
Returned verbatim like every other field; a caller that drops it
|
|
12127
|
+
costs each extension a full rebuild, never a wrong row. Absent for
|
|
12128
|
+
any other source.
|
|
12129
|
+
required: [sourceEntityId]
|
|
12130
|
+
properties:
|
|
12131
|
+
sourceEntityId:
|
|
12132
|
+
type: string
|
|
12133
|
+
description: The parent's content address, as its manifest entry is keyed.
|
|
12134
|
+
advancedBy:
|
|
12135
|
+
type: string
|
|
12136
|
+
description: >-
|
|
12137
|
+
The parent's own `ledger.advancedBy` when the extension read
|
|
12138
|
+
it: the build of the parent's table it read, compared with
|
|
12139
|
+
the one the parent's next refresh starts from.
|
|
12140
|
+
builtAt:
|
|
12141
|
+
type: string
|
|
12142
|
+
format: date-time
|
|
12143
|
+
description: The parent entry's `builtAt` when the extension read it.
|
|
12144
|
+
coveredThrough:
|
|
12145
|
+
type: string
|
|
12146
|
+
description: >-
|
|
12147
|
+
The parent's own `ledger.coveredThrough` when the extension read
|
|
12148
|
+
it, when the parent is incremental.
|
|
12149
|
+
coveredThroughType:
|
|
12150
|
+
type: string
|
|
12151
|
+
description: The Malloy type of `coveredThrough`.
|
|
12152
|
+
|
|
12153
|
+
BuiltFromTable:
|
|
12154
|
+
type: object
|
|
12155
|
+
description: >-
|
|
12156
|
+
One upstream table a build read (`ManifestEntry.builtFrom`).
|
|
12157
|
+
required: [sourceEntityId, physicalTableName]
|
|
12158
|
+
properties:
|
|
12159
|
+
sourceEntityId:
|
|
12160
|
+
type: string
|
|
12161
|
+
description: >-
|
|
12162
|
+
The upstream's CONTENT address: the key of its entry in the
|
|
12163
|
+
manifest the build read.
|
|
12164
|
+
physicalTableName:
|
|
12165
|
+
type: string
|
|
12166
|
+
description: The upstream table's logical (unquoted) name, as its entry holds it.
|
|
12167
|
+
storageDestinationName:
|
|
12168
|
+
type: string
|
|
12169
|
+
description: >-
|
|
12170
|
+
The `storage=` destination the upstream table lives in; absent for
|
|
12171
|
+
a table in its source's own warehouse.
|
|
12172
|
+
builtAt:
|
|
12173
|
+
type: string
|
|
12174
|
+
format: date-time
|
|
12175
|
+
description: >-
|
|
12176
|
+
The upstream entry's own `builtAt`: which build of that table was
|
|
12177
|
+
read. Absent when its entry carries none (a reference, or an entry
|
|
12178
|
+
written before 0.17.2).
|
|
12179
|
+
contractDigest:
|
|
12180
|
+
type: string
|
|
12181
|
+
description: >-
|
|
12182
|
+
A digest of the upstream table's column contract
|
|
12183
|
+
(`ManifestEntry.contract`: each column's name, native type and
|
|
12184
|
+
collation) as this build read it. A downstream is carried forward
|
|
12185
|
+
only while its upstream's current entry still has this digest, so
|
|
12186
|
+
a rebuilt or altered upstream rebuilds its readers. Absent when
|
|
12187
|
+
the upstream carried no contract.
|
|
12188
|
+
coveredThrough:
|
|
12189
|
+
type: string
|
|
12190
|
+
description: >-
|
|
12191
|
+
The upstream's incremental boundary when the build read it: its
|
|
12192
|
+
entry's `ledger.coveredThrough`, as canonical scalar text. Absent
|
|
12193
|
+
when the upstream is not incrementally refreshed. An incremental
|
|
12194
|
+
extension's range ends no later than this, so it never records
|
|
12195
|
+
coverage its parent's table lacks.
|
|
12196
|
+
|
|
12197
|
+
ColumnContract:
|
|
12198
|
+
type: object
|
|
12199
|
+
additionalProperties: true
|
|
12200
|
+
description: >-
|
|
12201
|
+
What a materialized table's build recorded about each of its columns,
|
|
12202
|
+
so a stored read is judged against facts recorded once at build rather
|
|
12203
|
+
than probed per query. A host that stores entries keeps it as written
|
|
12204
|
+
(as text is fine) and sends it back unparsed. Readers ignore keys they
|
|
12205
|
+
do not know, at every level, so later releases may add keys. An entry
|
|
12206
|
+
with no `contract`, an empty one, or one without `v` has no contract:
|
|
12207
|
+
its table is not served from until it is rebuilt (serve verdict
|
|
12208
|
+
reason `contract_missing`). A column the contract does not list is
|
|
12209
|
+
treated as unknown: `compare` `none`, `gateExact` false.
|
|
12210
|
+
properties:
|
|
12211
|
+
v:
|
|
12212
|
+
type: integer
|
|
12213
|
+
description: The contract's shape version. `1`.
|
|
12214
|
+
producer:
|
|
12215
|
+
type: string
|
|
12216
|
+
description: The Publisher version whose build wrote it; diagnostic only.
|
|
12217
|
+
dialect:
|
|
12218
|
+
type: string
|
|
12219
|
+
description: >-
|
|
12220
|
+
The dialect of the engine holding the table: the warehouse's for a
|
|
12221
|
+
database table, the destination's (`duckdb`) for a `storage=` one.
|
|
12222
|
+
defaultCollation:
|
|
12223
|
+
type: string
|
|
12224
|
+
description: >-
|
|
12225
|
+
The holding engine's default collation as the build read it,
|
|
12226
|
+
normalised (`binary` for a byte-wise default). Absent when unread.
|
|
12227
|
+
columns:
|
|
12228
|
+
type: array
|
|
12229
|
+
description: The table's columns, in table order.
|
|
12230
|
+
items:
|
|
12231
|
+
$ref: "#/components/schemas/ContractColumn"
|
|
12232
|
+
keys:
|
|
12233
|
+
type: object
|
|
12234
|
+
description: >-
|
|
12235
|
+
The key checks the table's build ran, each named
|
|
12236
|
+
`<level>:<subject>.<keyColumn>` (or `<level>:<keyColumn>` when it
|
|
12237
|
+
has no subject), with whether the key held one row per value and
|
|
12238
|
+
no NULL. `leaf`: a pair table's (an `inline=` join_many's) leaf
|
|
12239
|
+
key, its subject the join path (`leaf:items.options.option_id`);
|
|
12240
|
+
a view built over a pair table needs it recorded as passed.
|
|
12241
|
+
`rollup`: a rollup's own key, its one grain dimension, with no
|
|
12242
|
+
subject (`rollup:category`). `parent`: the primary key of a query
|
|
12243
|
+
source that reads the rollup through a join_many, and `stored`: a
|
|
12244
|
+
stored source's own primary key, each with the source as its
|
|
12245
|
+
subject, named by its sourceID with the file relative to the
|
|
12246
|
+
package (`parent:orders@models/orders.malloy.id`). A rollup or
|
|
12247
|
+
source check serves a join only under the key the model declares
|
|
12248
|
+
now. Readers look up the names they need and never parse one;
|
|
12249
|
+
an unknown name or level is ignored.
|
|
12250
|
+
additionalProperties:
|
|
12251
|
+
type: object
|
|
12252
|
+
required: [unique]
|
|
12253
|
+
properties:
|
|
12254
|
+
unique:
|
|
12255
|
+
type: boolean
|
|
12256
|
+
level:
|
|
12257
|
+
type: string
|
|
12258
|
+
description: >-
|
|
12259
|
+
`leaf`, `rollup`, `parent` or `stored`, as the name's
|
|
12260
|
+
prefix. An open set.
|
|
12261
|
+
|
|
12262
|
+
ContractColumn:
|
|
12263
|
+
type: object
|
|
12264
|
+
additionalProperties: true
|
|
12265
|
+
required: [name, nativeType]
|
|
12266
|
+
description: One column of a `ColumnContract`.
|
|
12267
|
+
properties:
|
|
12268
|
+
name:
|
|
12269
|
+
type: string
|
|
12270
|
+
nativeType:
|
|
12271
|
+
type: string
|
|
12272
|
+
description: >-
|
|
12273
|
+
The column's type as the holding engine's catalog names it, read
|
|
12274
|
+
from the table the build wrote, by the same catalog read a bind
|
|
12275
|
+
makes.
|
|
12276
|
+
collation:
|
|
12277
|
+
type: [string, "null"]
|
|
12278
|
+
description: >-
|
|
12279
|
+
For a string column, the stored column's collation identity as the
|
|
12280
|
+
holding engine's catalog reports it (normalised; `binary` for
|
|
12281
|
+
byte-wise). Null or absent for a non-string column.
|
|
12282
|
+
compare:
|
|
12283
|
+
type: string
|
|
12284
|
+
description: >-
|
|
12285
|
+
What a stored read of this column may answer in place of live:
|
|
12286
|
+
`exact` (equality, grouping, filters and ordering all match live),
|
|
12287
|
+
`equality` (equality, grouping, equality filters and joins match;
|
|
12288
|
+
ordering and ranges may not), or `none` (no string comparison is
|
|
12289
|
+
known to match). Every non-string column is `exact`. An open set:
|
|
12290
|
+
read an unknown value as `none`.
|
|
12291
|
+
gateExact:
|
|
12292
|
+
type: boolean
|
|
12293
|
+
description: >-
|
|
12294
|
+
Whether a row-level gate comparing this column reads the same rows
|
|
12295
|
+
from the stored table as live (a binary64 double read from a
|
|
12296
|
+
binary64 source, never a DECIMAL or float4 stored as a double, nor
|
|
12297
|
+
a 128-bit integer).
|
|
12298
|
+
declaredType:
|
|
12299
|
+
type: string
|
|
12300
|
+
description: >-
|
|
12301
|
+
The Malloy type the build source declared for this column when the
|
|
12302
|
+
table was built. A bind whose source now declares another type
|
|
12303
|
+
finds the table incompatible (`declared_moved`): its values are of
|
|
12304
|
+
the type it was built for.
|
|
11915
12305
|
|
|
11916
12306
|
BuildManifest:
|
|
11917
12307
|
type: object
|
|
@@ -12015,9 +12405,33 @@ components:
|
|
|
12015
12405
|
description: >-
|
|
12016
12406
|
A bounded code for a failure a client may branch on, beside
|
|
12017
12407
|
`reason`'s prose: `table-owned-elsewhere` (the build's `name=` is
|
|
12018
|
-
held by a table this package does not own)
|
|
12019
|
-
`table-ownership-unverified` (who holds it could not be read)
|
|
12020
|
-
|
|
12408
|
+
held by a table this package does not own),
|
|
12409
|
+
`table-ownership-unverified` (who holds it could not be read), or
|
|
12410
|
+
`contract_capture_failed` (the build wrote its table but could not
|
|
12411
|
+
read back its column contract, `ManifestEntry.contract`, which a
|
|
12412
|
+
table must carry to be served from). `contract_capture_failed` is
|
|
12413
|
+
non-terminal, never a refusal: a rebuild fixes it, and the source
|
|
12414
|
+
is `retryable`. The read runs before the write is swapped in or
|
|
12415
|
+
committed wherever the build has a staging table or a transaction,
|
|
12416
|
+
so the previous table is left as it was; an incremental delta,
|
|
12417
|
+
which writes in place, fails after its write, and its previous
|
|
12418
|
+
entry then understates the table's freshness, never its rows.
|
|
12419
|
+
`schema_incompatible` (a build whose upstream's stored table is
|
|
12420
|
+
not what it was planned or built over: a `storage=` view's or
|
|
12421
|
+
named query's upstream whose columns differ from its plan's, or
|
|
12422
|
+
any upstream table altered since its build). It
|
|
12423
|
+
is non-terminal, never a refusal: the package reads its tables and
|
|
12424
|
+
derives its plan again at once, and the next build either builds
|
|
12425
|
+
the source over the upstream's table as it is or the plan refuses
|
|
12426
|
+
it (`upstream_table_unusable`); the source is `retryable`.
|
|
12427
|
+
`instruction_unresolved` (an instruction no source in the run's
|
|
12428
|
+
build plan resolves to, so nothing was built for it; not
|
|
12429
|
+
`retryable` until the caller reads the plan again). Every
|
|
12430
|
+
instructed source ends in `entries` or `failures`: one the run's
|
|
12431
|
+
plan refused since the caller read it is a refusal carrying the
|
|
12432
|
+
plan's reason, and any other unmatched instruction fails with this
|
|
12433
|
+
code; none is dropped. An open set; absent for a failure that has
|
|
12434
|
+
none.
|
|
12021
12435
|
refused:
|
|
12022
12436
|
type: boolean
|
|
12023
12437
|
description: >-
|
|
@@ -12039,14 +12453,13 @@ components:
|
|
|
12039
12453
|
eligibility refusal (always, beside `refused`), a Malloy or SQL
|
|
12040
12454
|
compile defect (a syntax or parser error), a rejected credential or
|
|
12041
12455
|
missing grant (a message that says permission or access denied), a
|
|
12042
|
-
warehouse's own data or syntax error, and a source
|
|
12043
|
-
|
|
12044
|
-
|
|
12456
|
+
warehouse's own data or syntax error, and a source that fails
|
|
12457
|
+
because a persisted upstream it reads failed deterministically
|
|
12458
|
+
earlier in the same run (every build is strict, so it is never
|
|
12459
|
+
recomputed from raw instead). That last source
|
|
12045
12460
|
inherits its upstream's classification (`true` when any such
|
|
12046
12461
|
upstream's failure is transient) and its `reason` names the
|
|
12047
|
-
upstream's own failure.
|
|
12048
|
-
refused under `warehouseReach: refuse`, whose only build would
|
|
12049
|
-
recompute its stored upstreams from the warehouse.
|
|
12462
|
+
upstream's own failure.
|
|
12050
12463
|
|
|
12051
12464
|
|
|
12052
12465
|
A warehouse's own data or syntax error is one the warehouse names
|
|
@@ -12274,29 +12687,73 @@ components:
|
|
|
12274
12687
|
For a source that reads another persisted source, how this table's
|
|
12275
12688
|
rows were computed from it. `reused`: every persisted upstream was
|
|
12276
12689
|
read from its already-materialized table, so the rows are a
|
|
12277
|
-
function of those snapshots and consistent with them.
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12690
|
+
function of those snapshots and consistent with them.
|
|
12691
|
+
|
|
12692
|
+
|
|
12693
|
+
Every build is strict: a downstream is built over its upstreams'
|
|
12694
|
+
tables or not at all, and is never built by recomputing an
|
|
12695
|
+
upstream from raw. A downstream the plan cannot build over its
|
|
12696
|
+
upstreams' tables is refused when the package is planned
|
|
12697
|
+
(`upstream_table_unusable`), and one whose upstream's table a run
|
|
12698
|
+
cannot read fails that build (a missing upstream, a moved table
|
|
12699
|
+
as `schema_incompatible`, a shape the destination cannot carry);
|
|
12700
|
+
neither reports `upstreamReuse`.
|
|
12701
|
+
|
|
12702
|
+
|
|
12703
|
+
`recomputed`: retained, and no longer planned. No build is
|
|
12704
|
+
planned to read a persisted upstream's definition rather than its
|
|
12705
|
+
table: a persisted view, named query or rollup that cannot be
|
|
12706
|
+
built over its upstream's table is refused at plan. The value
|
|
12707
|
+
stays for the run's own check, which labels a build whose SQL
|
|
12708
|
+
inlined an upstream it should have read (with
|
|
12709
|
+
`upstreamRecomputeReason` naming it); a strict build refuses such
|
|
12710
|
+
a build before writing it, so an entry is not expected to carry
|
|
12711
|
+
it.
|
|
12712
|
+
|
|
12713
|
+
|
|
12714
|
+
Not a location: it does not name the table the rows came from
|
|
12715
|
+
(`builtFrom` does). Absent for a source that reads no persisted
|
|
12716
|
+
upstream, which has one way to build and no choice to report. A
|
|
12717
|
+
rollup reports `reused` when it built from its base's table, and
|
|
12718
|
+
nothing otherwise.
|
|
12719
|
+
builtAt:
|
|
12720
|
+
type: string
|
|
12721
|
+
format: date-time
|
|
12722
|
+
description: >-
|
|
12723
|
+
When the run that produced this entry built its table: the instant
|
|
12724
|
+
its build finished. Not a freshness anchor (that is `dataAsOf`).
|
|
12725
|
+
A host that stores entries keeps it as written, so a downstream's
|
|
12726
|
+
`builtFrom` can name the build of each table it read. Absent on an
|
|
12727
|
+
entry written before 0.17.2, and on a reference.
|
|
12728
|
+
builtFrom:
|
|
12729
|
+
type: array
|
|
12730
|
+
description: >-
|
|
12731
|
+
The stored tables of other persisted sources this table's build
|
|
12732
|
+
read in place of their definitions, each named as the run's
|
|
12733
|
+
manifest held it, with that table's `builtAt`. Recorded for every
|
|
12734
|
+
build that read an upstream's table: a database or `storage=`
|
|
12735
|
+
build whose warehouse SQL read it (a chained `#@ persist` source,
|
|
12736
|
+
a persisted view or named query, or a rollup built over its
|
|
12737
|
+
base's table), and a `storage=` build that read its upstreams'
|
|
12738
|
+
tables in its destination (a chained source, an extension, or a
|
|
12739
|
+
rollup that grouped its base's stored table). Provenance, not a location the
|
|
12740
|
+
entry is served from: the entry's own table is
|
|
12741
|
+
`physicalTableName`. Absent, or empty (read the same), when the
|
|
12742
|
+
build read no upstream's table.
|
|
12743
|
+
items:
|
|
12744
|
+
$ref: "#/components/schemas/BuiltFromTable"
|
|
12745
|
+
contract:
|
|
12746
|
+
allOf:
|
|
12747
|
+
- $ref: "#/components/schemas/ColumnContract"
|
|
12748
|
+
description: >-
|
|
12749
|
+
The table's column contract, written by the build that produced
|
|
12750
|
+
it on both tiers: each column's native type, collation, how a
|
|
12751
|
+
stored read of it compares with live, and whether a gate over it
|
|
12752
|
+
is exact. A host that stores entries keeps it as written, as text
|
|
12753
|
+
if it likes, and returns it unparsed. A table whose entry has no
|
|
12754
|
+
contract (built before this field existed, or whose capture
|
|
12755
|
+
failed) is never served from: it answers live, with serve verdict
|
|
12756
|
+
reason `contract_missing`, and the next build rebuilds it in full.
|
|
12300
12757
|
upstreamRecomputeReason:
|
|
12301
12758
|
type: string
|
|
12302
12759
|
description: >-
|