{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13048","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13048/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13048/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13048/events","html_url":"https://github.com/apache/spark/pull/13048","id":154210095,"number":13048,"title":"[SPARK-15267][SQL] Refactor and add some classes for options in datasources","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":8,"created_at":"2016-05-11T10:26:57Z","updated_at":"2016-05-13T01:41:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13048","html_url":"https://github.com/apache/spark/pull/13048","diff_url":"https://github.com/apache/spark/pull/13048.diff","patch_url":"https://github.com/apache/spark/pull/13048.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nCurrently, Parquet, JSON and CSV data sources have a class for thier options, (`ParquetOptions`, `JSONOptions` and `CSVOptions`).\r\n\r\nIt is convenient to manage options for sources to gather options into a class. Currently, `JDBC`, `Text`, `libsvm` and `ORC` datasources do not have this class. This might be nicer if these options are in a unified format so that options can be added and \r\n\r\nThis PR refactors the options in Spark internal data sources adding new classes, `OrcOptions`, `TextOptions`, `JDBCOptions` and `LibSVMOptions`.\r\n\r\n## How was this patch tested?\r\n\r\nExisting tests should cover this.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/218931457","html_url":"https://github.com/apache/spark/pull/13048#issuecomment-218931457","issue_url":"https://api.github.com/repos/apache/spark/issues/13048","id":218931457,"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-05-13T01:41:05Z","updated_at":"2016-05-13T01:41:05Z","body":"**[Test build #58528 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/58528/consoleFull)** for PR 13048 at commit [`17bca76`](https://github.com/apache/spark/commit/17bca763ff73ab144c1491b45ba0feb4608ca4eb).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}