You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dcb9339
Browse filesBrowse the repository at this point in the historyBrowse files
catalog: inline scan_function and cardinality on declarative Table
Add four function-discovery fields and two cardinality fields to
TableInfo, and populate them from the declarative Table descriptor in
to_table_info. The C++ extension reads these and skips:
- catalog_table_{scan,insert,update,delete}_function_get RPCs when the
matching ``*_function`` is set (one RPC saved per scan/write)
- table_function_cardinality RPC when cardinality_estimate /
cardinality_max is set (one RPC saved per bind)
The auto-impl mirrors ReadOnlyCatalogInterface.table_scan_function_get's
shape: function_name from get_metadata(), empty positional/named args,
no required extensions. Workers whose function args change more
frequently than catalog_version (rotating credentials, presigned URLs,
per-transaction snapshots) keep the per-bind RPC by leaving the
descriptor's function= unset or by overriding to_table_info themselves.
Tests: round-trip serialization for both groups of fields, descriptor
behavior (defaults, partial population, explicit-columns tables remain
empty). Updates test_schema_info_schema for the field count bump on
SchemaInfo (estimated_object_count from a prior commit).
Also adds two function-backed tables to the example fixture worker
covering the scan_function and cardinality inlining paths under
integration testing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments