Skip to content
Snippets Groups Projects
Unverified Commit 7c371dec authored by Sean Owen's avatar Sean Owen
Browse files

[SPARK-19646][CORE][STREAMING] binaryRecords replicates records in scala API


## What changes were proposed in this pull request?

Use `BytesWritable.copyBytes`, not `getBytes`, because `getBytes` returns the underlying array, which may be reused when repeated reads don't need a different size, as is the case with binaryRecords APIs

## How was this patch tested?

Existing tests

Author: Sean Owen <sowen@cloudera.com>

Closes #16974 from srowen/SPARK-19646.

(cherry picked from commit d0ecca60)
Signed-off-by: default avatarSean Owen <sowen@cloudera.com>
parent b083ec51
No related branches found
No related tags found
No related merge requests found
Loading
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