{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/17967","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/17967/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/17967/comments","events_url":"https://api.github.com/repos/apache/spark/issues/17967/events","html_url":"https://github.com/apache/spark/pull/17967","id":228363856,"number":17967,"title":"[SPARK-14659][ML] RFormula consistent with R when handling strings","user":{"login":"actuaryzhang","id":11082368,"avatar_url":"https://avatars0.githubusercontent.com/u/11082368?v=3","gravatar_id":"","url":"https://api.github.com/users/actuaryzhang","html_url":"https://github.com/actuaryzhang","followers_url":"https://api.github.com/users/actuaryzhang/followers","following_url":"https://api.github.com/users/actuaryzhang/following{/other_user}","gists_url":"https://api.github.com/users/actuaryzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/actuaryzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actuaryzhang/subscriptions","organizations_url":"https://api.github.com/users/actuaryzhang/orgs","repos_url":"https://api.github.com/users/actuaryzhang/repos","events_url":"https://api.github.com/users/actuaryzhang/events{/privacy}","received_events_url":"https://api.github.com/users/actuaryzhang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-05-12T17:56:22Z","updated_at":"2017-05-20T07:17:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/17967","html_url":"https://github.com/apache/spark/pull/17967","diff_url":"https://github.com/apache/spark/pull/17967.diff","patch_url":"https://github.com/apache/spark/pull/17967.patch"},"body":"## What changes were proposed in this pull request?\r\nWhen handling strings, the category dropped by RFormula and R are different:\r\n- RFormula drops the least frequent level \r\n- R drops the first level after ascending alphabetical ordering\r\n\r\nThis PR supports different string ordering types in StringIndexer #17879 so that RFormula can drop the same level as R when handling strings using`stringOrderType = \"alphabetDesc\"`. \r\n\r\n## How was this patch tested?\r\nnew tests "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/302856415","html_url":"https://github.com/apache/spark/pull/17967#issuecomment-302856415","issue_url":"https://api.github.com/repos/apache/spark/issues/17967","id":302856415,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars2.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":"2017-05-20T07:17:39Z","updated_at":"2017-05-20T07:17:39Z","body":"**[Test build #77116 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/77116/testReport)** for PR 17967 at commit [`341949c`](https://github.com/apache/spark/commit/341949c4c1e09baa9478e54e06aa1133b3c6fc86)."}}
{"actor":{"display_login":"SparkQA"}}