Skip to content

Commit 0c9e8fb

Browse files
rustyconoverclaude
andcommitted
fix: docs cross-references and test typing for scan planning
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 913dd3f commit 0c9e8fb

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎tests/test_scan_planning.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def test_hooks_without_the_parameter_still_work(client: Any) -> None:
340340
def test_default_plan_hook_delegates_to_branches_get() -> None:
341341
"""A 3.1-style catalog that only overrides table_scan_branches_get keeps working."""
342342
from vgi.catalog import ScanBranchesResult
343-
from vgi.catalog.catalog_interface import ReadOnlyCatalogInterface
343+
from vgi.catalog.catalog_interface import AttachOpaqueData, ReadOnlyCatalogInterface
344344

345345
class Old(ReadOnlyCatalogInterface):
346346
def __init__(self) -> None:
@@ -350,7 +350,7 @@ def table_scan_branches_get(self, **kwargs: Any) -> ScanBranchesResult:
350350
return ScanBranchesResult(branches=[], required_extensions=["sentinel"])
351351

352352
result = Old().table_scan_branches_plan(
353-
attach_opaque_data=b"",
353+
attach_opaque_data=AttachOpaqueData(b""),
354354
transaction_opaque_data=None,
355355
schema_path=["main"],
356356
name="t",

‎vgi/catalog/catalog_interface.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2752,7 +2752,7 @@ def table_scan_branches_plan(
27522752
Every predicate is advisory: the client re-applies all of them, so
27532753
return any superset of the branches and files that could hold matching
27542754
rows, and never drop one that could.
2755-
[`ScanPlanningFilters.may_match`][] prunes candidates by min/max
2755+
``ScanPlanningFilters.may_match`` prunes candidates by min/max
27562756
statistics. A ``"filtered"`` table may return zero branches, meaning the
27572757
scan produces no rows. See ``docs/protocol/scan-planning.md``.
27582758

‎vgi/scan_planning.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
A table with ``TableInfo.scan_planning = "filtered"`` receives the query's
44
predicates in ``catalog_table_scan_branches_get``. The worker hook gets them as a
5-
[`ScanPlanningFilters`][] and may use them to return fewer branches or fewer
5+
``ScanPlanningFilters`` and may use them to return fewer branches or fewer
66
files. Every predicate is advisory: the client re-applies all of them, so a
77
worker may ignore any predicate it does not understand, but it must never drop
88
a branch or file that could hold a matching row.

‎vgi/worker.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6108,7 +6108,7 @@ def catalog_table_scan_branches_get(
61086108
further code changes.
61096109
61106110
Protocol 3.2: dispatches to ``table_scan_branches_plan`` with the
6111-
``pushdown_filters`` decoded lazily as a [`ScanPlanningFilters`][]; its
6111+
``pushdown_filters`` decoded lazily as a ``ScanPlanningFilters``; its
61126112
default returns ``table_scan_branches_get``.
61136113
"""
61146114
_validate_at_params(at_unit, at_value)

0 commit comments

Comments
 (0)