Skip to content

Commit b733408

Browse files
committed
fix: correct parameter name from auto_register_python_variables to auto_register_python_objects in SessionContext
1 parent 8fc3e1c commit b733408

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/user-guide/sql.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ objects that appear in SQL queries. This removes the need to call
5050
import pyarrow as pa
5151
from datafusion import SessionContext
5252
53-
ctx = SessionContext(auto_register_python_variables=True)
53+
ctx = SessionContext(auto_register_python_objects=True)
5454
5555
orders = pa.Table.from_pydict({"item": ["apple", "pear"], "qty": [5, 2]})
5656
@@ -60,5 +60,5 @@ objects that appear in SQL queries. This removes the need to call
6060
The feature inspects the call stack for variables whose names match missing
6161
tables and registers them if they expose Arrow data (including pandas and
6262
Polars DataFrames). Existing contexts can enable or disable the behavior at
63-
runtime through the :py:attr:`SessionContext.auto_register_python_variables`
64-
property.
63+
runtime through :py:meth:`SessionContext.set_python_table_lookup` or by passing
64+
``auto_register_python_objects`` when constructing the session.

0 commit comments

Comments
 (0)