{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/7390","labels_url":"https://api.github.com/repos/apache/spark/issues/7390/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/7390/comments","events_url":"https://api.github.com/repos/apache/spark/issues/7390/events","html_url":"https://github.com/apache/spark/pull/7390","id":94878146,"number":7390,"title":"[Minor][SQL] Allow spaces in the beginning and ending of string for Interval","user":{"login":"viirya","id":68855,"avatar_url":"https://avatars.githubusercontent.com/u/68855?v=3","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,"milestone":null,"comments":6,"created_at":"2015-07-14T06:33:12Z","updated_at":"2015-07-14T12:38:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7390","html_url":"https://github.com/apache/spark/pull/7390","diff_url":"https://github.com/apache/spark/pull/7390.diff","patch_url":"https://github.com/apache/spark/pull/7390.patch"},"body":"This is a minor fixing for #7355 to allow spaces in the beginning and ending of string parsed to `Interval`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/121228273","html_url":"https://github.com/apache/spark/pull/7390#issuecomment-121228273","issue_url":"https://api.github.com/repos/apache/spark/issues/7390","id":121228273,"user":{"login":"cloud-fan","id":3182036,"avatar_url":"https://avatars.githubusercontent.com/u/3182036?v=3","gravatar_id":"","url":"https://api.github.com/users/cloud-fan","html_url":"https://github.com/cloud-fan","followers_url":"https://api.github.com/users/cloud-fan/followers","following_url":"https://api.github.com/users/cloud-fan/following{/other_user}","gists_url":"https://api.github.com/users/cloud-fan/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-fan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-fan/subscriptions","organizations_url":"https://api.github.com/users/cloud-fan/orgs","repos_url":"https://api.github.com/users/cloud-fan/repos","events_url":"https://api.github.com/users/cloud-fan/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-fan/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T12:38:59Z","updated_at":"2015-07-14T12:38:59Z","body":"instead of changing the regex, can we just call `trim` before pass the string to `Interval.fromString`?"}}