{"action":"created","comment":{"url":"https://api.github.com/repos/apache/phoenix/pulls/comments/37822337","id":37822337,"diff_hunk":"@@ -0,0 +1,139 @@\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, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.apache.phoenix.end2end;\n+\n+import org.apache.phoenix.exception.SQLExceptionCode;\n+import org.apache.phoenix.schema.types.PhoenixArray;\n+import org.apache.phoenix.util.PropertiesUtil;\n+import org.junit.Test;\n+\n+import java.sql.*;\n+import java.util.Properties;\n+\n+import static org.apache.phoenix.util.TestUtil.TEST_PROPERTIES;\n+import static org.junit.Assert.*;\n+\n+/**\n+ * End to end test for {@link org.apache.phoenix.expression.function.JsonPopulateRecordSetFunction}.\n+ *\n+ */\n+public class JsonPopulateRecordSetFunctionIT extends BaseHBaseManagedTimeIT {","path":"phoenix-core/src/it/java/org/apache/phoenix/end2end/JsonPopulateRecordSetFunctionIT.java","position":35,"original_position":35,"commit_id":"1bb5829f66f221effe35ad8e874e3390569f0399","original_commit_id":"1bb5829f66f221effe35ad8e874e3390569f0399","user":{"login":"twdsilva","id":5653678,"avatar_url":"https://avatars.githubusercontent.com/u/5653678?v=3","gravatar_id":"","url":"https://api.github.com/users/twdsilva","html_url":"https://github.com/twdsilva","followers_url":"https://api.github.com/users/twdsilva/followers","following_url":"https://api.github.com/users/twdsilva/following{/other_user}","gists_url":"https://api.github.com/users/twdsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/twdsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twdsilva/subscriptions","organizations_url":"https://api.github.com/users/twdsilva/orgs","repos_url":"https://api.github.com/users/twdsilva/repos","events_url":"https://api.github.com/users/twdsilva/events{/privacy}","received_events_url":"https://api.github.com/users/twdsilva/received_events","type":"User","site_admin":false},"body":"See above for record set.","created_at":"2015-08-25T00:46:43Z","updated_at":"2015-08-25T00:46:43Z","html_url":"https://github.com/apache/phoenix/pull/102#discussion_r37822337","pull_request_url":"https://api.github.com/repos/apache/phoenix/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/apache/phoenix/pulls/comments/37822337"},"html":{"href":"https://github.com/apache/phoenix/pull/102#discussion_r37822337"},"pull_request":{"href":"https://api.github.com/repos/apache/phoenix/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/apache/phoenix/pulls/102","id":40848646,"html_url":"https://github.com/apache/phoenix/pull/102","diff_url":"https://github.com/apache/phoenix/pull/102.diff","patch_url":"https://github.com/apache/phoenix/pull/102.patch","issue_url":"https://api.github.com/repos/apache/phoenix/issues/102","number":102,"state":"open","locked":false,"title":"PHOENIX-1661 Implement built-in functions for JSON","user":{"login":"ictwanglei","id":10023831,"avatar_url":"https://avatars.githubusercontent.com/u/10023831?v=3","gravatar_id":"","url":"https://api.github.com/users/ictwanglei","html_url":"https://github.com/ictwanglei","followers_url":"https://api.github.com/users/ictwanglei/followers","following_url":"https://api.github.com/users/ictwanglei/following{/other_user}","gists_url":"https://api.github.com/users/ictwanglei/gists{/gist_id}","starred_url":"https://api.github.com/users/ictwanglei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ictwanglei/subscriptions","organizations_url":"https://api.github.com/users/ictwanglei/orgs","repos_url":"https://api.github.com/users/ictwanglei/repos","events_url":"https://api.github.com/users/ictwanglei/events{/privacy}","received_events_url":"https://api.github.com/users/ictwanglei/received_events","type":"User","site_admin":false},"body":"Add some  built-in functions for JSON : JsonArrayElementsFunction.java JsonArrayLengthFunction.java JsonEachFunction.java JsonObjectKeysFunction.java JsonPopulateRecordFunction.java JsonPopulateRecordSetFunction.java. ArrayToJsonFunction.java\r\n\r\nAdd end2end test files.\r\n\r\nModify file PhoenixJson.java to which I added some helper methods.\r\n\r\n@JamesRTaylor @twdsilva @AakashPradeep","created_at":"2015-07-26T06:09:32Z","updated_at":"2015-08-25T00:46:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8527ded7ff2a54e92860eb2e9c5910d2c1a077a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/phoenix/pulls/102/commits","review_comments_url":"https://api.github.com/repos/apache/phoenix/pulls/102/comments","review_comment_url":"https://api.github.com/repos/apache/phoenix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/phoenix/issues/102/comments","statuses_url":"https://api.github.com/repos/apache/phoenix/statuses/1bb5829f66f221effe35ad8e874e3390569f0399","head":{"label":"ictwanglei:json","ref":"json","sha":"1bb5829f66f221effe35ad8e874e3390569f0399","user":{"login":"ictwanglei","id":10023831,"avatar_url":"https://avatars.githubusercontent.com/u/10023831?v=3","gravatar_id":"","url":"https://api.github.com/users/ictwanglei","html_url":"https://github.com/ictwanglei","followers_url":"https://api.github.com/users/ictwanglei/followers","following_url":"https://api.github.com/users/ictwanglei/following{/other_user}","gists_url":"https://api.github.com/users/ictwanglei/gists{/gist_id}","starred_url":"https://api.github.com/users/ictwanglei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ictwanglei/subscriptions","organizations_url":"https://api.github.com/users/ictwanglei/orgs","repos_url":"https://api.github.com/users/ictwanglei/repos","events_url":"https://api.github.com/users/ictwanglei/events{/privacy}","received_events_url":"https://api.github.com/users/ictwanglei/received_events","type":"User","site_admin":false},"repo":{"id":32637344,"name":"phoenix","full_name":"ictwanglei/phoenix","owner":{"login":"ictwanglei","id":10023831,"avatar_url":"https://avatars.githubusercontent.com/u/10023831?v=3","gravatar_id":"","url":"https://api.github.com/users/ictwanglei","html_url":"https://github.com/ictwanglei","followers_url":"https://api.github.com/users/ictwanglei/followers","following_url":"https://api.github.com/users/ictwanglei/following{/other_user}","gists_url":"https://api.github.com/users/ictwanglei/gists{/gist_id}","starred_url":"https://api.github.com/users/ictwanglei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ictwanglei/subscriptions","organizations_url":"https://api.github.com/users/ictwanglei/orgs","repos_url":"https://api.github.com/users/ictwanglei/repos","events_url":"https://api.github.com/users/ictwanglei/events{/privacy}","received_events_url":"https://api.github.com/users/ictwanglei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ictwanglei/phoenix","description":"Mirror of Apache Phoenix","fork":true,"url":"https://api.github.com/repos/ictwanglei/phoenix","forks_url":"https://api.github.com/repos/ictwanglei/phoenix/forks","keys_url":"https://api.github.com/repos/ictwanglei/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ictwanglei/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ictwanglei/phoenix/teams","hooks_url":"https://api.github.com/repos/ictwanglei/phoenix/hooks","issue_events_url":"https://api.github.com/repos/ictwanglei/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/ictwanglei/phoenix/events","assignees_url":"https://api.github.com/repos/ictwanglei/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/ictwanglei/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/ictwanglei/phoenix/tags","blobs_url":"https://api.github.com/repos/ictwanglei/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ictwanglei/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ictwanglei/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/ictwanglei/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ictwanglei/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/ictwanglei/phoenix/languages","stargazers_url":"https://api.github.com/repos/ictwanglei/phoenix/stargazers","contributors_url":"https://api.github.com/repos/ictwanglei/phoenix/contributors","subscribers_url":"https://api.github.com/repos/ictwanglei/phoenix/subscribers","subscription_url":"https://api.github.com/repos/ictwanglei/phoenix/subscription","commits_url":"https://api.github.com/repos/ictwanglei/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/ictwanglei/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/ictwanglei/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/ictwanglei/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/ictwanglei/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/ictwanglei/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ictwanglei/phoenix/merges","archive_url":"https://api.github.com/repos/ictwanglei/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ictwanglei/phoenix/downloads","issues_url":"https://api.github.com/repos/ictwanglei/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/ictwanglei/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/ictwanglei/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/ictwanglei/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ictwanglei/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/ictwanglei/phoenix/releases{/id}","created_at":"2015-03-21T15:27:06Z","updated_at":"2015-03-25T07:10:30Z","pushed_at":"2015-08-20T01:49:15Z","git_url":"git://github.com/ictwanglei/phoenix.git","ssh_url":"git@github.com:ictwanglei/phoenix.git","clone_url":"https://github.com/ictwanglei/phoenix.git","svn_url":"https://github.com/ictwanglei/phoenix","homepage":null,"size":16103,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"apache:json","ref":"json","sha":"6ee28a5e25154556140c751c3040d9144cd86f67","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":20473418,"name":"phoenix","full_name":"apache/phoenix","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/phoenix","description":"Mirror of Apache Phoenix","fork":false,"url":"https://api.github.com/repos/apache/phoenix","forks_url":"https://api.github.com/repos/apache/phoenix/forks","keys_url":"https://api.github.com/repos/apache/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/phoenix/teams","hooks_url":"https://api.github.com/repos/apache/phoenix/hooks","issue_events_url":"https://api.github.com/repos/apache/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/apache/phoenix/events","assignees_url":"https://api.github.com/repos/apache/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/apache/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/apache/phoenix/tags","blobs_url":"https://api.github.com/repos/apache/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/phoenix/languages","stargazers_url":"https://api.github.com/repos/apache/phoenix/stargazers","contributors_url":"https://api.github.com/repos/apache/phoenix/contributors","subscribers_url":"https://api.github.com/repos/apache/phoenix/subscribers","subscription_url":"https://api.github.com/repos/apache/phoenix/subscription","commits_url":"https://api.github.com/repos/apache/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/apache/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/phoenix/merges","archive_url":"https://api.github.com/repos/apache/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/phoenix/downloads","issues_url":"https://api.github.com/repos/apache/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/apache/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/apache/phoenix/releases{/id}","created_at":"2014-06-04T07:00:08Z","updated_at":"2015-08-24T14:31:07Z","pushed_at":"2015-08-24T17:49:25Z","git_url":"git://github.com/apache/phoenix.git","ssh_url":"git@github.com:apache/phoenix.git","clone_url":"https://github.com/apache/phoenix.git","svn_url":"https://github.com/apache/phoenix","homepage":null,"size":35160,"stargazers_count":94,"watchers_count":94,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":166,"mirror_url":"git://git.apache.org/phoenix.git","open_issues_count":65,"forks":166,"open_issues":65,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/phoenix/pulls/102"},"html":{"href":"https://github.com/apache/phoenix/pull/102"},"issue":{"href":"https://api.github.com/repos/apache/phoenix/issues/102"},"comments":{"href":"https://api.github.com/repos/apache/phoenix/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/phoenix/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/phoenix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/phoenix/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/apache/phoenix/statuses/1bb5829f66f221effe35ad8e874e3390569f0399"}}}}