kosiew commented on code in PR #1247:
URL: 
https://github.com/apache/datafusion-python/pull/1247#discussion_r2370814411


##########
docs/source/user-guide/dataframe/index.rst:
##########
@@ -228,6 +228,33 @@ Core Classes
     * :py:meth:`~datafusion.SessionContext.from_pandas` - Create from Pandas 
DataFrame
     * :py:meth:`~datafusion.SessionContext.from_arrow` - Create from Arrow data
 
+    ``SessionContext`` can automatically resolve SQL table names that match
+    in-scope Python data objects. When automatic lookup is enabled, a query
+    such as ``ctx.sql("SELECT * FROM pdf")`` will register a pandas or

Review Comment:
   Registrations persist: once a variable is bound we cache a weak reference 
plus its id in _python_table_bindings. On every subsequent SQL call we refresh 
that cache—dropping the registration if the object has been garbage collected, 
reassigned, or otherwise moved—but as long as the original object is still 
alive the table name remains usable across queries.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to