FurcyPin commented on code in PR #36161:
URL: https://github.com/apache/spark/pull/36161#discussion_r849423233


##########
python/pyspark/sql/session.py:
##########
@@ -276,8 +312,10 @@ def getOrCreate(self) -> "SparkSession":
                     ).applyModifiableSettings(session._jsparkSession, 
self._options)
                 return session
 
-    builder = Builder()
-    """A class attribute having a :class:`Builder` to construct 
:class:`SparkSession` instances."""
+    @classproperty

Review Comment:
   I did not know that Python 3.9 supports classmethod + property. 
   I will make a change to better explain this.
   I'm not sure I will be able to make this depend on the Python version, but 
I'll try.



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