@malloy-publisher/app 0.17.2 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/api-doc.yaml +619 -99
  2. package/dist/assets/{EnvironmentPage-DF2PahCR.js → EnvironmentPage-BYi5H87v.js} +1 -1
  3. package/dist/assets/{HomePage-DIYlgPCz.js → HomePage-DB-CSs0p.js} +1 -1
  4. package/dist/assets/{MainPage-C7PGAA5k.js → MainPage-2j-MpcYJ.js} +1 -1
  5. package/dist/assets/{ModelPage-BMoBnrW7.js → ModelPage-BQE-ZC6E.js} +2 -2
  6. package/dist/assets/{PackagePage-DD2vLSFe.js → PackagePage-BMv6ojk4.js} +1 -1
  7. package/dist/assets/{PackageSplatRoute-BYIMwnLL.js → PackageSplatRoute-BOAFRQKR.js} +2 -2
  8. package/dist/assets/{RenderedResult-CYJ2Y9Fm.es-C8nokn71.js → RenderedResult-QdYnecnr.es-PKDmuES7.js} +1 -1
  9. package/dist/assets/{RouteError-B8dE60Vs.js → RouteError-7Fw_wYUy.js} +1 -1
  10. package/dist/assets/{ThemeEditorPage-D0wf74fh.js → ThemeEditorPage-DmiRg7rU.js} +1 -1
  11. package/dist/assets/{ToggleButtonGroup-CX0_J2zR.js → ToggleButtonGroup-BXVbLuei.js} +1 -1
  12. package/dist/assets/{documentRoutes-DgSMAc0m.js → documentRoutes-DWIPC8nU.js} +1 -1
  13. package/dist/assets/{editPageMounted-BUGVg-_g.js → editPageMounted-BaGHeFZ5.js} +2 -2
  14. package/dist/assets/{index-DAQjZOAL.js → index-APmAmrTn.js} +1 -1
  15. package/dist/assets/{index-BQL8UUcK.js → index-BRdik0lA.js} +1 -1
  16. package/dist/assets/{index-BiOT4K_d.js → index-CHfKShi-.js} +1 -1
  17. package/dist/assets/{index-DRkw60sj.js → index-OQqQyWrE.js} +5 -5
  18. package/dist/assets/{index.es-DgNl8IqU.js → index.es-DLFu6xFm.js} +1 -1
  19. package/dist/assets/usePackageLinkNavigate-DTlEYsed.js +1 -0
  20. package/dist/assets/{usePackageRoute-BhB6txS6.js → usePackageRoute-pIAy965Q.js} +1 -1
  21. package/dist/index.html +1 -1
  22. package/package.json +2 -2
  23. package/dist/assets/usePackageLinkNavigate-bHr_AFYo.js +0 -1
package/dist/api-doc.yaml CHANGED
@@ -1687,6 +1687,14 @@ paths:
1687
1687
  `PACKAGE_IS_VERSIONED`), as is a package with no `latest` yet: publish a new version to
1688
1688
  change content.
1689
1689
 
1690
+ A `manifestLocation` URI that cannot be fetched or bound answers 500 with `reason`
1691
+ `MANIFEST_BIND_FAILED`, on a versioned package as on the version route, and on an
1692
+ unversioned one with nothing of the PATCH applied: its metadata and publisher.json stay as
1693
+ they were, and it serves what it served before, the manifest it had bound or, with none,
1694
+ live (or this server's own store, where the server restores unversioned packages from it).
1695
+ A manifest that binds with some of its tables declined (one the warehouse does not hold,
1696
+ say) is not a failure: it answers 200, and those sources answer live.
1697
+
1690
1698
  It keeps working, so that callers which predate versions do not break, and says it is
1691
1699
  deprecated: every response carries `Deprecation: true` and a `Link` to the package
1692
1700
  versions reference, every request is counted in `publisher_deprecated_usage_total`
@@ -1763,7 +1771,14 @@ paths:
1763
1771
  "409":
1764
1772
  $ref: "#/components/responses/Conflict"
1765
1773
  "500":
1766
- $ref: "#/components/responses/InternalServerError"
1774
+ description: >-
1775
+ The `manifestLocation` could not be fetched or bound (`reason`
1776
+ `MANIFEST_BIND_FAILED`; nothing of it was applied), or another
1777
+ internal error.
1778
+ content:
1779
+ application/json:
1780
+ schema:
1781
+ $ref: "#/components/schemas/Error"
1767
1782
  "503":
1768
1783
  $ref: "#/components/responses/ServiceUnavailable"
1769
1784
  delete:
@@ -2029,6 +2044,20 @@ paths:
2029
2044
  a PUT replaces the binding, and many generated clients drop a null field from the JSON
2030
2045
  they send. `manifestLocation` is the body's only field, so any other field is refused
2031
2046
  with 400 naming it, rather than read as a clear.
2047
+
2048
+ A manifest that cannot be fetched (unreachable, timed out, not a manifest) or bound
2049
+ answers 500 with `reason` `MANIFEST_BIND_FAILED` and the cause in the message, and
2050
+ nothing of it is applied: the version's `manifestLocation` stays what it was, the version
2051
+ is not marked host-owned, and it serves what it served before the request, the manifest
2052
+ it had bound or, with none, live (or this server's own runs' tables, for a version no
2053
+ host has bound). Its status says the same: `manifestBindingStatus`, `boundManifestUri` and
2054
+ `manifestEntryCount` describe that previous binding. One exception: when the failure came
2055
+ after the version's models moved, the previous manifest is fetched and bound again, and if
2056
+ that fails too the version reports `bind_failed`, as any failed rebind does (see
2057
+ `manifestBindingStatus`), and the server logs that failed bind.
2058
+ Releases before this one answered 200 here and reported the failure only as
2059
+ `manifestBindingStatus` `bind_failed`. A publish that names a `manifestLocation` still
2060
+ loads the version and reports a failed bind that way.
2032
2061
  parameters:
2033
2062
  - $ref: "#/components/parameters/environmentName"
2034
2063
  - $ref: "#/components/parameters/packageName"
@@ -2062,7 +2091,14 @@ paths:
2062
2091
  "424":
2063
2092
  $ref: "#/components/responses/PackageManifestError"
2064
2093
  "500":
2065
- $ref: "#/components/responses/InternalServerError"
2094
+ description: >-
2095
+ The manifest could not be fetched or bound (`reason`
2096
+ `MANIFEST_BIND_FAILED`; nothing of it was applied), or another
2097
+ internal error.
2098
+ content:
2099
+ application/json:
2100
+ schema:
2101
+ $ref: "#/components/schemas/Error"
2066
2102
  "503":
2067
2103
  $ref: "#/components/responses/ServiceUnavailable"
2068
2104
 
@@ -3954,7 +3990,12 @@ paths:
3954
3990
  (`admin-api-doc.yaml`); this route is removed in a later release.
3955
3991
 
3956
3992
  Drops one named table from a storage destination. Idempotent: a table that
3957
- does not exist answers 204 as well, so a retried drop is free.
3993
+ does not exist answers 204 as well, so a retried drop is free. The path's
3994
+ schema qualifies the table. On a destination whose `destinationSchema` is
3995
+ set and is not `main`, a `main` path answers `400` naming the
3996
+ `destinationSchema` (an earlier release read `main` as the destination's
3997
+ own schema): name the `destinationSchema` to drop a build table, and drop
3998
+ a table in `main` through the admin API.
3958
3999
 
3959
4000
  For a DuckLake destination this retires the table in the catalog; its data
3960
4001
  files stay in storage until a file cleanup reclaims them (see
@@ -4973,16 +5014,61 @@ components:
4973
5014
  another source), `destination_missing` (`storage=` names a
4974
5015
  destination the environment does not configure),
4975
5016
  `connection_cannot_hold_table` (database, on a connection whose
4976
- type creates no tables), `types_unrecorded` (database, bound, but
4977
- its manifest entry records no column types, neither `schema` nor
4978
- `nativeSchema`, so a change since the build cannot be ruled out;
4979
- rebuild it), `materialization_off` (a `#(materialize)`
5017
+ type creates no tables), `types_unrecorded` (retained, no longer
5018
+ produced: an entry with no recorded types reads
5019
+ `contract_missing` now), `materialization_off` (a `#(materialize)`
4980
5020
  source, which only the served copy reads, and the served copy is
4981
5021
  off: `PUBLISHER_MATERIALIZE`, and for `storage=`
4982
5022
  `PERSIST_STORAGE_MODE`), `served_copy` (a source the served copy
4983
5023
  reads, `#(materialize)` or `#@ persist`, whose table is bound and
4984
5024
  built, but no model's served copy re-roots it, so its queries are
4985
- answered live; `notServedIn` says where and why). An open set.
5025
+ answered live; `notServedIn` says where and why),
5026
+ `contract_missing` (bound, but its manifest entry carries no
5027
+ column contract, `ManifestEntry.contract`: built before contracts
5028
+ were recorded, or by an older worker), `incompatible` (bound, but
5029
+ the table no longer matches the contract its build recorded: a
5030
+ column gone, retyped or recollated since, or the source of a
5031
+ substituted table now declaring another type; `incompatibility`
5032
+ says what). Both judge the table itself, never anything local to
5033
+ one worker: a catalog read that failed or timed out leaves the
5034
+ table unread (answered live, read again), never `incompatible`.
5035
+ Both are non-terminal and never a plan-time refusal: a rebuild
5036
+ fixes them, and a source with either counts as stale, so the next
5037
+ build rebuilds it in full. Each names the generation it judged in
5038
+ `table`, so a consumer drops a verdict about a table it has since
5039
+ replaced. An open set.
5040
+ table:
5041
+ type: object
5042
+ required: [physicalTableName]
5043
+ description: >-
5044
+ With `contract_missing` or `incompatible`: the table generation
5045
+ the verdict judged, its `physicalTableName` and the `builtAt` its
5046
+ entry carried (absent when the entry carried none).
5047
+ properties:
5048
+ physicalTableName:
5049
+ type: string
5050
+ builtAt:
5051
+ type: string
5052
+ format: date-time
5053
+ incompatibility:
5054
+ type: object
5055
+ required: [code, columns]
5056
+ description: >-
5057
+ With `incompatible`: what changed (`column_gone`,
5058
+ `column_retyped`, `collation_changed`, `declared_moved`, or
5059
+ `upstream_altered`: a table an upstream it was built from
5060
+ changed under, found when a reload could not recompile; an open
5061
+ set) and the columns it changed (none for `upstream_altered`). A
5062
+ query's failed read of a table never makes it `incompatible`: it
5063
+ leaves the table unread, answered live, until the package's
5064
+ rebind reads its catalog and holds it to its contract.
5065
+ properties:
5066
+ code:
5067
+ type: string
5068
+ columns:
5069
+ type: array
5070
+ items:
5071
+ type: string
4986
5072
  notServedIn:
4987
5073
  type: array
4988
5074
  items:
@@ -5004,15 +5090,16 @@ components:
5004
5090
  running a query.
5005
5091
  servedCopyPending:
5006
5092
  type: boolean
5093
+ deprecated: true
5007
5094
  description: >-
5008
- Present, and always `true`, while some model that holds this source,
5009
- which its served copy reads (`#(materialize)` or `#@ persist`), has
5010
- yet to compile its served copy over the tables bound now. A bind
5011
- returns before that compile, so the verdict carries no served-copy
5012
- judgement yet: it may read `serves` for a table the compile will
5013
- leave unread. A host must re-read the verdict while it is present;
5014
- it is absent once every such model's copy is current, and then
5015
- `notServedIn` and a `served_copy` reason are final for the bind.
5095
+ Retained, no longer produced. A bind compiles each model's served
5096
+ copy over the new tables before they are swapped in. A freshness
5097
+ window that lapses changes the tables a query reads with no bind:
5098
+ from that edge, each query compiles its own copy without the
5099
+ lapsed table, the package recompiles each served copy at the edge,
5100
+ and until that compile lands a verdict leaves the lapsed table
5101
+ out by its recorded window, judged against the clock. A verdict
5102
+ is therefore never pending, and this field is never present.
5016
5103
  message:
5017
5104
  type: string
5018
5105
  description: What the verdict means for this source, in a sentence.
@@ -5938,6 +6025,18 @@ components:
5938
6025
  table (an inlined `join_many`) whose `refresh="incremental"`
5939
6026
  is not honoured: it is rebuilt in full on every refresh, and
5940
6027
  served (`subject` the source; `warn`).
6028
+ `materialize-extension-full-refresh`: an incremental
6029
+ `#(materialize)` extension whose watermark is not the same
6030
+ stored column as its incremental parent's: it is rebuilt in
6031
+ full over the parent's table whenever that table changes, and
6032
+ served (`subject` the extension; `warn`; the message names
6033
+ both watermarks).
6034
+ `materialize-extension-generation-unproven`: the newest run
6035
+ rebuilt an incremental extension in full because it could not
6036
+ prove which build of its parent's table it last read (neither
6037
+ the run's ledger entry nor the bound manifest records it;
6038
+ step reason `upstream_generation_skipped`) (`subject` the
6039
+ extension; `warn`).
5941
6040
  `rollup-join-one-key-repeated`: a rollup's last build found
5942
6041
  a `join_one` key repeated in the data, so queries that read
5943
6042
  that join beside other aggregates are answered live
@@ -6007,7 +6106,9 @@ components:
6007
6106
  `storage-column-type-mismatch`: a `storage=` table of any
6008
6107
  kind (`#@ persist`, `#(materialize)`, a rollup, a persisted
6009
6108
  view or query) stores a column as a type other than the one
6010
- its build declares. It is read through a cast to the
6109
+ its build declares, as its build wrote it (a change after
6110
+ the build is `materialization-table-incompatible`). It is
6111
+ read through a cast to the
6011
6112
  declared type where that is faithful, and otherwise
6012
6113
  answered live, never read as its stored type (one per
6013
6114
  source and column, `model` the model
@@ -6015,12 +6116,24 @@ components:
6015
6116
  view's or query's build source, the message naming the
6016
6117
  column, both types and which applies; `warn`; see
6017
6118
  docs/materialization.md).
6018
- `database-column-type-mismatch`: a bound table in a source's
6019
- own database whose column was altered, or dropped, outside a
6020
- build, so it no longer stores the declared type; it is read
6021
- through a cast where that is faithful, and otherwise answered
6022
- live, until the table is rebuilt (one per source and column,
6023
- `subject` the source; `warn`).
6119
+ `database-column-type-mismatch` is retained, no longer
6120
+ produced: a bound table altered outside a build is now
6121
+ `materialization-table-incompatible`, answered live whole
6122
+ until it is rebuilt, never read through a cast.
6123
+ `materialization-table-incompatible`: a bound table, on
6124
+ either tier, that no longer matches the column contract its
6125
+ build recorded (a column gone, retyped or recollated since,
6126
+ or its source now declaring another type than it was built
6127
+ for); it is answered live until a build rebuilds it (one per
6128
+ source, `subject` the source; `warn`; the serve verdict's
6129
+ `incompatible` names the table and what changed).
6130
+ `materialization-contract-missing`: a bound table whose
6131
+ entry carries no column contract (built before contracts
6132
+ were recorded); it is answered live until a build rebuilds
6133
+ it in full (one per source, `subject` the source; `warn`).
6134
+ `materialization-types-unrecorded` is retained, no longer
6135
+ produced: a table with no recorded types is
6136
+ `materialization-contract-missing` now.
6024
6137
  `table-kept`: a table an auto-run replaced
6025
6138
  when its source's table was renamed or moved, which
6026
6139
  Publisher keeps rather than drops: one at an author's exact
@@ -6059,6 +6172,12 @@ components:
6059
6172
  `connection_failed`, `timed_out`, `catalog_query_failed`,
6060
6173
  `not_found`, `ambiguous`, `unparseable`, `not_read`; `warn`;
6061
6174
  see docs/materialization.md).
6175
+ `storage-table-unread`: the same, for a bound `storage=`
6176
+ table whose columns its destination session could not read
6177
+ when it was bound, or that a query's failed read left
6178
+ unread until the package reads it again; the message names
6179
+ the table or rollup and its destination; same fields and
6180
+ reasons.
6062
6181
  `database-native-type-missing`: a database table is bound
6063
6182
  with no captured warehouse type (its manifest entry's
6064
6183
  `nativeSchema`) for a column whose field Malloy types as a big
@@ -6091,13 +6210,31 @@ components:
6091
6210
  rather than on the message (whose wording may change): the
6092
6211
  refusal record's `reason` on a `*-not-built` warning; the served copy's reason on
6093
6212
  `served-copy-not-served`; the unread reason on
6094
- `database-table-unread`; the kept table's reason on
6213
+ `database-table-unread` and `storage-table-unread`; the kept table's reason on
6095
6214
  `table-kept`; the serve verdict's reason on a
6096
6215
  `materialization-*` verdict warning; `storage_mode` on
6097
6216
  `materialization-storage-mode`; the rule a cell breaks on
6098
6217
  `malloynb-cell-refused` (`off_surface`, `caller_annotation`,
6099
6218
  `required_filter`, `restricted_mode`, `compile_error`). Always snake_case. An open
6100
6219
  string; absent on a finding that has none.
6220
+ sourceEntityId:
6221
+ type: string
6222
+ description: >-
6223
+ The content address (its manifest key) of the stored table a
6224
+ finding is about, so a client routes it without reading the
6225
+ message: set on `database-table-unread` and
6226
+ `storage-table-unread`, where `subject` names the source a
6227
+ query names (a rollup's base) and this names the unread
6228
+ table's own source. Absent on every other finding.
6229
+ sourceName:
6230
+ type: string
6231
+ description: >-
6232
+ The name of the source whose stored table a finding is about,
6233
+ beside `sourceEntityId`: for a rollup's table, the rollup's
6234
+ own source (`<base>__rollup__…`), not the base `subject`
6235
+ names. Set on `database-table-unread` and
6236
+ `storage-table-unread` when the build plan knows the table;
6237
+ absent otherwise.
6101
6238
  severity:
6102
6239
  type: string
6103
6240
  enum:
@@ -7177,8 +7314,7 @@ components:
7177
7314
  $ref: "#/components/schemas/NotebookCell"
7178
7315
  annotations:
7179
7316
  type: array
7180
- description:
7181
- Array of file-level (##) annotations attached to the notebook.
7317
+ description: Array of file-level (##) annotations attached to the notebook.
7182
7318
  items:
7183
7319
  type: string
7184
7320
  startingGivens:
@@ -9051,9 +9187,11 @@ components:
9051
9187
  This is a rule on statements, not on what a SELECT reads: that is
9052
9188
  bounded by the catalog role and by the session's storage secret,
9053
9189
  which on a managed connection attached read-only is scoped to the
9054
- `main` schema's recorded path, so a SELECT reads only that schema's
9055
- files; another schema's files, and any other object in the bucket,
9056
- are unsigned (403). Absent or false is the pre-existing behavior.
9190
+ recorded paths of the `main` schema and of the schemas
9191
+ `ducklakeConnection.readableSchemas` lists, so a SELECT reads only
9192
+ those schemas' files; another schema's files, and any other object
9193
+ in the bucket, are unsigned (403). Absent or false is the
9194
+ pre-existing behavior.
9057
9195
  fingerprint:
9058
9196
  type: string
9059
9197
  description: >
@@ -9584,13 +9722,47 @@ components:
9584
9722
  Storage destinations only; ignored on a connection. The schema a
9585
9723
  destination builds its tables into and binds them from, so an
9586
9724
  orchestrator can keep the tables it owns apart from a catalog's `main`
9587
- (where people put their own). Absent means `main`, the pre-existing
9725
+ (a table PUT may write people's own tables there; a load may not, so
9726
+ loads go in a schema created through the admin API). Absent means
9727
+ `main`, the pre-existing
9588
9728
  layout. The schema must already exist in the catalog: a build does not
9589
9729
  create it. A `#@ persist name=` that already names a schema keeps that
9590
9730
  schema. Must be a plain identifier (`[A-Za-z_][A-Za-z0-9_]*`).
9591
9731
  Serving reads the schema configured now, not the one a table was
9592
9732
  built into, so changing it on a destination re-points every bound
9593
9733
  table at once: rebuild or rebind as you change it.
9734
+ readableSchemas:
9735
+ type: array
9736
+ items:
9737
+ type: string
9738
+ pattern: "^[a-z_][a-z0-9_]*$"
9739
+ description: >-
9740
+ Additional schemas a managed read-only view may read. Only on a
9741
+ connection with `managed: true` and a read-only attach (never on a
9742
+ storage destination). `main` is always readable and may be omitted.
9743
+ The view's storage secret is scoped to the recorded path of `main`
9744
+ and of each schema listed here, so a SELECT reads those schemas'
9745
+ files and nothing else in the bucket. Each name is a plain lowercase
9746
+ identifier (`[a-z_][a-z0-9_]*`); order and duplicates are ignored. A
9747
+ schema the catalog does not record, or whose recorded path is not
9748
+ under the catalog's data path, is left out of the scope. On a local
9749
+ data path the view's file allowlist is scoped the same way. SQL on
9750
+ the connection may name a listed schema's tables as it does
9751
+ `main`'s, its schema and table listings show the listed schemas
9752
+ beside `main`, and every other schema stays refused. `main` is
9753
+ implicit, and the request is refused with a 400 when it lists
9754
+ `memory`, `information_schema`, `pg_catalog`, `temp`, `system` or a
9755
+ name starting with `__ducklake_metadata_`, or a schema that a storage
9756
+ destination of the same environment on the same catalog builds into
9757
+ (that destination's stored copies, gated sources' rows among them,
9758
+ would be readable by name without their gate); the same pair in a
9759
+ configured environment fails that environment's load at startup. A
9760
+ destination that shares the catalog and builds into `main` must set
9761
+ `destinationSchema`. Create a schema in the
9762
+ catalog before listing it: a schema listed before it exists gets no
9763
+ file access until the connection is next edited or the server
9764
+ restarts. Removing a schema from the list takes effect for
9765
+ already-loaded packages only after they reload.
9594
9766
  readOnly:
9595
9767
  type: boolean
9596
9768
  default: true
@@ -9999,7 +10171,12 @@ components:
9999
10171
  recorded on the run instead: as a `SourceFailure` with `refused`
10000
10172
  and `refusalReason` on a run with `buildInstructions`, otherwise
10001
10173
  in the run's `metadata.refusedSources`, or its `error` when
10002
- nothing else was left to build.
10174
+ nothing else was left to build. `failures` holds one outcome per
10175
+ address, so on a run with `buildInstructions` a refused source
10176
+ whose address holds another outcome (a table an eligible source
10177
+ built, another source's build failure, or another source's
10178
+ refusal) is in `metadata.refusedSources` instead, with its own
10179
+ reason, on a FAILED run too.
10003
10180
 
10004
10181
  TABLE_OWNED_ELSEWHERE and TABLE_OWNERSHIP_UNVERIFIED, on a 400,
10005
10182
  mean a build was refused before it wrote because its `name=` is
@@ -10036,6 +10213,15 @@ components:
10036
10213
  package's versions share (name tables of its own in
10037
10214
  `buildInstructions`). The message says which.
10038
10215
 
10216
+ MANIFEST_BIND_FAILED, on a 500 from
10217
+ `set-package-version-manifest` or the deprecated `update-package`
10218
+ PATCH that names a `manifestLocation` (on a versioned or an
10219
+ unversioned package), means the manifest could not be fetched or
10220
+ bound, so nothing of it was applied: the `manifestLocation` stays
10221
+ what it was (an unversioned package's whole PATCH is undone,
10222
+ publisher.json included), and the package or version serves what
10223
+ it served before. The message carries the cause.
10224
+
10039
10225
  Deliberately an open string rather than an enum. Generators render
10040
10226
  an enum closed, so adding a second value here would break every
10041
10227
  client generated before it -- on the one field whose purpose is to
@@ -10939,6 +11125,7 @@ components:
10939
11125
  given_where_over_unstored_field,
10940
11126
  unreadable_grain,
10941
11127
  upstream_unread,
11128
+ upstream_table_unusable,
10942
11129
  ]
10943
11130
  description: >-
10944
11131
  The bounded refusal reason; `message` says the specifics.
@@ -11002,6 +11189,17 @@ components:
11002
11189
  and a host's instruction for it is refused, until a reload or a
11003
11190
  plan refresh reads the catalog and plans it at its address; the
11004
11191
  `*-not-built` warning names the table).
11192
+ `upstream_table_unusable` (a persisted source, view, named query
11193
+ or rollup that is built from its upstream's stored table, and
11194
+ never by recomputing the upstream from raw, in any build, when
11195
+ that table cannot be read where it is built: a database one over
11196
+ an upstream declared `storage=`, whose table lives in a storage
11197
+ destination a build in the warehouse cannot read; a `storage=` one
11198
+ over an upstream stored in another destination; or one over an
11199
+ upstream that declares a persisted table but is itself refused,
11200
+ or not planned, so it has none. `message` names the upstream and
11201
+ why. Terminal until the model changes; the declaration is
11202
+ answered live).
11005
11203
 
11006
11204
 
11007
11205
  A persisted view or named query: `materialization_off` (persisted
@@ -11678,30 +11876,14 @@ components:
11678
11876
  strictUpstreams:
11679
11877
  type: boolean
11680
11878
  default: false
11879
+ deprecated: true
11681
11880
  description: >-
11682
- When true, a persist upstream that is neither built here nor present
11683
- in referenceManifest fails the build (compiler strict mode) instead
11684
- of silently recomputing it live. Per-unit dispatch should set this
11685
- true.
11686
- warehouseReach:
11687
- type: string
11688
- default: recompute
11689
- description: >-
11690
- What a strict build (`strictUpstreams: true`) does with a
11691
- `storage=` source whose only build recomputes a stored upstream
11692
- from the source warehouse: the source reaches the warehouse through
11693
- an intermediate that no stored table can stand in for, so no build
11694
- over the stored tables exists for it. `recompute` (the default,
11695
- and what an absent or null value means) builds it and reports
11696
- `upstreamReuse: recomputed` with the reason; `refuse` fails the
11697
- source instead, with that reason in its `SourceFailure.reason` and
11698
- `retryable: false`, and nothing reads the warehouse. Non-strict
11699
- builds ignore it, as they ignore `strictUpstreams`.
11700
-
11701
-
11702
- An open string, not an enum, so a later value needs no client
11703
- change; today's values are `recompute` and `refuse`, and any other
11704
- is a 400.
11881
+ Deprecated: accepted and ignored. Every build is strict: a persist
11882
+ upstream that is neither built here nor present in
11883
+ referenceManifest (nor carried by a standalone run, which builds
11884
+ the upstreams a named source reads when it cannot carry them)
11885
+ fails the build, and a downstream is never built by recomputing
11886
+ its upstreams from raw.
11705
11887
  ledger:
11706
11888
  type: array
11707
11889
  items:
@@ -11715,9 +11897,10 @@ components:
11715
11897
  every existing caller. Present (even empty), it IS the ledger for
11716
11898
  this run: boundaries are read from here, the local store is neither
11717
11899
  read nor written, and an incremental source with no entry here
11718
- seeds. An entry that does not validate against this run is a 400
11719
- (see `LedgerEntry`); an entry for a source being `reseed`-ed is
11720
- ignored.
11900
+ seeds. An entry that does not validate against this run is a 400,
11901
+ while one whose own shape is malformed is dropped and its source
11902
+ seeds (see `LedgerEntry`); an entry for a source being `reseed`-ed
11903
+ is ignored.
11721
11904
 
11722
11905
  For an orchestrator that dispatches one package's refreshes across
11723
11906
  interchangeable workers: the local store is per-process, so a
@@ -11783,6 +11966,67 @@ components:
11783
11966
  it there. Optional and additive.
11784
11967
  items:
11785
11968
  $ref: "#/components/schemas/Column"
11969
+ schema:
11970
+ type: array
11971
+ description: >-
11972
+ For a `storage=` upstream: the `schema` its build reported on its
11973
+ manifest entry, sent back as it came. A `storage=` build stacked
11974
+ on the referenced table declares exactly these columns, so without
11975
+ it (and without this worker's own record of the table) that build
11976
+ is refused rather than recomputing the upstream. Optional and
11977
+ additive.
11978
+ items:
11979
+ $ref: "#/components/schemas/Column"
11980
+ dataAsOf:
11981
+ type: string
11982
+ format: date-time
11983
+ description: >-
11984
+ The upstream entry's `dataAsOf`, sent back as it came: how fresh
11985
+ the referenced table is. A downstream with a freshness window
11986
+ reads a referenced table only when it is fresh enough by this
11987
+ instant; without it the table is of unknown age, and such a
11988
+ downstream is refused rather than built from raw. Optional and
11989
+ additive.
11990
+ builtAt:
11991
+ type: string
11992
+ format: date-time
11993
+ description: >-
11994
+ The upstream entry's `builtAt`, sent back as it came, so a
11995
+ downstream's `builtFrom` names which build of the table it read.
11996
+ Optional and additive.
11997
+ contract:
11998
+ allOf:
11999
+ - $ref: "#/components/schemas/ColumnContract"
12000
+ description: >-
12001
+ The upstream entry's `contract`, sent back unparsed. A downstream
12002
+ built over the referenced table reads it to know how the table's
12003
+ strings compare with live, and, for a pair table, whether its leaf
12004
+ key check passed; without it those columns are unknown, and a
12005
+ downstream that needs them is refused. Optional and additive.
12006
+ ledger:
12007
+ allOf:
12008
+ - $ref: "#/components/schemas/LedgerEntry"
12009
+ description: >-
12010
+ The referenced upstream's ledger entry (`ManifestEntry.ledger`),
12011
+ exactly as the publisher reported it, sent back whole: opaque, like
12012
+ an entry in `BuildInstructions.ledger`. Absent means unknown.
12013
+
12014
+ An incremental `#(materialize)` extension built in this run over a
12015
+ referenced incremental parent reads the parent's history from it
12016
+ (`seededBy`, `advances`, `advancedBy`) to prove it may refresh by
12017
+ delta. Without it, on a worker whose bound manifest and own store
12018
+ do not name the parent's current build, the extension rebuilds in
12019
+ full (`upstream_generation_skipped`). It is preferred over both.
12020
+
12021
+ It must name the reference's table and source (the same
12022
+ `connectionName`, `physicalTableName`, `storageDestinationName` and
12023
+ `sourceEntityId`). One that does not, or whose own shape is malformed
12024
+ (see `LedgerEntry`), is dropped with a logged warning and the request
12025
+ proceeds as if it were absent, never a 400: the extensions fall back
12026
+ to the bound manifest's entry, then the worker's own, and rebuild in
12027
+ full only when neither proves which build of the parent they read. Keys this release does not know are
12028
+ kept. Unlike `BuildInstructions.ledger`, it names a table this run
12029
+ does not build, and is never written to. Optional and additive.
11786
12030
 
11787
12031
  BuildInstruction:
11788
12032
  type: object
@@ -11863,10 +12107,25 @@ components:
11863
12107
  returns it verbatim in `BuildInstructions.ledger` on the next run —
11864
12108
  only the publisher derives these values.
11865
12109
 
12110
+ OPAQUE to hosts: store each entry whole (as JSON, say) and echo it back
12111
+ unchanged. Do not rebuild it from the fields listed here. The publisher
12112
+ may add keys at any time (`additionalProperties`): it carries a key it
12113
+ does not know on an echoed entry onto the entry the next run reports
12114
+ (a release before this one dropped such keys), and a key a host drops
12115
+ is lost to the next run.
12116
+
11866
12117
  A returned entry is validated at create time: one naming a table the
11867
12118
  run does not instruct, or whose `sourceEntityId` is no longer the
11868
- source's, is a 400. After a publish or rollback that changes the
11869
- source, delete the entry (the source seeds) or set `reseed`.
12119
+ source's, is a 400, as are duplicate entries for one table. An entry
12120
+ whose own shape is malformed (not an object, a required field missing,
12121
+ empty or not a string, an unknown `strategy`, `mergeKeys` not an array
12122
+ of strings, an empty `storageDestinationName`, an unusable
12123
+ `physicalTableName`) is not a 400: it is dropped with a logged warning
12124
+ before those checks, and its source seeds (rebuilds in full) under the
12125
+ reason `ledger_entry_malformed`, so one corrupted entry cannot wedge
12126
+ every build of the package. After a publish or rollback that changes
12127
+ the source, delete the entry (the source seeds) or set `reseed`.
12128
+ additionalProperties: true
11870
12129
  required:
11871
12130
  [
11872
12131
  connectionName,
@@ -11944,6 +12203,204 @@ components:
11944
12203
  `BuildInstruction.sourceEntityId`. The match is what guarantees a
11945
12204
  boundary is never applied to a table whose definition has moved on
11946
12205
  since it was measured.
12206
+ advancedBy:
12207
+ type: string
12208
+ description: >-
12209
+ The materialization run that last changed the table: a delta, or
12210
+ a full rebuild. A run that applied nothing (`refresh: none`) keeps
12211
+ the one before. Which build of the table the boundary describes,
12212
+ for an extension table built over it (`parent.advancedBy`).
12213
+ Returned verbatim; absent on an entry an older release reported.
12214
+ parent:
12215
+ type: object
12216
+ description: >-
12217
+ For an incremental extension table (a `#(materialize)` extension
12218
+ of a `#(materialize)` parent, built over the parent's table): which
12219
+ build of the parent's table this boundary was reached over, as
12220
+ `builtFrom` names it. The next refresh deltas only when the
12221
+ parent's table is still that build, or was refreshed in that run
12222
+ from exactly it; otherwise the extension rebuilds in full over the
12223
+ parent's table (step reason `upstream_generation_skipped`), since a
12224
+ delta could miss rows a parent refresh it never read restated.
12225
+ Returned verbatim like every other field; a caller that drops it
12226
+ costs each extension a full rebuild, never a wrong row. Absent for
12227
+ any other source.
12228
+ required: [sourceEntityId]
12229
+ properties:
12230
+ sourceEntityId:
12231
+ type: string
12232
+ description: The parent's content address, as its manifest entry is keyed.
12233
+ advancedBy:
12234
+ type: string
12235
+ description: >-
12236
+ The parent's own `ledger.advancedBy` when the extension read
12237
+ it: the build of the parent's table it read, compared with
12238
+ the one the parent's next refresh starts from.
12239
+ builtAt:
12240
+ type: string
12241
+ format: date-time
12242
+ description: The parent entry's `builtAt` when the extension read it.
12243
+ coveredThrough:
12244
+ type: string
12245
+ description: >-
12246
+ The parent's own `ledger.coveredThrough` when the extension read
12247
+ it, when the parent is incremental.
12248
+ coveredThroughType:
12249
+ type: string
12250
+ description: The Malloy type of `coveredThrough`.
12251
+
12252
+ BuiltFromTable:
12253
+ type: object
12254
+ description: >-
12255
+ One upstream table a build read (`ManifestEntry.builtFrom`).
12256
+ required: [sourceEntityId, physicalTableName]
12257
+ properties:
12258
+ sourceEntityId:
12259
+ type: string
12260
+ description: >-
12261
+ The upstream's CONTENT address: the key of its entry in the
12262
+ manifest the build read.
12263
+ physicalTableName:
12264
+ type: string
12265
+ description: The upstream table's logical (unquoted) name, as its entry holds it.
12266
+ storageDestinationName:
12267
+ type: string
12268
+ description: >-
12269
+ The `storage=` destination the upstream table lives in; absent for
12270
+ a table in its source's own warehouse.
12271
+ builtAt:
12272
+ type: string
12273
+ format: date-time
12274
+ description: >-
12275
+ The upstream entry's own `builtAt`: which build of that table was
12276
+ read. Absent when its entry carries none (a reference, or an entry
12277
+ written before 0.17.2).
12278
+ contractDigest:
12279
+ type: string
12280
+ description: >-
12281
+ A digest of the upstream table's column contract
12282
+ (`ManifestEntry.contract`: each column's name, native type and
12283
+ collation) as this build read it. A downstream is carried forward
12284
+ only while its upstream's current entry still has this digest, so
12285
+ a rebuilt or altered upstream rebuilds its readers. Absent when
12286
+ the upstream carried no contract.
12287
+ coveredThrough:
12288
+ type: string
12289
+ description: >-
12290
+ The upstream's incremental boundary when the build read it: its
12291
+ entry's `ledger.coveredThrough`, as canonical scalar text. Absent
12292
+ when the upstream is not incrementally refreshed. An incremental
12293
+ extension's range ends no later than this, so it never records
12294
+ coverage its parent's table lacks.
12295
+
12296
+ ColumnContract:
12297
+ type: object
12298
+ additionalProperties: true
12299
+ description: >-
12300
+ What a materialized table's build recorded about each of its columns,
12301
+ so a stored read is judged against facts recorded once at build rather
12302
+ than probed per query. A host that stores entries keeps it as written
12303
+ (as text is fine) and sends it back unparsed. Readers ignore keys they
12304
+ do not know, at every level, so later releases may add keys. An entry
12305
+ with no `contract`, an empty one, or one without `v` has no contract:
12306
+ its table is not served from until it is rebuilt (serve verdict
12307
+ reason `contract_missing`). A column the contract does not list is
12308
+ treated as unknown: `compare` `none`, `gateExact` false.
12309
+ properties:
12310
+ v:
12311
+ type: integer
12312
+ description: The contract's shape version. `1`.
12313
+ producer:
12314
+ type: string
12315
+ description: The Publisher version whose build wrote it; diagnostic only.
12316
+ dialect:
12317
+ type: string
12318
+ description: >-
12319
+ The dialect of the engine holding the table: the warehouse's for a
12320
+ database table, the destination's (`duckdb`) for a `storage=` one.
12321
+ defaultCollation:
12322
+ type: string
12323
+ description: >-
12324
+ The holding engine's default collation as the build read it,
12325
+ normalised (`binary` for a byte-wise default). Absent when unread.
12326
+ columns:
12327
+ type: array
12328
+ description: The table's columns, in table order.
12329
+ items:
12330
+ $ref: "#/components/schemas/ContractColumn"
12331
+ keys:
12332
+ type: object
12333
+ description: >-
12334
+ The key checks the table's build ran, each named
12335
+ `<level>:<subject>.<keyColumn>` (or `<level>:<keyColumn>` when it
12336
+ has no subject), with whether the key held one row per value and
12337
+ no NULL. `leaf`: a pair table's (an `inline=` join_many's) leaf
12338
+ key, its subject the join path (`leaf:items.options.option_id`);
12339
+ a view built over a pair table needs it recorded as passed.
12340
+ `rollup`: a rollup's own key, its one grain dimension, with no
12341
+ subject (`rollup:category`). `parent`: the primary key of a query
12342
+ source that reads the rollup through a join_many, and `stored`: a
12343
+ stored source's own primary key, each with the source as its
12344
+ subject, named by its sourceID with the file relative to the
12345
+ package (`parent:orders@models/orders.malloy.id`). A rollup or
12346
+ source check serves a join only under the key the model declares
12347
+ now. Readers look up the names they need and never parse one;
12348
+ an unknown name or level is ignored.
12349
+ additionalProperties:
12350
+ type: object
12351
+ required: [unique]
12352
+ properties:
12353
+ unique:
12354
+ type: boolean
12355
+ level:
12356
+ type: string
12357
+ description: >-
12358
+ `leaf`, `rollup`, `parent` or `stored`, as the name's
12359
+ prefix. An open set.
12360
+
12361
+ ContractColumn:
12362
+ type: object
12363
+ additionalProperties: true
12364
+ required: [name, nativeType]
12365
+ description: One column of a `ColumnContract`.
12366
+ properties:
12367
+ name:
12368
+ type: string
12369
+ nativeType:
12370
+ type: string
12371
+ description: >-
12372
+ The column's type as the holding engine's catalog names it, read
12373
+ from the table the build wrote, by the same catalog read a bind
12374
+ makes.
12375
+ collation:
12376
+ type: [string, "null"]
12377
+ description: >-
12378
+ For a string column, the stored column's collation identity as the
12379
+ holding engine's catalog reports it (normalised; `binary` for
12380
+ byte-wise). Null or absent for a non-string column.
12381
+ compare:
12382
+ type: string
12383
+ description: >-
12384
+ What a stored read of this column may answer in place of live:
12385
+ `exact` (equality, grouping, filters and ordering all match live),
12386
+ `equality` (equality, grouping, equality filters and joins match;
12387
+ ordering and ranges may not), or `none` (no string comparison is
12388
+ known to match). Every non-string column is `exact`. An open set:
12389
+ read an unknown value as `none`.
12390
+ gateExact:
12391
+ type: boolean
12392
+ description: >-
12393
+ Whether a row-level gate comparing this column reads the same rows
12394
+ from the stored table as live (a binary64 double read from a
12395
+ binary64 source, never a DECIMAL or float4 stored as a double, nor
12396
+ a 128-bit integer).
12397
+ declaredType:
12398
+ type: string
12399
+ description: >-
12400
+ The Malloy type the build source declared for this column when the
12401
+ table was built. A bind whose source now declares another type
12402
+ finds the table incompatible (`declared_moved`): its values are of
12403
+ the type it was built for.
11947
12404
 
11948
12405
  BuildManifest:
11949
12406
  type: object
@@ -12047,9 +12504,33 @@ components:
12047
12504
  description: >-
12048
12505
  A bounded code for a failure a client may branch on, beside
12049
12506
  `reason`'s prose: `table-owned-elsewhere` (the build's `name=` is
12050
- held by a table this package does not own) or
12051
- `table-ownership-unverified` (who holds it could not be read). An
12052
- open set; absent for a failure that has none.
12507
+ held by a table this package does not own),
12508
+ `table-ownership-unverified` (who holds it could not be read), or
12509
+ `contract_capture_failed` (the build wrote its table but could not
12510
+ read back its column contract, `ManifestEntry.contract`, which a
12511
+ table must carry to be served from). `contract_capture_failed` is
12512
+ non-terminal, never a refusal: a rebuild fixes it, and the source
12513
+ is `retryable`. The read runs before the write is swapped in or
12514
+ committed wherever the build has a staging table or a transaction,
12515
+ so the previous table is left as it was; an incremental delta,
12516
+ which writes in place, fails after its write, and its previous
12517
+ entry then understates the table's freshness, never its rows.
12518
+ `schema_incompatible` (a build whose upstream's stored table is
12519
+ not what it was planned or built over: a `storage=` view's or
12520
+ named query's upstream whose columns differ from its plan's, or
12521
+ any upstream table altered since its build). It
12522
+ is non-terminal, never a refusal: the package reads its tables and
12523
+ derives its plan again at once, and the next build either builds
12524
+ the source over the upstream's table as it is or the plan refuses
12525
+ it (`upstream_table_unusable`); the source is `retryable`.
12526
+ `instruction_unresolved` (an instruction no source in the run's
12527
+ build plan resolves to, so nothing was built for it; not
12528
+ `retryable` until the caller reads the plan again). Every
12529
+ instructed source ends in `entries` or `failures`: one the run's
12530
+ plan refused since the caller read it is a refusal carrying the
12531
+ plan's reason, and any other unmatched instruction fails with this
12532
+ code; none is dropped. An open set; absent for a failure that has
12533
+ none.
12053
12534
  refused:
12054
12535
  type: boolean
12055
12536
  description: >-
@@ -12071,14 +12552,13 @@ components:
12071
12552
  eligibility refusal (always, beside `refused`), a Malloy or SQL
12072
12553
  compile defect (a syntax or parser error), a rejected credential or
12073
12554
  missing grant (a message that says permission or access denied), a
12074
- warehouse's own data or syntax error, and a source refused under
12075
- `strictUpstreams` because a persisted upstream it reads failed
12076
- deterministically earlier in the same run. That last source
12555
+ warehouse's own data or syntax error, and a source that fails
12556
+ because a persisted upstream it reads failed deterministically
12557
+ earlier in the same run (every build is strict, so it is never
12558
+ recomputed from raw instead). That last source
12077
12559
  inherits its upstream's classification (`true` when any such
12078
12560
  upstream's failure is transient) and its `reason` names the
12079
- upstream's own failure. Also `false` for a source a strict build
12080
- refused under `warehouseReach: refuse`, whose only build would
12081
- recompute its stored upstreams from the warehouse.
12561
+ upstream's own failure.
12082
12562
 
12083
12563
 
12084
12564
  A warehouse's own data or syntax error is one the warehouse names
@@ -12306,35 +12786,73 @@ components:
12306
12786
  For a source that reads another persisted source, how this table's
12307
12787
  rows were computed from it. `reused`: every persisted upstream was
12308
12788
  read from its already-materialized table, so the rows are a
12309
- function of those snapshots and consistent with them. `recomputed`:
12310
- at least one persisted upstream was recomputed from its definition
12311
- and inlined into this build, because its table could not be read --
12312
- on either tier, an upstream this build neither materialized nor was
12313
- handed by reference; for a database build, an upstream that
12314
- landed in a `storage=` destination; for a `storage=` build, a
12315
- source that reaches the warehouse through a non-persisted source,
12316
- or whose shape does not compile in the destination; on the
12317
- database tier, an upstream whose table holds other columns than
12318
- its build recorded (retyped or dropped since), could not be read,
12319
- or whose build recorded no column types; and always, for a
12320
- persisted view or named query, which builds from its source's
12321
- definition. `upstreamRecomputeReason` says which. Such a table reflects the
12322
- warehouse at THIS build's time rather than the upstream's
12323
- snapshot, so the two can disagree when their refresh cadences
12324
- differ.
12325
-
12326
- Not a location: it does not name the table the rows came from.
12327
- Absent for a source that reads no persisted upstream, which has one
12328
- way to build and no choice to report.
12329
-
12330
- A database rollup reports what its build actually read: `reused`
12331
- only when it built from its base's materialized table, `recomputed`
12332
- when it could not because that table holds other columns than its
12333
- build recorded, could not be read, or recorded no column types,
12334
- and absent when it built from the warehouse for any other reason. Before
12335
- 0.15.0 every rollup over a persisted base reported `reused`. A
12336
- `storage=` rollup reports `reused` only when it stacked on a stored
12337
- table.
12789
+ function of those snapshots and consistent with them.
12790
+
12791
+
12792
+ Every build is strict: a downstream is built over its upstreams'
12793
+ tables or not at all, and is never built by recomputing an
12794
+ upstream from raw. A downstream the plan cannot build over its
12795
+ upstreams' tables is refused when the package is planned
12796
+ (`upstream_table_unusable`), and one whose upstream's table a run
12797
+ cannot read fails that build (a missing upstream, a moved table
12798
+ as `schema_incompatible`, a shape the destination cannot carry);
12799
+ neither reports `upstreamReuse`.
12800
+
12801
+
12802
+ `recomputed`: retained, and no longer planned. No build is
12803
+ planned to read a persisted upstream's definition rather than its
12804
+ table: a persisted view, named query or rollup that cannot be
12805
+ built over its upstream's table is refused at plan. The value
12806
+ stays for the run's own check, which labels a build whose SQL
12807
+ inlined an upstream it should have read (with
12808
+ `upstreamRecomputeReason` naming it); a strict build refuses such
12809
+ a build before writing it, so an entry is not expected to carry
12810
+ it.
12811
+
12812
+
12813
+ Not a location: it does not name the table the rows came from
12814
+ (`builtFrom` does). Absent for a source that reads no persisted
12815
+ upstream, which has one way to build and no choice to report. A
12816
+ rollup reports `reused` when it built from its base's table, and
12817
+ nothing otherwise.
12818
+ builtAt:
12819
+ type: string
12820
+ format: date-time
12821
+ description: >-
12822
+ When the run that produced this entry built its table: the instant
12823
+ its build finished. Not a freshness anchor (that is `dataAsOf`).
12824
+ A host that stores entries keeps it as written, so a downstream's
12825
+ `builtFrom` can name the build of each table it read. Absent on an
12826
+ entry written before 0.17.2, and on a reference.
12827
+ builtFrom:
12828
+ type: array
12829
+ description: >-
12830
+ The stored tables of other persisted sources this table's build
12831
+ read in place of their definitions, each named as the run's
12832
+ manifest held it, with that table's `builtAt`. Recorded for every
12833
+ build that read an upstream's table: a database or `storage=`
12834
+ build whose warehouse SQL read it (a chained `#@ persist` source,
12835
+ a persisted view or named query, or a rollup built over its
12836
+ base's table), and a `storage=` build that read its upstreams'
12837
+ tables in its destination (a chained source, an extension, or a
12838
+ rollup that grouped its base's stored table). Provenance, not a location the
12839
+ entry is served from: the entry's own table is
12840
+ `physicalTableName`. Absent, or empty (read the same), when the
12841
+ build read no upstream's table.
12842
+ items:
12843
+ $ref: "#/components/schemas/BuiltFromTable"
12844
+ contract:
12845
+ allOf:
12846
+ - $ref: "#/components/schemas/ColumnContract"
12847
+ description: >-
12848
+ The table's column contract, written by the build that produced
12849
+ it on both tiers: each column's native type, collation, how a
12850
+ stored read of it compares with live, and whether a gate over it
12851
+ is exact. A host that stores entries keeps it as written, as text
12852
+ if it likes, and returns it unparsed. A table whose entry has no
12853
+ contract (built before this field existed, or whose capture
12854
+ failed) is never served from: it answers live, with serve verdict
12855
+ reason `contract_missing`, and the next build rebuilds it in full.
12338
12856
  upstreamRecomputeReason:
12339
12857
  type: string
12340
12858
  description: >-
@@ -12510,8 +13028,10 @@ components:
12510
13028
  in: path
12511
13029
  required: true
12512
13030
  description: |
12513
- Schema within the storage destination. A table built from a bare
12514
- physical name lives in `main`.
13031
+ Schema within the storage destination: the path's table is `{schemaName}.{tableName}`.
13032
+ A build writes a bare physical name into the destination's `destinationSchema`
13033
+ (`main` when it declares none), so a drop in `main` on a destination that sets
13034
+ another `destinationSchema` answers `400` naming it.
12515
13035
  schema:
12516
13036
  $ref: "#/components/schemas/IdentifierPattern"
12517
13037
  materializationId: