{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13604","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13604/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13604/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13604/events","html_url":"https://github.com/apache/spark/pull/13604","id":159689358,"number":13604,"title":"[SPARK-15856][SQL] Revert API breaking changes made in DataFrameReader.text and SQLContext.range","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-06-10T18:01:57Z","updated_at":"2016-06-10T18:23:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13604","html_url":"https://github.com/apache/spark/pull/13604","diff_url":"https://github.com/apache/spark/pull/13604.diff","patch_url":"https://github.com/apache/spark/pull/13604.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nIn Spark 2.0, after unifying Datasets and DataFrames, we made two API breaking changes:\r\n\r\n1. DataFrameReader.text() now returns Dataset[String] instead of DataFrame\r\n2. SQLContext.range() now returns Dataset[java.lang.Long] instead of DataFrame\r\n\r\nHowever, these two changes introduced several inconsistencies and problems:\r\n\r\n1. spark.read.text() silently discards partitioned columns when reading a partitioned table in text format since Dataset[String] only contains a single field. Users have to use spark.read.format(\"text\").load() to workaround this, which is pretty confusing and error-prone.\r\n2. All data source shortcut methods in `DataFrameReader` return DataFrame (aka Dataset[Row]) except for DataFrameReader.text().\r\n3. When applying typed operations over Datasets returned by spark.range(), weird schema changes may happen. Please refer to SPARK-15632 for more details.\r\n\r\nDue to these reasons, we decided to revert these two changes.\r\n\r\naffected PRs:\r\nhttps://github.com/apache/spark/pull/11730\r\nhttps://github.com/apache/spark/pull/11731\r\nhttps://github.com/apache/spark/pull/13104\r\nhttps://github.com/apache/spark/pull/13184\r\n\r\n## How was this patch tested?\r\n\r\nN/A"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/225258514","html_url":"https://github.com/apache/spark/pull/13604#issuecomment-225258514","issue_url":"https://api.github.com/repos/apache/spark/issues/13604","id":225258514,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T18:23:18Z","updated_at":"2016-06-10T18:23:18Z","body":"Test FAILed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/60305/\nTest FAILed."}}
{"actor":{"display_login":"AmplabJenkins"}}