{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12179","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12179/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12179/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12179/events","html_url":"https://github.com/apache/spark/pull/12179","id":146069363,"number":12179,"title":"[SPARK-13681][SPARK-14458][SQL] Add back once removed CommitFailureTestRelationSuite and SimpleTextHadoopFsRelationSuite","user":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-05T18:23:34Z","updated_at":"2016-04-07T15:57:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12179","html_url":"https://github.com/apache/spark/pull/12179","diff_url":"https://github.com/apache/spark/pull/12179.diff","patch_url":"https://github.com/apache/spark/pull/12179.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThese test suites were removed while refactoring `HadoopFsRelation` related API. This PR brings them back.\r\n\r\nThis PR also fixes SPARK-14458, which causes runtime error when saving partitioned tables using `FileFormat` data sources that are not able to infer their own schemata. This bug wasn't detected by any built-in data sources because all of them happen to have schema inference feature.\r\n\r\n## How was this patch tested?\r\n\r\n`CommitFailureTestRelationSuite` uses a testing relation that always fails when committing write tasks to test write job cleanup.\r\n\r\n`SimpleTextHadoopFsRelationSuite` uses a testing relation to test general `HadoopFsRelation` and `FileFormat` interfaces."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/206968484","html_url":"https://github.com/apache/spark/pull/12179#issuecomment-206968484","issue_url":"https://api.github.com/repos/apache/spark/issues/12179","id":206968484,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.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":"2016-04-07T15:57:53Z","updated_at":"2016-04-07T15:57:53Z","body":"**[Test build #55224 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55224/consoleFull)** for PR 12179 at commit [`02f5345`](https://github.com/apache/spark/commit/02f5345eab463ba3551c88851c15b4b35e2fbf65).\n * This patch **fails Spark unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}