Skip to content
Snippets Groups Projects
Commit c68b4c54 authored by Xianyang Liu's avatar Xianyang Liu Committed by Sean Owen
Browse files

[MINOR][CORE] Using bufferedInputStream for dataDeserializeStream


## What changes were proposed in this pull request?

Small fix. Using bufferedInputStream for dataDeserializeStream.

## How was this patch tested?

Existing UT.

Author: Xianyang Liu <xianyang.liu@intel.com>

Closes #19735 from ConeyLiu/smallfix.

(cherry picked from commit 176ae4d5)
Signed-off-by: default avatarSean Owen <sowen@cloudera.com>
parent 2f6dece0
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@ private[spark] class SerializerManager(
val autoPick = !blockId.isInstanceOf[StreamBlockId]
getSerializer(classTag, autoPick)
.newInstance()
.deserializeStream(wrapForCompression(blockId, inputStream))
.deserializeStream(wrapForCompression(blockId, stream))
.asIterator.asInstanceOf[Iterator[T]]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment