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 7ebbe19
Browse filesBrowse the repository at this point in the historyBrowse files
Add a `column_statistics: bytes | None` field at the end of TableInfo
carrying the IPC payload of `serialize_column_statistics`. When
populated, the C++ extension uses the cached value and skips both the
per-scan `table_function_statistics` RPC and the per-table
`catalog_table_column_statistics_get` RPC.
`Table.to_table_info` auto-inlines from `Table.statistics` via the
existing `resolve_column_statistics` helper. The trade-off — stats are
frozen for the lifetime of the catalog cache (until catalog_version
bumps) — is documented on the field's docstring, mirroring the warning
on `cardinality_estimate`. Workers whose stats change faster (live
counters) must override `to_table_info` and leave column_statistics
null.
Audited every existing `Table(statistics=...)` caller in
vgi/_test_fixtures and tests; all use static literal values, no live
counters, safe to flip the contract.
Tests cover: round-trip the IPC blob through TableInfo
serialize/deserialize, descriptor populates from `Table.statistics`,
descriptor leaves it null when statistics is empty, schema-shape
asserts the field is positionally last for old-extension compat.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments