{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15863","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15863/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15863/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15863/events","html_url":"https://github.com/apache/spark/pull/15863","id":188912519,"number":15863,"title":"[SPARK-18419][SQL] Fix `JDBCOptions.asConnectionProperties` to be case-insensitive","user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-12T13:47:28Z","updated_at":"2016-11-12T14:28:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15863","html_url":"https://github.com/apache/spark/pull/15863","diff_url":"https://github.com/apache/spark/pull/15863.diff","patch_url":"https://github.com/apache/spark/pull/15863.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\n`JDBCOptions.asConnectionProperties` is designed to filter JDBC options, but it fails to handle `CaseInsensitiveMap` correctly. For the following example, it returns `Map('numpartitions' -> \"10\")` as a wrong result.\r\n\r\n```scala\r\nval options = new JDBCOptions(new CaseInsensitiveMap(Map(\r\n    \"url\" -> \"jdbc:mysql://localhost:3306/temp\",\r\n    \"dbtable\" -> \"t1\",\r\n    \"numPartitions\" -> \"10\")))\r\nassert(options.asConnectionProperties.isEmpty)\r\n```\r\n\r\n## How was this patch tested?\r\n\r\nPass the Jenkins with a new testcase.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/260125077","html_url":"https://github.com/apache/spark/pull/15863#issuecomment-260125077","issue_url":"https://api.github.com/repos/apache/spark/issues/15863","id":260125077,"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-11-12T14:28:44Z","updated_at":"2016-11-12T14:28:44Z","body":"Oh, it seems not. I just removed my suggestion. I will take a look at this again if it is possible in similar way. Thanks!"}}
{"actor":{"display_login":"HyukjinKwon"}}