{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/10805","labels_url":"https://api.github.com/repos/apache/spark/issues/10805/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/10805/comments","events_url":"https://api.github.com/repos/apache/spark/issues/10805/events","html_url":"https://github.com/apache/spark/pull/10805","id":127199341,"number":10805,"title":"[SPARK-12871][SQL] Support to specify the option for compression codec.","user":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars.githubusercontent.com/u/6477701?v=3","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-01-18T10:39:53Z","updated_at":"2016-01-19T23:02:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10805","html_url":"https://github.com/apache/spark/pull/10805","diff_url":"https://github.com/apache/spark/pull/10805.diff","patch_url":"https://github.com/apache/spark/pull/10805.patch"},"body":"https://issues.apache.org/jira/browse/SPARK-12871\r\nThis PR added an option to support to specify compression codec.\r\nThis adds the option `codec` as an alias `compression` as filed in [SPARK-12668 ](https://issues.apache.org/jira/browse/SPARK-12668).\r\n\r\nNote that I did not add configurations for Hadoop 1.x as this `CsvRelation` is using Hadoop 2.x API and I guess it is going to drop Hadoop 1.x support.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/173016289","html_url":"https://github.com/apache/spark/pull/10805#issuecomment-173016289","issue_url":"https://api.github.com/repos/apache/spark/issues/10805","id":173016289,"user":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars.githubusercontent.com/u/6477701?v=3","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T23:02:28Z","updated_at":"2016-01-19T23:02:28Z","body":"Oh yes it does.  Actually I am reading compressed files in the test I added [here](https://github.com/HyukjinKwon/spark/blob/SPARK-12420/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala#L361-L373).\r\n\r\nAs you know it recognise the compression codec by file extension so if you meant manually setting compression codec for reading, it does not."}}