Repository navigation
v0.48.0
Changed
-
Protocol 3.3 write path (protocol version stays
3.3.0; needs the matching VGI extension):catalog_table_scan_function_getis removed fromVgiServiceand from the worker;
catalog_table_scan_branches_getis the only scan-discovery RPC (a single-source table
answers with one branch, as before). A Java client that called
catalog_table_scan_function_getreads the branch throughScanBranchesDecoderinstead.
TableScanFunctionGetResponsestays as theScanFunctionResultrecord.catalog_table_createnow returnsTableCreateResponse(created)(generated record).
CatalogInterface.tableCreateReportingCreated(attachId, request)supplies it:falsewhen
IF NOT EXISTSfound an existing table, soCREATE TABLE IF NOT EXISTS ... AS SELECTno
longer appends into it. Its default keeps catalogs that override onlytableCreate
working;InMemoryCatalogimplements it atomically.write_optionscarries onlyresult_mode.WriteOptionsis now
record WriteOptions(WriteResultMode resultMode);onConflict()/onConflictColumns()
and the three-argument constructor remain, deprecated, returning"throw"/ empty
(DuckDB rewrites everyINSERT ... ON CONFLICTinto a MERGE before a catalog sees it, so
those values were never anything else).
-
Protocol 3.3.0.
VgiService.PROTOCOL_VERSIONis now3.3.0; peers must match major and
minor, so this release needs the matching VGI extension (protocol 3.3). -
Table scan and write functions are hidden from SQL. Every function a table descriptor
names (scan, insert, update, delete) is now always sent incatalog_schema_contents_functions,
carrying the newFunctionInfo.visibilityfield. Write functions are alwaystable_only; a
table's scan function istable_onlyunless the table setsexposeScan.table_only
functions no longer appear induckdb_functions()and can no longer be called directly
(e.g.SELECT * FROM cat.main.items_scan()now fails); the tables they back work as before,
with their capabilities (projection / filter pushdown, required secrets,has_finalize).
This includes functions you registered as ordinary public functions: every function
registered withregisterTable(orregisterTableInOut) that someCatalogTablenames as its
scan function becomes hidden (table_only) unless that table setsexposeScan(true). If SQL
calls such a scan directly, setexposeScan(true)on the table. -
Worker.registerUnlistedTablekeeps working but now lists the function astable_only
instead of omitting it, so the extension learns its capabilities. It is superseded for table
scans, which aretable_onlyby default.
Added
-
CatalogInterface.functions(attachId, path)and the static
CatalogInterface.functionInfoFor(fn, schemaPath, visibility): a code-implemented catalog
(Worker.registerCatalog) lists the functions its tables name, with protocol 3.3 visibility,
built exactly as the worker's own listing builds them (the counterpart of vgi-typescript's
functionInfoFor). Functions registered into that catalog with
Worker.registerExtraCatalog{TableFunction,TableInOut,Scalar,Aggregate}(catalog.name(), ...)
bind on its attaches. Default: no functions, as before. -
CatalogColumns.withDefault(field, sql, schemaPath): declare a column default (canonical
vgi.column.default.v1metadata). -
txfix fixture:
itemsgainsitems_insert/items_delete(all three write functions with
has_finalize),qty BIGINT DEFAULT 0, staged inserts / deletes on the transactional attach,
and awrites()function (one row per write call), per vgidocs/writable_tx_fixtures.md. -
The example worker's
return_secret_valuedeclaresvgi_exampleinrequiredSecrets(), so
vgi_secret_types()lists it inrequired_by. -
CatalogTable.Builder.exposeScan(boolean)and theCatalogTable.exposeScan()component
(defaultfalse): make a table's scan function an ordinary, SQL-callable catalog function. -
FunctionInfo.visibilitywithFunctionInfo.VISIBILITY_PUBLIC/VISIBILITY_TABLE_ONLY
andFunctionInfo.withVisibility(String). The pre-3.3FunctionInfoandCatalogTable
constructor shapes remain as compatibility constructors.