Skip to content

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Feb 1, 2018

What changes were proposed in this pull request?

This is a followup pr of #20450.
We should've enabled MutableColumnarRow.getMap() as well.

How was this patch tested?

Existing tests.

@ueshin
Copy link
Member Author

ueshin commented Feb 1, 2018

cc @cloud-fan @viirya

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

LGTM

public MapData getMap(int ordinal) {
throw new UnsupportedOperationException();
public ColumnarMap getMap(int ordinal) {
if (columns[ordinal].isNullAt(rowId)) return null;
Copy link
Member

Choose a reason for hiding this comment

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

I will remove this null check in #20455 later after this gets merged.

@cloud-fan
Copy link
Contributor

LGTM

@SparkQA
Copy link

SparkQA commented Feb 1, 2018

Test build #86922 has finished for PR 20471 at commit af757ef.

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

@ueshin
Copy link
Member Author

ueshin commented Feb 1, 2018

Thanks! merging to master/2.3.

asfgit pushed a commit that referenced this pull request Feb 1, 2018
## What changes were proposed in this pull request?

This is a followup pr of #20450.
We should've enabled `MutableColumnarRow.getMap()` as well.

## How was this patch tested?

Existing tests.

Author: Takuya UESHIN <[email protected]>

Closes #20471 from ueshin/issues/SPARK-23280/fup2.

(cherry picked from commit 89e8d55)
Signed-off-by: Takuya UESHIN <[email protected]>
@asfgit asfgit closed this in 89e8d55 Feb 1, 2018
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