Skip to content

[SPARK-14278][SQL] Initialize columnar batch with proper memory mode#12070

Closed
sameeragarwal wants to merge 1 commit intoapache:masterfrom
sameeragarwal:vectorized-rr
Closed

[SPARK-14278][SQL] Initialize columnar batch with proper memory mode#12070
sameeragarwal wants to merge 1 commit intoapache:masterfrom
sameeragarwal:vectorized-rr

Conversation

@sameeragarwal
Copy link
Member

What changes were proposed in this pull request?

Fixes a minor bug in the record reader constructor that was possibly introduced during refactoring.

How was this patch tested?

N/A

@sameeragarwal
Copy link
Member Author

cc @marmbrus

@nongli
Copy link
Contributor

nongli commented Mar 30, 2016

LGTM

}

columnarBatch = ColumnarBatch.allocate(batchSchema);
columnarBatch = ColumnarBatch.allocate(batchSchema, memMode);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you avoid this class of problem in the future by simply removing the single-argument allocate method or the default value of memMode?

Copy link
Member Author

Choose a reason for hiding this comment

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

I considered it, but the single-argument allocate is currently also used in DataSourceStrategy. Can we change it there? cc @nongli

@SparkQA
Copy link

SparkQA commented Mar 30, 2016

Test build #54542 has finished for PR 12070 at commit cc0eb4f.

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

@asfgit asfgit closed this in 3586929 Mar 31, 2016
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