-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-2196] [SQL] Fix nullability of CaseWhen. #1133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
|
Thanks, looks good to me. By the way, is there a simple way to add a test for this? |
|
Added some tests and I noticed that the |
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15931/ |
|
Thanks. I'm merging this in master & branch-1.0. The test failure is not related to this change. |
`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]>
`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.
`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.
CaseWhenshould usebranches.lengthto check ifelseValueis provided or not.