{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20464","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20464/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20464/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20464/events","html_url":"https://github.com/apache/spark/pull/20464","id":293393505,"number":20464,"title":"[SPARK-23291][SQL][R] R's substr should not reduce starting position by 1 when calling Scala API","user":{"login":"viirya","id":68855,"avatar_url":"https://avatars1.githubusercontent.com/u/68855?v=4","gravatar_id":"","url":"https://api.github.com/users/viirya","html_url":"https://github.com/viirya","followers_url":"https://api.github.com/users/viirya/followers","following_url":"https://api.github.com/users/viirya/following{/other_user}","gists_url":"https://api.github.com/users/viirya/gists{/gist_id}","starred_url":"https://api.github.com/users/viirya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viirya/subscriptions","organizations_url":"https://api.github.com/users/viirya/orgs","repos_url":"https://api.github.com/users/viirya/repos","events_url":"https://api.github.com/users/viirya/events{/privacy}","received_events_url":"https://api.github.com/users/viirya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-02-01T03:41:19Z","updated_at":"2018-03-02T04:50:48Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20464","html_url":"https://github.com/apache/spark/pull/20464","diff_url":"https://github.com/apache/spark/pull/20464.diff","patch_url":"https://github.com/apache/spark/pull/20464.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nSeems R's substr API treats Scala substr API as zero based and so subtracts the given starting position by 1.\r\n\r\nBecause Scala's substr API also accepts zero-based starting position (treated as the first element), so the current R's substr test results are correct as they all use 1 as starting positions.\r\n\r\n## How was this patch tested?\r\n\r\nModified tests."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/369819741","html_url":"https://github.com/apache/spark/pull/20464#issuecomment-369819741","issue_url":"https://api.github.com/repos/apache/spark/issues/20464","id":369819741,"user":{"login":"viirya","id":68855,"avatar_url":"https://avatars1.githubusercontent.com/u/68855?v=4","gravatar_id":"","url":"https://api.github.com/users/viirya","html_url":"https://github.com/viirya","followers_url":"https://api.github.com/users/viirya/followers","following_url":"https://api.github.com/users/viirya/following{/other_user}","gists_url":"https://api.github.com/users/viirya/gists{/gist_id}","starred_url":"https://api.github.com/users/viirya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viirya/subscriptions","organizations_url":"https://api.github.com/users/viirya/orgs","repos_url":"https://api.github.com/users/viirya/repos","events_url":"https://api.github.com/users/viirya/events{/privacy}","received_events_url":"https://api.github.com/users/viirya/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T04:50:48Z","updated_at":"2018-03-02T04:50:48Z","author_association":"CONTRIBUTOR","body":"Because 2.3 is released, ping @felixcheung again"}}
{"actor":{"display_login":"viirya"}}