{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5731","labels_url":"https://api.github.com/repos/apache/spark/issues/5731/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5731/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5731/events","html_url":"https://github.com/apache/spark/pull/5731","id":71462549,"number":5731,"title":"[SPARK-5895][ML] add vector slicer","user":{"login":"yinxusen","id":2637239,"avatar_url":"https://avatars.githubusercontent.com/u/2637239?v=3","gravatar_id":"","url":"https://api.github.com/users/yinxusen","html_url":"https://github.com/yinxusen","followers_url":"https://api.github.com/users/yinxusen/followers","following_url":"https://api.github.com/users/yinxusen/following{/other_user}","gists_url":"https://api.github.com/users/yinxusen/gists{/gist_id}","starred_url":"https://api.github.com/users/yinxusen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinxusen/subscriptions","organizations_url":"https://api.github.com/users/yinxusen/orgs","repos_url":"https://api.github.com/users/yinxusen/repos","events_url":"https://api.github.com/users/yinxusen/events{/privacy}","received_events_url":"https://api.github.com/users/yinxusen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2015-04-28T02:56:24Z","updated_at":"2015-08-02T19:26:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5731","html_url":"https://github.com/apache/spark/pull/5731","diff_url":"https://github.com/apache/spark/pull/5731.diff","patch_url":"https://github.com/apache/spark/pull/5731.patch"},"body":"JIRA issue [here](https://issues.apache.org/jira/browse/SPARK-5895).\r\n\r\nI have some thoughts of `AttributeGroup`:\r\n\r\n1. End-user is hard to add `AttributeGroup` or `Attribute` with `DataFrame`;\r\n\r\n2. The constructor of `AttributeGroup` cannot covariance with subclass of `Attribute`, say, it requires an `Array[Attribute]`, but I cannot give it an `Array[NumericAttribute]`.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/127059025","html_url":"https://github.com/apache/spark/pull/5731#issuecomment-127059025","issue_url":"https://api.github.com/repos/apache/spark/issues/5731","id":127059025,"user":{"login":"jkbradley","id":5084283,"avatar_url":"https://avatars.githubusercontent.com/u/5084283?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbradley","html_url":"https://github.com/jkbradley","followers_url":"https://api.github.com/users/jkbradley/followers","following_url":"https://api.github.com/users/jkbradley/following{/other_user}","gists_url":"https://api.github.com/users/jkbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbradley/subscriptions","organizations_url":"https://api.github.com/users/jkbradley/orgs","repos_url":"https://api.github.com/users/jkbradley/repos","events_url":"https://api.github.com/users/jkbradley/events{/privacy}","received_events_url":"https://api.github.com/users/jkbradley/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T19:26:06Z","updated_at":"2015-08-02T19:26:06Z","body":"@yinxusen Yeah, good point, what I said last is too complex.  I'll take a look now."}}