{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/6072","labels_url":"https://api.github.com/repos/apache/spark/issues/6072/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/6072/comments","events_url":"https://api.github.com/repos/apache/spark/issues/6072/events","html_url":"https://github.com/apache/spark/pull/6072","id":75470045,"number":6072,"title":"[SPARK-7321][SQL] Add Column expression for conditional statements (when/otherwise)","user":{"login":"rxin","id":323388,"avatar_url":"https://avatars.githubusercontent.com/u/323388?v=3","gravatar_id":"","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-05-12T05:26:54Z","updated_at":"2015-05-12T22:07:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/6072","html_url":"https://github.com/apache/spark/pull/6072","diff_url":"https://github.com/apache/spark/pull/6072.diff","patch_url":"https://github.com/apache/spark/pull/6072.patch"},"body":"This builds on https://github.com/apache/spark/pull/5932 and should close https://github.com/apache/spark/pull/5932 as well.\r\n\r\nAs an example:\r\n```python\r\ndf.select(when(df['age'] == 2, 3).otherwise(4).alias(\"age\")).collect()\r\n```"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/101437002","html_url":"https://github.com/apache/spark/pull/6072#issuecomment-101437002","issue_url":"https://api.github.com/repos/apache/spark/issues/6072","id":101437002,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T22:07:43Z","updated_at":"2015-05-12T22:07:43Z","body":"  [Test build #32542 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32542/consoleFull) for   PR 6072 at commit [`8f49201`](https://github.com/apache/spark/commit/8f49201d7f57376bdf052e2620fd09e9d3c8d889)."}}