@malloy-publisher/server 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4659,9 +4659,11 @@ components:
4659
4659
  format: date-time
4660
4660
  expiredSnapshots:
4661
4661
  type: integer
4662
+ format: int64
4662
4663
  description: Snapshots this cleanup expired
4663
4664
  deletedFiles:
4664
4665
  type: integer
4666
+ format: int64
4665
4667
  description: Data and delete files this cleanup removed from storage
4666
4668
 
4667
4669
  VersionIdPattern:
@@ -6260,6 +6262,14 @@ components:
6260
6262
  `persist-incremental-no-merge-key`: an incremental source
6261
6263
  with no `merge_key=`, so each refresh replaces its watermark
6262
6264
  range (`subject` the source; `warn`).
6265
+ `persist-reads-current-time`: a `#@ persist` source,
6266
+ persisted view or persisted named query whose stored
6267
+ relation reads the current time (`now`, or a relative time
6268
+ filter string such as `f'last 7 days'`), so its answers are
6269
+ as of its last build and it is rebuilt on every run; the
6270
+ message names where it reads the clock and how to answer as
6271
+ of each query instead (one per table, `subject` the source,
6272
+ the view as `<source> -> <view>`, or the query; `warn`).
6263
6273
  `persist-incremental-shared-address`: sources that compile to
6264
6274
  the same SQL on one connection, so they share one table and
6265
6275
  one boundary, where at least one is incremental (one per
@@ -6681,6 +6691,7 @@ components:
6681
6691
  minimum: 1
6682
6692
  llm_tokens:
6683
6693
  type: integer
6694
+ format: int64
6684
6695
  minimum: 1
6685
6696
  job_minutes:
6686
6697
  type: integer
@@ -8941,6 +8952,7 @@ components:
8941
8952
  histogram for rates and percentiles.
8942
8953
  queryCostBytes:
8943
8954
  type: ["integer", "null"]
8955
+ format: int64
8944
8956
  description: >-
8945
8957
  Warehouse bytes this query SCANNED, as reported by the backend that
8946
8958
  ran it. Not what it is billed — see below.
@@ -9177,11 +9189,14 @@ components:
9177
9189
  description: >-
9178
9190
  For a `NOT_SERVED` skip, the serve verdict's reason the table
9179
9191
  answers no query, from the same set as `QueryPathWarning.code`;
9180
- for a table only the served copy reads, `served_copy` also when
9181
- the served copy does not re-root the queried source (the
9192
+ for a `storage=` table only the served copy reads, `served_copy`
9193
+ also when the served copy declined this query on it, such as
9194
+ when it does not re-root the queried source (the
9182
9195
  `served-copy-not-served` package warning says why). Always
9183
- snake_case. An open set. Absent on any other outcome, and on a
9184
- `NOT_SERVED` skip whose verdict is not known.
9196
+ snake_case. An open set. Absent on any other outcome, on a
9197
+ `NOT_SERVED` skip whose verdict is not known, and on a database
9198
+ table the served copy declined for this query alone (its
9199
+ `detail` says why).
9185
9200
 
9186
9201
 
9187
9202
  Retained, no longer produced (shipped in 0.14.0):
@@ -9258,9 +9273,24 @@ components:
9258
9273
  - RUN_FAILED
9259
9274
  description: >-
9260
9275
  Why a table could not answer a query. `NOT_BUILT`, it is not bound to
9261
- this package yet; `NOT_SERVED`, its serve verdict is `live`, so it
9262
- answers no query, and the candidate's `code` names the verdict's
9263
- reason; `OPTED_OUT`, the queried source opts out of its tables with
9276
+ this package yet; `NOT_SERVED`, either its serve verdict is `live`,
9277
+ so it answers no query, and the candidate's `code` names the
9278
+ verdict's reason, or the table otherwise serves and the served copy
9279
+ declined this one query on it. A `storage=` table only the served
9280
+ copy reads is then `NOT_SERVED` with `code` `served_copy` when the
9281
+ served copy re-roots nothing the query reads, cannot graft a gate on
9282
+ the queried source, would answer without a column a gate or the
9283
+ result (through a wildcard) needs because it leaves that column out
9284
+ of a stored table's type, would expose a field the compile of record
9285
+ does not classify or carry, resolves a composite to another member
9286
+ than live, or the source's ungated `where:` reads a column the table
9287
+ does not hold exactly or does not compare as its source does (a
9288
+ zoned timestamp, or a collation: on Postgres a database table's
9289
+ stored collation that differs from its source's or cannot be read).
9290
+ A database table is `NOT_SERVED` this way only for that last case,
9291
+ with a `detail` and no `code`. A query that itself names a column a
9292
+ stored table leaves out is `MISSING_FIELD`, and a gate the table
9293
+ cannot keep is `ROW_LEVEL_GATE`; `OPTED_OUT`, the queried source opts out of its tables with
9264
9294
  `#@ -persist`; `MISSING_FIELD`, the query reads a field the table
9265
9295
  lacks (or otherwise does not compile against it); `SHAPE_MISMATCH`,
9266
9296
  the query is not the shape the stored result answers: it is not a
@@ -9273,8 +9303,10 @@ components:
9273
9303
  needs a join the table's connection cannot reach; `COUNT_SEMANTICS`,
9274
9304
  an aggregate the table cannot reproduce as the live query computes
9275
9305
  it; `STALE`, it is past its freshness window; `READ_FAILED`, it was
9276
- chosen but reading it failed at run time, and its freshness fallback
9277
- allowed live.
9306
+ chosen but reading it failed at run time and the query was answered
9307
+ live: its freshness fallback allowed live, or the failure answers live
9308
+ whatever the fallback says (DECIMAL arithmetic past what the
9309
+ destination holds, or a destination catalog missing on the worker).
9278
9310
 
9279
9311
 
9280
9312
  Retained, no longer produced (shipped in 0.14.0): `WARNED`, now
@@ -10489,6 +10521,7 @@ components:
10489
10521
  description: Name of the table
10490
10522
  rowCount:
10491
10523
  type: integer
10524
+ format: int64
10492
10525
  description: Number of rows in the table
10493
10526
  columns:
10494
10527
  type: array
@@ -10832,8 +10865,12 @@ components:
10832
10865
  default: false
10833
10866
  description: >-
10834
10867
  Build a new table even when a source's sourceEntityId is unchanged —
10835
- that is, defeat skip-if-unchanged, which would otherwise carry the
10836
- existing table forward and run no SQL for that source.
10868
+ that is, defeat skip-if-unchanged, which would otherwise carry an
10869
+ unchanged table forward and run no SQL for that source. Not every
10870
+ unchanged table is carried: one whose source refreshes
10871
+ incrementally, one past its declared freshness window, and one
10872
+ whose stored relation reads the current time (the plan entry's
10873
+ `asOfBuild`) are rebuilt on every run without this flag.
10837
10874
 
10838
10875
  It means ONLY that. It never re-seeds a source declaring
10839
10876
  `refresh="incremental"`: such a source is exempt from
@@ -11634,6 +11671,19 @@ components:
11634
11671
  advances its serving table by a bounded delta in place instead of
11635
11672
  being rebuilt, so the mode also governs the build path — which is why
11636
11673
  it is validated rather than passed through.
11674
+ asOfBuild:
11675
+ type: boolean
11676
+ description: >-
11677
+ True when this source's stored relation reads the current time
11678
+ (`now`, or a relative time filter string such as
11679
+ `f'last 7 days'`), so its table holds the rows as of its build
11680
+ and its answers are as of that build (a `#@ persist` source, a
11681
+ persisted view or a persisted named query; the package carries a
11682
+ `persist-reads-current-time` warning for it). Unchanged SQL does
11683
+ not mean unchanged rows, so such a table must be rebuilt on every
11684
+ run: a host that reuses a ready table by `sourceEntityId` must
11685
+ not reuse this one, and a standalone run never carries it
11686
+ forward. Absent otherwise.
11637
11687
  freshness:
11638
11688
  oneOf:
11639
11689
  - $ref: "#/components/schemas/Freshness"
@@ -12432,6 +12482,7 @@ components:
12432
12482
  description: Retained; always `COPY`.
12433
12483
  rowCount:
12434
12484
  type: ["integer", "null"]
12485
+ format: int64
12435
12486
  buildDurationMs:
12436
12487
  type: ["integer", "null"]
12437
12488
  description: >-
@@ -12449,6 +12500,7 @@ components:
12449
12500
  the run's duration by whatever the orchestration cost.
12450
12501
  queryCostBytes:
12451
12502
  type: ["integer", "null"]
12503
+ format: int64
12452
12504
  description: >-
12453
12505
  Warehouse bytes SCANNED by the read that produced this table — the
12454
12506
  recurring cost of keeping the source materialized, and the debit
@@ -12618,6 +12670,7 @@ components:
12618
12670
  properties:
12619
12671
  count:
12620
12672
  type: integer
12673
+ format: int64
12621
12674
  description: Source rows in the window the stored table lacks.
12622
12675
  from:
12623
12676
  type: string
@@ -764,7 +764,7 @@ var init_query = __esm(() => {
764
764
  type: integer({ min: 0 }),
765
765
  default: DEFAULT_PACKAGE_LOAD_SCHEMA_CACHE_BYTES,
766
766
  description: "Serialized schema each package-load worker caches across loads, in bytes; 0 turns it off.",
767
- notes: "Serialized size of the table and SQL schemas each package-load worker keeps across loads, so a model's repeated and later requests for the same table skip the round trip to the main thread. Least recently used entries go first. Scoped per environment and per connection instance, so editing a connection drops its entries; a request that asks to refresh a schema is fetched again, and the result replaces the entry. Heap use is a few times the serialized size. `0` disables it; empty takes the default, and a value that is not a byte count stops the server from starting.",
767
+ notes: "Serialized size of the table and SQL schemas each package-load worker keeps across loads, so a model's repeated and later requests for the same table skip the round trip to the main thread. Least recently used entries go first. Scoped per environment and per connection instance, so editing a connection drops its entries. An explicit refresh (a reload with `?reload=true` or `reload_package`, a publish, or a `PATCH` that reinstalls) fetches every table and SQL schema the package reads again, in the connection's own cache too, and every worker drops its old entry; a watch-mode recompile and a boot read the cached schemas. Heap use is a few times the serialized size. `0` disables it; empty takes the default, and a value that is not a byte count stops the server from starting.",
768
768
  defaultText: "`16777216` (16 MiB)",
769
769
  aliases: { env: ["PACKAGE_LOAD_SCHEMA_CACHE_BYTES"] }
770
770
  })
@@ -167061,7 +167061,7 @@ var init_telemetry = __esm(() => {
167061
167061
  });
167062
167062
 
167063
167063
  // package.json
167064
- var version = "0.16.0";
167064
+ var version = "0.16.1";
167065
167065
  var init_package = () => {};
167066
167066
 
167067
167067
  // src/version.ts