albertusk95 commented on a change in pull request #25246:
[SPARK-28507][ML][PYSPARK] Remove deprecated API context(self, sqlContext) from
pyspark/ml/util.py
URL: https://github.com/apache/spark/pull/25246#discussion_r307310742
##########
File path: python/pyspark/ml/util.py
##########
@@ -303,18 +283,6 @@ def load(self, path):
% self._clazz)
return self._clazz._from_java(java_obj)
- def context(self, sqlContext):
- """
- Sets the SQL context to use for loading.
-
- .. note:: Deprecated in 2.1 and will be removed in 3.0, use session
instead.
- """
- warnings.warn(
- "Deprecated in 2.1 and will be removed in 3.0, use session
instead.",
- DeprecationWarning)
- self._jread.context(sqlContext._ssql_ctx)
- return self
-
def session(self, sparkSession):
Review comment:
adding the data type of the params is a good idea I think :)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]