Skip to content

Conversation

@kiszk
Copy link
Member

@kiszk kiszk commented Apr 30, 2017

What changes were proposed in this pull request?

As #17773 revealed OnHeapColumnVector may copy a part of the original storage.

OffHeapColumnVector reallocation also copies to the new storage data up to 'elementsAppended'. This variable is only updated when using the ColumnVector.appendX API, while ColumnVector.putX is more commonly used.
This PR copies the new storage data up to the previously-allocated size inOffHeapColumnVector.

How was this patch tested?

Existing test suites

@SparkQA
Copy link

SparkQA commented Apr 30, 2017

Test build #76322 has finished for PR 17811 at commit ccd872f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@kiszk
Copy link
Member Author

kiszk commented Apr 30, 2017

Copy link
Member

@sameeragarwal sameeragarwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM cc @cloud-fan

@cloud-fan
Copy link
Contributor

LGTM, merging to master/2.2

asfgit pushed a commit that referenced this pull request May 2, 2017
## What changes were proposed in this pull request?

As #17773 revealed `OnHeapColumnVector` may copy a part of the original storage.

`OffHeapColumnVector` reallocation also copies to the new storage data up to 'elementsAppended'. This variable is only updated when using the `ColumnVector.appendX` API, while `ColumnVector.putX` is more commonly used.
This PR copies the new storage data up to the previously-allocated size in`OffHeapColumnVector`.

## How was this patch tested?

Existing test suites

Author: Kazuaki Ishizaki <[email protected]>

Closes #17811 from kiszk/SPARK-20537.

(cherry picked from commit afb21bf)
Signed-off-by: Wenchen Fan <[email protected]>
@asfgit asfgit closed this in afb21bf May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants