Skip to content

v0.39.0

Choose a tag to compare

@rustyconover rustyconover released this 06 Oct 15:57
· 139 commits to main since this release

catalog_contents fixture catalogs, DDL catalogs, client load_catalog

VGI protocol stays at 2.1.0.

Worker (vgi)

  • Stored catalogs: Worker::register_stored_catalog registers a catalog that accepts DDL (CREATE/DROP schema, table, view), private per ATTACH. DDL is logged to the worker's shared storage, so one attach works across pooled worker processes. The version starts at 1 and bumps per DDL; .unversioned() reports 0.
  • CatalogModel gains supports_catalog_contents and catalog_version_frozen.
  • Secondary catalogs list functions registered into them (register_*_in).
  • Fix: a table's scan-function schema is resolved within its own catalog. A function registered into a second catalog no longer changes the schema reported for another catalog's tables.
  • vgi-protocol adds IndexInfo and TableCreateRequest.
  • The example worker serves the six contents_* fixture catalogs.

Client (vgi-client)

  • load_catalog: one catalog_contents call when advertised, the per-schema RPCs otherwise or inside a transaction. It falls back on error, protocol violation or decode failure, and revalidates from a previous snapshot's etag.
  • SchemaSnapshot::decode checks paths and decodes all eight kinds.
  • The raw contents() refuses locally when the attach doesn't advertise it.
  • Adds view_create / view_drop.