File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
6161tables and registers them if they expose Arrow data (including pandas and
6262Polars 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 .
You can’t perform that action at this time.
0 commit comments