Skip to content

Conversation

@hvanhovell
Copy link
Contributor

What changes were proposed in this pull request?

This is absolutely minor. PR #15595 uses dt1.asNullable == dt2.asNullable expressions in a few places. It is however more efficient to call dt1.sameType(dt2). I have replaced every instance of the first pattern with the second pattern (3/5 were introduced by #15595).

How was this patch tested?

Existing tests.

@SparkQA
Copy link

SparkQA commented Nov 28, 2016

Test build #69252 has finished for PR 16041 at commit 37b6760.

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

Copy link
Contributor

@srinathshankar srinathshankar left a comment

Choose a reason for hiding this comment

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

LGTM

@rxin
Copy link
Contributor

rxin commented Nov 29, 2016

Merging in master/branch-2.1.

@asfgit asfgit closed this in d449988 Nov 29, 2016
asfgit pushed a commit that referenced this pull request Nov 29, 2016
…lity on asNullable datatypes

## What changes were proposed in this pull request?
This is absolutely minor. PR #15595 uses `dt1.asNullable == dt2.asNullable` expressions in a few places. It is however more efficient to call `dt1.sameType(dt2)`. I have replaced every instance of the first pattern with the second pattern (3/5 were introduced by #15595).

## How was this patch tested?
Existing tests.

Author: Herman van Hovell <[email protected]>

Closes #16041 from hvanhovell/SPARK-18058.

(cherry picked from commit d449988)
Signed-off-by: Reynold Xin <[email protected]>
robert3005 pushed a commit to palantir/spark that referenced this pull request Dec 2, 2016
…lity on asNullable datatypes

## What changes were proposed in this pull request?
This is absolutely minor. PR apache#15595 uses `dt1.asNullable == dt2.asNullable` expressions in a few places. It is however more efficient to call `dt1.sameType(dt2)`. I have replaced every instance of the first pattern with the second pattern (3/5 were introduced by apache#15595).

## How was this patch tested?
Existing tests.

Author: Herman van Hovell <[email protected]>

Closes apache#16041 from hvanhovell/SPARK-18058.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…lity on asNullable datatypes

## What changes were proposed in this pull request?
This is absolutely minor. PR apache#15595 uses `dt1.asNullable == dt2.asNullable` expressions in a few places. It is however more efficient to call `dt1.sameType(dt2)`. I have replaced every instance of the first pattern with the second pattern (3/5 were introduced by apache#15595).

## How was this patch tested?
Existing tests.

Author: Herman van Hovell <[email protected]>

Closes apache#16041 from hvanhovell/SPARK-18058.
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