zhengruifeng commented on code in PR #46007:
URL: https://github.com/apache/spark/pull/46007#discussion_r1570403766


##########
python/pyspark/sql/session.py:
##########
@@ -1630,6 +1630,13 @@ def sql(
         -------
         :class:`DataFrame`
 
+        Notes
+        -----
+        In Spark Classic, a temporary view referenced in `spark.sql` is 
resolved immediately,
+        while in Spark Connect it is lazily evaluated.

Review Comment:
   sounds good, let me update with `it is lazily analyzed`.
   
   Besides temp views, this lazy analysis apply to temp functions / 
configurations / persistent tables.
   
   If the functions/configurations/tables are changed after `spark.table/sql`, 
the results may be different from Spark Classic.
   



-- 
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