You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/core/src/main/scala/org/apache/spark/sql/execution/python/streaming/TransformWithStateInPySparkStateServer.scala
+1-16Lines changed: 1 addition & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -208,22 +208,7 @@ class TransformWithStateInPySparkStateServer(
208
208
privatedefparseProtoMessage():StateRequest= {
209
209
valmessageLen= inputStream.readInt()
210
210
valmessageBytes=newArray[Byte](messageLen)
211
-
// inputStream.readFully(messageBytes)
212
-
// inputStream.read(messageBytes)
213
-
// /*
214
-
valreadBytes= inputStream.read(messageBytes)
215
-
if (readBytes != messageLen) {
216
-
thrownewException(s"TESTING: Failed to read message bytes: expected $messageLen bytes, "+
217
-
s"but only read $readBytes bytes")
218
-
}
219
-
/*
220
-
else if (messageLen > 500) {
221
-
val debug = StateRequest.parseFrom(ByteString.copyFrom(messageBytes))
222
-
throw new Exception(s"Unexpectedly matched message length: $messageLen bytes, "
0 commit comments