Skip to content

Commit 66fcb87

Browse files
rustyconoverclaude
andcommitted
fix(fixtures): versioned_tables lists its scans; pin vgi 423f76f (protocol 3.3)
The protocol 3.3 extension refuses a table whose scan function the worker does not list. The hand-written versioned_tables catalog never listed its three scans; it now lists them table_only. Pins the integration suite to Query-farm/vgi 423f76f (function visibility, one table-function resolver) and notes the hand-written-catalog requirement in the CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b12518b commit 66fcb87

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎.github/workflows/integration.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
env:
2828
# The test suite and native Actions artifact must come from this exact ref.
2929
# The downloader verifies its provenance against the checked-out commit.
30-
VGI_REF: 2df81a5e75fd2d1f436526906cf5f868522c6655
30+
VGI_REF: 423f76fde64d95b10ae83c60835e729bcf7d772c
3131
VGI_NATIVE_RUNNER_BRANCH: v2.0
3232
# CI is not a user: its ATTACHes should not land in Query.Farm's adoption data.
3333
# The vgi extension fires a telemetry event per successful ATTACH, and this

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@
1717
functions disappear from `duckdb_functions()` and cannot be called from SQL.
1818
- The requirement to repeat an UPDATE/DELETE table's scan in the schema's `functions` is gone (it is listed for you;
1919
a scan repeated there stays public).
20+
- **Hand-written catalogs** (custom `schema_contents` / `table_scan_function_get`) must list every function their
21+
tables name in the function listing, or the extension refuses the scan with a Binder Error naming the function. Set
22+
`visibility=FUNCTION_VISIBILITY_TABLE_ONLY` on the ones that should not be SQL functions.
2023
- `Schema.to_schema_info` counts the tables' functions in `estimated_object_count`.

‎vgi/_test_fixtures/versioned_tables.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from __future__ import annotations
2929

3030
import contextlib
31+
import dataclasses
3132
import re
3233
import uuid
3334
from dataclasses import dataclass
@@ -39,6 +40,7 @@
3940
from vgi_rpc.rpc import OutputCollector
4041

4142
from vgi.catalog import (
43+
FUNCTION_VISIBILITY_TABLE_ONLY,
4244
AttachOpaqueData,
4345
CatalogAttachResult,
4446
CatalogDataVersionRelease,
@@ -499,6 +501,13 @@ def schema_contents( # type: ignore[override]
499501
return []
500502
if type == SchemaObjectType.TABLE:
501503
return [self._make_table_info(n, t) for n, t in sorted(self._tables_for(attach_opaque_data).items())]
504+
if type == SchemaObjectType.TABLE_FUNCTION:
505+
# Protocol 3.3: every scan a table names must be listed; these back
506+
# tables only, so they are table_only (absent from duckdb_functions()).
507+
return [
508+
dataclasses.replace(self._function_to_info(cls, ["main"]), visibility=FUNCTION_VISIBILITY_TABLE_ONLY)
509+
for cls in self.functions
510+
]
502511
return []
503512

504513
def table_get(

0 commit comments

Comments
 (0)