mridulm commented on code in PR #38428:
URL: https://github.com/apache/spark/pull/38428#discussion_r1090260160


##########
core/src/main/scala/org/apache/spark/serializer/KryoSerializer.scala:
##########
@@ -329,6 +339,42 @@ class KryoDeserializationStream(
       }
     }
   }
+
+  final override def asIterator: Iterator[Any] = new NextIterator[Any] {
+    override protected def getNext(): Any = {
+      if (KryoDeserializationStream.this.hasNext) {
+        try {
+          return readValue[Any]()

Review Comment:
   `readObject` instead ?



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