Skip to content
Snippets Groups Projects
Commit 7f7b63bb authored by Sumedh Wale's avatar Sumedh Wale Committed by Wenchen Fan
Browse files

[SPARK-21312][SQL] correct offsetInBytes in UnsafeRow.writeToStream


## What changes were proposed in this pull request?

Corrects offsetInBytes calculation in UnsafeRow.writeToStream. Known failures include writes to some DataSources that have own SparkPlan implementations and cause EXCHANGE in writes.

## How was this patch tested?

Extended UnsafeRowSuite.writeToStream to include an UnsafeRow over byte array having non-zero offset.

Author: Sumedh Wale <swale@snappydata.io>

Closes #18535 from sumwale/SPARK-21312.

(cherry picked from commit 14a3bb3a)
Signed-off-by: default avatarWenchen Fan <wenchen@databricks.com>
parent 8f1ca695
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