Skip to content

Commit 61b2292

Browse files
committed
add @deprecated to pythonToJavaMap
1 parent 1e5b801 commit 61b2292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,7 @@ private[spark] object PythonRDD extends Logging {
687687
* Convert an RDD of serialized Python dictionaries to Scala Maps (no recursive conversions).
688688
* This function is outdated, PySpark does not use it anymore
689689
*/
690+
@deprecated
690691
def pythonToJavaMap(pyRDD: JavaRDD[Array[Byte]]): JavaRDD[Map[String, _]] = {
691692
pyRDD.rdd.mapPartitions { iter =>
692693
val unpickle = new Unpickler

0 commit comments

Comments
 (0)