{"action":"created","comment":{"url":"https://api.github.com/repos/apache/parquet-mr/pulls/comments/39072163","id":39072163,"diff_hunk":"@@ -0,0 +1,38 @@\n+package org.apache.parquet.tools.read;","path":"parquet-tools/src/test/java/org/apache/parquet/tools/read/TestSimpleMapRecord.java","position":19,"original_position":1,"commit_id":"d04750282db5344d49adf7993e31e078dc5390fc","original_commit_id":"995de88527d67bca9f77c8f55e661cdcf74edec3","user":{"login":"nezihyigitbasi","id":1223839,"avatar_url":"https://avatars.githubusercontent.com/u/1223839?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi","html_url":"https://github.com/nezihyigitbasi","followers_url":"https://api.github.com/users/nezihyigitbasi/followers","following_url":"https://api.github.com/users/nezihyigitbasi/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi/repos","events_url":"https://api.github.com/users/nezihyigitbasi/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi/received_events","type":"User","site_admin":false},"body":"added","created_at":"2015-09-09T17:32:18Z","updated_at":"2015-09-09T17:32:18Z","html_url":"https://github.com/apache/parquet-mr/pull/259#discussion_r39072163","pull_request_url":"https://api.github.com/repos/apache/parquet-mr/pulls/259","_links":{"self":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/comments/39072163"},"html":{"href":"https://github.com/apache/parquet-mr/pull/259#discussion_r39072163"},"pull_request":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/259"}}},"pull_request":{"url":"https://api.github.com/repos/apache/parquet-mr/pulls/259","id":42669751,"html_url":"https://github.com/apache/parquet-mr/pull/259","diff_url":"https://github.com/apache/parquet-mr/pull/259.diff","patch_url":"https://github.com/apache/parquet-mr/pull/259.patch","issue_url":"https://api.github.com/repos/apache/parquet-mr/issues/259","number":259,"state":"open","locked":false,"title":"[PARQUET-360] Handle all map key types with cat tool's json dump","user":{"login":"nezihyigitbasi","id":1223839,"avatar_url":"https://avatars.githubusercontent.com/u/1223839?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi","html_url":"https://github.com/nezihyigitbasi","followers_url":"https://api.github.com/users/nezihyigitbasi/followers","following_url":"https://api.github.com/users/nezihyigitbasi/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi/repos","events_url":"https://api.github.com/users/nezihyigitbasi/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi/received_events","type":"User","site_admin":false},"body":"When dumping a parquet map with `parquet-cat --json` it throws a class cast exception as it doesn't properly handle all map key types.\r\n\r\n```\r\njava.lang.ClassCastException: [B cannot be cast to java.lang.String\r\n\tat org.apache.parquet.tools.read.SimpleMapRecord.toJsonObject(SimpleMapRecord.java:34)\r\n\tat org.apache.parquet.tools.read.SimpleRecord.toJsonValue(SimpleRecord.java:119)\r\n\tat org.apache.parquet.tools.read.SimpleRecord.toJsonObject(SimpleRecord.java:112)\r\n\tat org.apache.parquet.tools.read.SimpleRecord.prettyPrintJson(SimpleRecord.java:106)\r\n\tat org.apache.parquet.tools.command.CatCommand.execute(CatCommand.java:76)\r\n\tat org.apache.parquet.tools.Main.main(Main.java:222)\r\n[B cannot be cast to java.lang.String\r\n```","created_at":"2015-08-18T07:44:10Z","updated_at":"2015-09-09T17:32:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d99a278688b3b30b35d0d84b417080d4beeb6171","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/parquet-mr/pulls/259/commits","review_comments_url":"https://api.github.com/repos/apache/parquet-mr/pulls/259/comments","review_comment_url":"https://api.github.com/repos/apache/parquet-mr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/parquet-mr/issues/259/comments","statuses_url":"https://api.github.com/repos/apache/parquet-mr/statuses/d04750282db5344d49adf7993e31e078dc5390fc","head":{"label":"nezihyigitbasi-nflx:parquet-cat-json","ref":"parquet-cat-json","sha":"d04750282db5344d49adf7993e31e078dc5390fc","user":{"login":"nezihyigitbasi-nflx","id":10408233,"avatar_url":"https://avatars.githubusercontent.com/u/10408233?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi-nflx","html_url":"https://github.com/nezihyigitbasi-nflx","followers_url":"https://api.github.com/users/nezihyigitbasi-nflx/followers","following_url":"https://api.github.com/users/nezihyigitbasi-nflx/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi-nflx/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi-nflx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi-nflx/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi-nflx/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi-nflx/repos","events_url":"https://api.github.com/users/nezihyigitbasi-nflx/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi-nflx/received_events","type":"Organization","site_admin":false},"repo":{"id":37740723,"name":"parquet-mr","full_name":"nezihyigitbasi-nflx/parquet-mr","owner":{"login":"nezihyigitbasi-nflx","id":10408233,"avatar_url":"https://avatars.githubusercontent.com/u/10408233?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi-nflx","html_url":"https://github.com/nezihyigitbasi-nflx","followers_url":"https://api.github.com/users/nezihyigitbasi-nflx/followers","following_url":"https://api.github.com/users/nezihyigitbasi-nflx/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi-nflx/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi-nflx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi-nflx/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi-nflx/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi-nflx/repos","events_url":"https://api.github.com/users/nezihyigitbasi-nflx/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi-nflx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nezihyigitbasi-nflx/parquet-mr","description":"Mirror of Apache Parquet","fork":true,"url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr","forks_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/forks","keys_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/teams","hooks_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/hooks","issue_events_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/issues/events{/number}","events_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/events","assignees_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/assignees{/user}","branches_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/branches{/branch}","tags_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/tags","blobs_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/refs{/sha}","trees_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/statuses/{sha}","languages_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/languages","stargazers_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/stargazers","contributors_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/contributors","subscribers_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/subscribers","subscription_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/subscription","commits_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/commits{/sha}","git_commits_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/git/commits{/sha}","comments_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/comments{/number}","issue_comment_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/issues/comments{/number}","contents_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/contents/{+path}","compare_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/merges","archive_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/downloads","issues_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/issues{/number}","pulls_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/pulls{/number}","milestones_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/milestones{/number}","notifications_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/labels{/name}","releases_url":"https://api.github.com/repos/nezihyigitbasi-nflx/parquet-mr/releases{/id}","created_at":"2015-06-19T19:06:28Z","updated_at":"2015-06-19T19:06:31Z","pushed_at":"2015-09-09T17:32:10Z","git_url":"git://github.com/nezihyigitbasi-nflx/parquet-mr.git","ssh_url":"git@github.com:nezihyigitbasi-nflx/parquet-mr.git","clone_url":"https://github.com/nezihyigitbasi-nflx/parquet-mr.git","svn_url":"https://github.com/nezihyigitbasi-nflx/parquet-mr","homepage":null,"size":13362,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"04f524d5ad91b1cdda66dfde4089f2f83f4528aa","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20675636,"name":"parquet-mr","full_name":"apache/parquet-mr","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/parquet-mr","description":"Mirror of Apache Parquet","fork":false,"url":"https://api.github.com/repos/apache/parquet-mr","forks_url":"https://api.github.com/repos/apache/parquet-mr/forks","keys_url":"https://api.github.com/repos/apache/parquet-mr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/parquet-mr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/parquet-mr/teams","hooks_url":"https://api.github.com/repos/apache/parquet-mr/hooks","issue_events_url":"https://api.github.com/repos/apache/parquet-mr/issues/events{/number}","events_url":"https://api.github.com/repos/apache/parquet-mr/events","assignees_url":"https://api.github.com/repos/apache/parquet-mr/assignees{/user}","branches_url":"https://api.github.com/repos/apache/parquet-mr/branches{/branch}","tags_url":"https://api.github.com/repos/apache/parquet-mr/tags","blobs_url":"https://api.github.com/repos/apache/parquet-mr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/parquet-mr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/parquet-mr/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/parquet-mr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/parquet-mr/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/parquet-mr/languages","stargazers_url":"https://api.github.com/repos/apache/parquet-mr/stargazers","contributors_url":"https://api.github.com/repos/apache/parquet-mr/contributors","subscribers_url":"https://api.github.com/repos/apache/parquet-mr/subscribers","subscription_url":"https://api.github.com/repos/apache/parquet-mr/subscription","commits_url":"https://api.github.com/repos/apache/parquet-mr/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/parquet-mr/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/parquet-mr/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/parquet-mr/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/parquet-mr/contents/{+path}","compare_url":"https://api.github.com/repos/apache/parquet-mr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/parquet-mr/merges","archive_url":"https://api.github.com/repos/apache/parquet-mr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/parquet-mr/downloads","issues_url":"https://api.github.com/repos/apache/parquet-mr/issues{/number}","pulls_url":"https://api.github.com/repos/apache/parquet-mr/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/parquet-mr/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/parquet-mr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/parquet-mr/labels{/name}","releases_url":"https://api.github.com/repos/apache/parquet-mr/releases{/id}","created_at":"2014-06-10T07:00:07Z","updated_at":"2015-09-04T04:17:21Z","pushed_at":"2015-09-09T17:32:11Z","git_url":"git://github.com/apache/parquet-mr.git","ssh_url":"git@github.com:apache/parquet-mr.git","clone_url":"https://github.com/apache/parquet-mr.git","svn_url":"https://github.com/apache/parquet-mr","homepage":null,"size":86458,"stargazers_count":136,"watchers_count":136,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":154,"mirror_url":"git://git.apache.org/incubator-parquet-mr.git","open_issues_count":52,"forks":154,"open_issues":52,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/259"},"html":{"href":"https://github.com/apache/parquet-mr/pull/259"},"issue":{"href":"https://api.github.com/repos/apache/parquet-mr/issues/259"},"comments":{"href":"https://api.github.com/repos/apache/parquet-mr/issues/259/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/259/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/parquet-mr/pulls/259/commits"},"statuses":{"href":"https://api.github.com/repos/apache/parquet-mr/statuses/d04750282db5344d49adf7993e31e078dc5390fc"}}}}