{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/61827025","id":61827025,"diff_hunk":"@@ -0,0 +1,105 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ * \n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ * \n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.apache.hawq.pxf.api.utilities;\n+\n+import java.io.IOException;\n+import org.codehaus.jackson.JsonGenerator;\n+import org.codehaus.jackson.map.JsonSerializer;\n+import org.codehaus.jackson.map.annotate.JsonSerialize;\n+import org.codehaus.jackson.map.SerializerProvider;\n+import org.codehaus.jackson.JsonProcessingException;\n+\n+class EnumHawqTypeSerializer extends JsonSerializer<EnumHawqType> {\n+\n+    @Override\n+    public void serialize(EnumHawqType value, JsonGenerator generator,\n+              SerializerProvider provider) throws IOException,\n+              JsonProcessingException {\n+      generator.writeString(value.getTypeName());","path":"pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/utilities/EnumHawqType.java","position":35,"original_position":35,"commit_id":"b1db3991cc9be1536a17b93953d81f29c8dfa323","original_commit_id":"b1db3991cc9be1536a17b93953d81f29c8dfa323","user":{"login":"hornn","id":11283944,"avatar_url":"https://avatars.githubusercontent.com/u/11283944?v=3","gravatar_id":"","url":"https://api.github.com/users/hornn","html_url":"https://github.com/hornn","followers_url":"https://api.github.com/users/hornn/followers","following_url":"https://api.github.com/users/hornn/following{/other_user}","gists_url":"https://api.github.com/users/hornn/gists{/gist_id}","starred_url":"https://api.github.com/users/hornn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hornn/subscriptions","organizations_url":"https://api.github.com/users/hornn/orgs","repos_url":"https://api.github.com/users/hornn/repos","events_url":"https://api.github.com/users/hornn/events{/privacy}","received_events_url":"https://api.github.com/users/hornn/received_events","type":"User","site_admin":false},"body":"is it planned to add the modifiers to the serialized data? if so, maybe add a TODO here?","created_at":"2016-05-03T00:35:51Z","updated_at":"2016-05-03T00:35:51Z","html_url":"https://github.com/apache/incubator-hawq/pull/633#discussion_r61827025","pull_request_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/633","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/61827025"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/633#discussion_r61827025"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/633"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/633","id":68311555,"html_url":"https://github.com/apache/incubator-hawq/pull/633","diff_url":"https://github.com/apache/incubator-hawq/pull/633.diff","patch_url":"https://github.com/apache/incubator-hawq/pull/633.patch","issue_url":"https://api.github.com/repos/apache/incubator-hawq/issues/633","number":633,"state":"open","locked":false,"title":"HAWQ-703. Serialize HCatalog Complex Types to plain text (as Hive pro…","user":{"login":"sansanichfb","id":2278956,"avatar_url":"https://avatars.githubusercontent.com/u/2278956?v=3","gravatar_id":"","url":"https://api.github.com/users/sansanichfb","html_url":"https://github.com/sansanichfb","followers_url":"https://api.github.com/users/sansanichfb/followers","following_url":"https://api.github.com/users/sansanichfb/following{/other_user}","gists_url":"https://api.github.com/users/sansanichfb/gists{/gist_id}","starred_url":"https://api.github.com/users/sansanichfb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sansanichfb/subscriptions","organizations_url":"https://api.github.com/users/sansanichfb/orgs","repos_url":"https://api.github.com/users/sansanichfb/repos","events_url":"https://api.github.com/users/sansanichfb/events{/privacy}","received_events_url":"https://api.github.com/users/sansanichfb/received_events","type":"User","site_admin":false},"body":"…file).","created_at":"2016-04-29T00:34:23Z","updated_at":"2016-05-03T00:35:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13a08fa3c205de1c29fe546788915c357f676705","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/633/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/633/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/issues/633/comments","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/b1db3991cc9be1536a17b93953d81f29c8dfa323","head":{"label":"apache:HAWQ-703","ref":"HAWQ-703","sha":"b1db3991cc9be1536a17b93953d81f29c8dfa323","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":41952293,"name":"incubator-hawq","full_name":"apache/incubator-hawq","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/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-hawq","forks_url":"https://api.github.com/repos/apache/incubator-hawq/forks","keys_url":"https://api.github.com/repos/apache/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/apache/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-hawq/events","assignees_url":"https://api.github.com/repos/apache/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/apache/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/apache/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-hawq/merges","archive_url":"https://api.github.com/repos/apache/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/apache/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-hawq/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-hawq/deployments","created_at":"2015-09-05T07:00:05Z","updated_at":"2016-04-28T10:34:37Z","pushed_at":"2016-05-03T00:33:31Z","git_url":"git://github.com/apache/incubator-hawq.git","ssh_url":"git@github.com:apache/incubator-hawq.git","clone_url":"https://github.com/apache/incubator-hawq.git","svn_url":"https://github.com/apache/incubator-hawq","homepage":null,"size":151807,"stargazers_count":148,"watchers_count":148,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":"git://git.apache.org/incubator-hawq.git","open_issues_count":14,"forks":118,"open_issues":14,"watchers":148,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"b357dbcd9417c120d7bedda020771dd3d941d519","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":41952293,"name":"incubator-hawq","full_name":"apache/incubator-hawq","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/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-hawq","forks_url":"https://api.github.com/repos/apache/incubator-hawq/forks","keys_url":"https://api.github.com/repos/apache/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/apache/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-hawq/events","assignees_url":"https://api.github.com/repos/apache/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/apache/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/apache/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-hawq/merges","archive_url":"https://api.github.com/repos/apache/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/apache/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-hawq/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-hawq/deployments","created_at":"2015-09-05T07:00:05Z","updated_at":"2016-04-28T10:34:37Z","pushed_at":"2016-05-03T00:33:31Z","git_url":"git://github.com/apache/incubator-hawq.git","ssh_url":"git@github.com:apache/incubator-hawq.git","clone_url":"https://github.com/apache/incubator-hawq.git","svn_url":"https://github.com/apache/incubator-hawq","homepage":null,"size":151807,"stargazers_count":148,"watchers_count":148,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":"git://git.apache.org/incubator-hawq.git","open_issues_count":14,"forks":118,"open_issues":14,"watchers":148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/633"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/633"},"issue":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/633"},"comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/633/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/633/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/633/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-hawq/statuses/b1db3991cc9be1536a17b93953d81f29c8dfa323"}}}}