{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8266","labels_url":"https://api.github.com/repos/apache/spark/issues/8266/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8266/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8266/events","html_url":"https://github.com/apache/spark/pull/8266","id":101587218,"number":8266,"title":"[SPARK-10075][SparkR] Add `when` expressino function in SparkR","user":{"login":"yu-iskw","id":1523515,"avatar_url":"https://avatars.githubusercontent.com/u/1523515?v=3","gravatar_id":"","url":"https://api.github.com/users/yu-iskw","html_url":"https://github.com/yu-iskw","followers_url":"https://api.github.com/users/yu-iskw/followers","following_url":"https://api.github.com/users/yu-iskw/following{/other_user}","gists_url":"https://api.github.com/users/yu-iskw/gists{/gist_id}","starred_url":"https://api.github.com/users/yu-iskw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yu-iskw/subscriptions","organizations_url":"https://api.github.com/users/yu-iskw/orgs","repos_url":"https://api.github.com/users/yu-iskw/repos","events_url":"https://api.github.com/users/yu-iskw/events{/privacy}","received_events_url":"https://api.github.com/users/yu-iskw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-18T07:09:00Z","updated_at":"2015-08-19T04:20:00Z","closed_at":"2015-08-19T03:29:05Z","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8266","html_url":"https://github.com/apache/spark/pull/8266","diff_url":"https://github.com/apache/spark/pull/8266.diff","patch_url":"https://github.com/apache/spark/pull/8266.patch"},"body":"- Add `when` and `otherwise` as `Column` methods\r\n- Add `When` as an expression function\r\n- Add `%otherwise%` infix as an alias of `otherwise`\r\n\r\nSince R doesn't support a feature like method chaining, `otherwise(when(condition, value), value)` style is a little annoying for me. If `%otherwise%` looks strange for @shivaram, I can remove it. What do you think?\r\n\r\n### JIRA\r\n[[SPARK-10075] Add `when` expressino function in SparkR - ASF JIRA](https://issues.apache.org/jira/browse/SPARK-10075)"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/132440833","html_url":"https://github.com/apache/spark/pull/8266#issuecomment-132440833","issue_url":"https://api.github.com/repos/apache/spark/issues/8266","id":132440833,"user":{"login":"yu-iskw","id":1523515,"avatar_url":"https://avatars.githubusercontent.com/u/1523515?v=3","gravatar_id":"","url":"https://api.github.com/users/yu-iskw","html_url":"https://github.com/yu-iskw","followers_url":"https://api.github.com/users/yu-iskw/followers","following_url":"https://api.github.com/users/yu-iskw/following{/other_user}","gists_url":"https://api.github.com/users/yu-iskw/gists{/gist_id}","starred_url":"https://api.github.com/users/yu-iskw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yu-iskw/subscriptions","organizations_url":"https://api.github.com/users/yu-iskw/orgs","repos_url":"https://api.github.com/users/yu-iskw/repos","events_url":"https://api.github.com/users/yu-iskw/events{/privacy}","received_events_url":"https://api.github.com/users/yu-iskw/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T04:20:00Z","updated_at":"2015-08-19T04:20:00Z","body":"I open a PR for `ifelse`.\r\nhttps://issues.apache.org/jira/browse/SPARK-10106"}}