Skip to content

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Jun 19, 2014

CaseWhen should use branches.length to check if elseValue is provided or not.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15908/

@concretevitamin
Copy link
Contributor

Thanks, looks good to me. By the way, is there a simple way to add a test for this?

@rxin
Copy link
Contributor

rxin commented Jun 19, 2014

@concretevitamin

@ueshin
Copy link
Member Author

ueshin commented Jun 20, 2014

Added some tests and I noticed that the CaseWhen should also be nullable if the elseValue is nullable.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15931/

@rxin
Copy link
Contributor

rxin commented Jun 20, 2014

Thanks. I'm merging this in master & branch-1.0. The test failure is not related to this change.

@asfgit asfgit closed this in 3249528 Jun 20, 2014
asfgit pushed a commit that referenced this pull request Jun 20, 2014
`CaseWhen` should use `branches.length` to check if `elseValue` is provided or not.

Author: Takuya UESHIN <[email protected]>

Closes #1133 from ueshin/issues/SPARK-2196 and squashes the following commits:

510f12d [Takuya UESHIN] Add some tests.
dc25e8d [Takuya UESHIN] Fix nullable of CaseWhen to be nullable if the elseValue is nullable.
4f049cc [Takuya UESHIN] Fix nullability of CaseWhen.

(cherry picked from commit 3249528)
Signed-off-by: Reynold Xin <[email protected]>
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
`CaseWhen` should use `branches.length` to check if `elseValue` is provided or not.

Author: Takuya UESHIN <[email protected]>

Closes apache#1133 from ueshin/issues/SPARK-2196 and squashes the following commits:

510f12d [Takuya UESHIN] Add some tests.
dc25e8d [Takuya UESHIN] Fix nullable of CaseWhen to be nullable if the elseValue is nullable.
4f049cc [Takuya UESHIN] Fix nullability of CaseWhen.
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
`CaseWhen` should use `branches.length` to check if `elseValue` is provided or not.

Author: Takuya UESHIN <[email protected]>

Closes apache#1133 from ueshin/issues/SPARK-2196 and squashes the following commits:

510f12d [Takuya UESHIN] Add some tests.
dc25e8d [Takuya UESHIN] Fix nullable of CaseWhen to be nullable if the elseValue is nullable.
4f049cc [Takuya UESHIN] Fix nullability of CaseWhen.
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