xinrong-meng commented on code in PR #46007:
URL: https://github.com/apache/spark/pull/46007#discussion_r1561650455


##########
python/pyspark/sql/session.py:
##########
@@ -1630,6 +1630,13 @@ def sql(
         -------
         :class:`DataFrame`
 
+        Notes
+        -----
+        In Classic Spark, a referenced temporary view is resolved immediately, 
while in Spark
+        Connect it is lazy evaluated.
+        So in Spark Connect if a view is dropped, modified or replaced after 
`spark.sql`, the
+        execution may fail or generate different results.

Review Comment:
   Out of cusiority, in which cases the execution may fail?



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