Skip to content

Commit 0a7e45d

Browse files
timsaucerclaude
andcommitted
docs: reference PhysicalOptimizerRuleExportable in SessionContext docstring
Point the `physical_optimizer_rules` argument docs at the new `PhysicalOptimizerRuleExportable` Protocol instead of describing the duck type inline. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 13dcdd4 commit 0a7e45d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

python/datafusion/context.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,9 @@ def __init__(
546546
config: Session configuration options.
547547
runtime: Runtime configuration options.
548548
physical_optimizer_rules: User-defined physical optimizer rules to
549-
append to the default set. Each item is an object that exposes a
550-
``__datafusion_physical_optimizer_rule__`` method returning a
549+
append to the default set. Each item is a
550+
:class:`PhysicalOptimizerRuleExportable` — an object exposing a
551+
``__datafusion_physical_optimizer_rule__`` method that returns a
551552
PyCapsule around a ``FFI_PhysicalOptimizerRule`` (typically built
552553
in a separate compiled extension). DataFusion provides no FFI
553554
bridge for logical optimizer or analyzer rules, and there is no

0 commit comments

Comments
 (0)