{"action":"created","comment":{"url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments/75749571","id":75749571,"diff_hunk":"@@ -13,3 +18,120 @@ case class DataSetInfo(name: String,\n                        schema: Schema,\n                        dataInterval: Interval,\n                        stats: Stats)\n+\n+object DataSetInfo {\n+\n+  def parse(json: JsValue): DataSetInfo = {\n+    json.validate[DataSetInfo] match {\n+      case js: JsSuccess[DataSetInfo] => js.get\n+      case e: JsError => throw JsonRequestException(JsError.toJson(e).toString())\n+    }\n+  }\n+\n+  def write(dataSetInfo: DataSetInfo): JsValue = Json.toJson(dataSetInfo)\n+\n+  implicit val intervalFormat: Format[Interval] = new Format[Interval] {\n+    override def reads(json: JsValue) = {\n+      val start = (json \\ \"start\").as[DateTime]","path":"zion/src/main/scala/edu/uci/ics/cloudberry/zion/model/impl/DataSetInfo.scala","position":32,"original_position":32,"commit_id":"dc37c1da7615f74f2558d6254b0ef6bcef693c5d","original_commit_id":"dc37c1da7615f74f2558d6254b0ef6bcef693c5d","user":{"login":"MoniMoledo","id":11588170,"avatar_url":"https://avatars.githubusercontent.com/u/11588170?v=3","gravatar_id":"","url":"https://api.github.com/users/MoniMoledo","html_url":"https://github.com/MoniMoledo","followers_url":"https://api.github.com/users/MoniMoledo/followers","following_url":"https://api.github.com/users/MoniMoledo/following{/other_user}","gists_url":"https://api.github.com/users/MoniMoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoniMoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoniMoledo/subscriptions","organizations_url":"https://api.github.com/users/MoniMoledo/orgs","repos_url":"https://api.github.com/users/MoniMoledo/repos","events_url":"https://api.github.com/users/MoniMoledo/events{/privacy}","received_events_url":"https://api.github.com/users/MoniMoledo/received_events","type":"User","site_admin":false},"body":"For now, I let this as Datetime like in Query as we discussed.","created_at":"2016-08-22T20:14:26Z","updated_at":"2016-08-22T20:14:26Z","html_url":"https://github.com/ISG-ICS/cloudberry/pull/175#discussion_r75749571","pull_request_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175","_links":{"self":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments/75749571"},"html":{"href":"https://github.com/ISG-ICS/cloudberry/pull/175#discussion_r75749571"},"pull_request":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175"}}},"pull_request":{"url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175","id":81726927,"html_url":"https://github.com/ISG-ICS/cloudberry/pull/175","diff_url":"https://github.com/ISG-ICS/cloudberry/pull/175.diff","patch_url":"https://github.com/ISG-ICS/cloudberry/pull/175.patch","issue_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/175","number":175,"state":"open","locked":false,"title":"DataSetInfo parser","user":{"login":"MoniMoledo","id":11588170,"avatar_url":"https://avatars.githubusercontent.com/u/11588170?v=3","gravatar_id":"","url":"https://api.github.com/users/MoniMoledo","html_url":"https://github.com/MoniMoledo","followers_url":"https://api.github.com/users/MoniMoledo/followers","following_url":"https://api.github.com/users/MoniMoledo/following{/other_user}","gists_url":"https://api.github.com/users/MoniMoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoniMoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoniMoledo/subscriptions","organizations_url":"https://api.github.com/users/MoniMoledo/orgs","repos_url":"https://api.github.com/users/MoniMoledo/repos","events_url":"https://api.github.com/users/MoniMoledo/events{/privacy}","received_events_url":"https://api.github.com/users/MoniMoledo/received_events","type":"User","site_admin":false},"body":"Implement DataSetInfo parser to and from a JSON Record\r\n\r\n@JavierJia ","created_at":"2016-08-17T22:16:26Z","updated_at":"2016-08-22T20:14:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2af9f0a1325c18aeb999bd07dd157b926fd1a778","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175/commits","review_comments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175/comments","review_comment_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/175/comments","statuses_url":"https://api.github.com/repos/ISG-ICS/cloudberry/statuses/dc37c1da7615f74f2558d6254b0ef6bcef693c5d","head":{"label":"MoniMoledo:datasetinfo_jsrecord","ref":"datasetinfo_jsrecord","sha":"dc37c1da7615f74f2558d6254b0ef6bcef693c5d","user":{"login":"MoniMoledo","id":11588170,"avatar_url":"https://avatars.githubusercontent.com/u/11588170?v=3","gravatar_id":"","url":"https://api.github.com/users/MoniMoledo","html_url":"https://github.com/MoniMoledo","followers_url":"https://api.github.com/users/MoniMoledo/followers","following_url":"https://api.github.com/users/MoniMoledo/following{/other_user}","gists_url":"https://api.github.com/users/MoniMoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoniMoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoniMoledo/subscriptions","organizations_url":"https://api.github.com/users/MoniMoledo/orgs","repos_url":"https://api.github.com/users/MoniMoledo/repos","events_url":"https://api.github.com/users/MoniMoledo/events{/privacy}","received_events_url":"https://api.github.com/users/MoniMoledo/received_events","type":"User","site_admin":false},"repo":{"id":60635242,"name":"cloudberry","full_name":"MoniMoledo/cloudberry","owner":{"login":"MoniMoledo","id":11588170,"avatar_url":"https://avatars.githubusercontent.com/u/11588170?v=3","gravatar_id":"","url":"https://api.github.com/users/MoniMoledo","html_url":"https://github.com/MoniMoledo","followers_url":"https://api.github.com/users/MoniMoledo/followers","following_url":"https://api.github.com/users/MoniMoledo/following{/other_user}","gists_url":"https://api.github.com/users/MoniMoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoniMoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoniMoledo/subscriptions","organizations_url":"https://api.github.com/users/MoniMoledo/orgs","repos_url":"https://api.github.com/users/MoniMoledo/repos","events_url":"https://api.github.com/users/MoniMoledo/events{/privacy}","received_events_url":"https://api.github.com/users/MoniMoledo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MoniMoledo/cloudberry","description":"Interactive Twitter map analytic application","fork":true,"url":"https://api.github.com/repos/MoniMoledo/cloudberry","forks_url":"https://api.github.com/repos/MoniMoledo/cloudberry/forks","keys_url":"https://api.github.com/repos/MoniMoledo/cloudberry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MoniMoledo/cloudberry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MoniMoledo/cloudberry/teams","hooks_url":"https://api.github.com/repos/MoniMoledo/cloudberry/hooks","issue_events_url":"https://api.github.com/repos/MoniMoledo/cloudberry/issues/events{/number}","events_url":"https://api.github.com/repos/MoniMoledo/cloudberry/events","assignees_url":"https://api.github.com/repos/MoniMoledo/cloudberry/assignees{/user}","branches_url":"https://api.github.com/repos/MoniMoledo/cloudberry/branches{/branch}","tags_url":"https://api.github.com/repos/MoniMoledo/cloudberry/tags","blobs_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/refs{/sha}","trees_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MoniMoledo/cloudberry/statuses/{sha}","languages_url":"https://api.github.com/repos/MoniMoledo/cloudberry/languages","stargazers_url":"https://api.github.com/repos/MoniMoledo/cloudberry/stargazers","contributors_url":"https://api.github.com/repos/MoniMoledo/cloudberry/contributors","subscribers_url":"https://api.github.com/repos/MoniMoledo/cloudberry/subscribers","subscription_url":"https://api.github.com/repos/MoniMoledo/cloudberry/subscription","commits_url":"https://api.github.com/repos/MoniMoledo/cloudberry/commits{/sha}","git_commits_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/commits{/sha}","comments_url":"https://api.github.com/repos/MoniMoledo/cloudberry/comments{/number}","issue_comment_url":"https://api.github.com/repos/MoniMoledo/cloudberry/issues/comments{/number}","contents_url":"https://api.github.com/repos/MoniMoledo/cloudberry/contents/{+path}","compare_url":"https://api.github.com/repos/MoniMoledo/cloudberry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MoniMoledo/cloudberry/merges","archive_url":"https://api.github.com/repos/MoniMoledo/cloudberry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MoniMoledo/cloudberry/downloads","issues_url":"https://api.github.com/repos/MoniMoledo/cloudberry/issues{/number}","pulls_url":"https://api.github.com/repos/MoniMoledo/cloudberry/pulls{/number}","milestones_url":"https://api.github.com/repos/MoniMoledo/cloudberry/milestones{/number}","notifications_url":"https://api.github.com/repos/MoniMoledo/cloudberry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MoniMoledo/cloudberry/labels{/name}","releases_url":"https://api.github.com/repos/MoniMoledo/cloudberry/releases{/id}","deployments_url":"https://api.github.com/repos/MoniMoledo/cloudberry/deployments","created_at":"2016-06-07T18:06:21Z","updated_at":"2016-06-07T18:06:25Z","pushed_at":"2016-08-19T23:12:14Z","git_url":"git://github.com/MoniMoledo/cloudberry.git","ssh_url":"git@github.com:MoniMoledo/cloudberry.git","clone_url":"https://github.com/MoniMoledo/cloudberry.git","svn_url":"https://github.com/MoniMoledo/cloudberry","homepage":"http://cloudberry.ics.uci.edu","size":89152,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ISG-ICS:master","ref":"master","sha":"0b3e53582f2b51b8b847525a827ba971d21b0c36","user":{"login":"ISG-ICS","id":17169982,"avatar_url":"https://avatars.githubusercontent.com/u/17169982?v=3","gravatar_id":"","url":"https://api.github.com/users/ISG-ICS","html_url":"https://github.com/ISG-ICS","followers_url":"https://api.github.com/users/ISG-ICS/followers","following_url":"https://api.github.com/users/ISG-ICS/following{/other_user}","gists_url":"https://api.github.com/users/ISG-ICS/gists{/gist_id}","starred_url":"https://api.github.com/users/ISG-ICS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ISG-ICS/subscriptions","organizations_url":"https://api.github.com/users/ISG-ICS/orgs","repos_url":"https://api.github.com/users/ISG-ICS/repos","events_url":"https://api.github.com/users/ISG-ICS/events{/privacy}","received_events_url":"https://api.github.com/users/ISG-ICS/received_events","type":"Organization","site_admin":false},"repo":{"id":46375119,"name":"cloudberry","full_name":"ISG-ICS/cloudberry","owner":{"login":"ISG-ICS","id":17169982,"avatar_url":"https://avatars.githubusercontent.com/u/17169982?v=3","gravatar_id":"","url":"https://api.github.com/users/ISG-ICS","html_url":"https://github.com/ISG-ICS","followers_url":"https://api.github.com/users/ISG-ICS/followers","following_url":"https://api.github.com/users/ISG-ICS/following{/other_user}","gists_url":"https://api.github.com/users/ISG-ICS/gists{/gist_id}","starred_url":"https://api.github.com/users/ISG-ICS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ISG-ICS/subscriptions","organizations_url":"https://api.github.com/users/ISG-ICS/orgs","repos_url":"https://api.github.com/users/ISG-ICS/repos","events_url":"https://api.github.com/users/ISG-ICS/events{/privacy}","received_events_url":"https://api.github.com/users/ISG-ICS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ISG-ICS/cloudberry","description":"Interactive Twitter map analytic application","fork":false,"url":"https://api.github.com/repos/ISG-ICS/cloudberry","forks_url":"https://api.github.com/repos/ISG-ICS/cloudberry/forks","keys_url":"https://api.github.com/repos/ISG-ICS/cloudberry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ISG-ICS/cloudberry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ISG-ICS/cloudberry/teams","hooks_url":"https://api.github.com/repos/ISG-ICS/cloudberry/hooks","issue_events_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/events{/number}","events_url":"https://api.github.com/repos/ISG-ICS/cloudberry/events","assignees_url":"https://api.github.com/repos/ISG-ICS/cloudberry/assignees{/user}","branches_url":"https://api.github.com/repos/ISG-ICS/cloudberry/branches{/branch}","tags_url":"https://api.github.com/repos/ISG-ICS/cloudberry/tags","blobs_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/refs{/sha}","trees_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ISG-ICS/cloudberry/statuses/{sha}","languages_url":"https://api.github.com/repos/ISG-ICS/cloudberry/languages","stargazers_url":"https://api.github.com/repos/ISG-ICS/cloudberry/stargazers","contributors_url":"https://api.github.com/repos/ISG-ICS/cloudberry/contributors","subscribers_url":"https://api.github.com/repos/ISG-ICS/cloudberry/subscribers","subscription_url":"https://api.github.com/repos/ISG-ICS/cloudberry/subscription","commits_url":"https://api.github.com/repos/ISG-ICS/cloudberry/commits{/sha}","git_commits_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/commits{/sha}","comments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/comments{/number}","issue_comment_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/comments{/number}","contents_url":"https://api.github.com/repos/ISG-ICS/cloudberry/contents/{+path}","compare_url":"https://api.github.com/repos/ISG-ICS/cloudberry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ISG-ICS/cloudberry/merges","archive_url":"https://api.github.com/repos/ISG-ICS/cloudberry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ISG-ICS/cloudberry/downloads","issues_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues{/number}","pulls_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls{/number}","milestones_url":"https://api.github.com/repos/ISG-ICS/cloudberry/milestones{/number}","notifications_url":"https://api.github.com/repos/ISG-ICS/cloudberry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ISG-ICS/cloudberry/labels{/name}","releases_url":"https://api.github.com/repos/ISG-ICS/cloudberry/releases{/id}","deployments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/deployments","created_at":"2015-11-17T20:59:29Z","updated_at":"2016-07-17T13:33:46Z","pushed_at":"2016-08-22T06:39:27Z","git_url":"git://github.com/ISG-ICS/cloudberry.git","ssh_url":"git@github.com:ISG-ICS/cloudberry.git","clone_url":"https://github.com/ISG-ICS/cloudberry.git","svn_url":"https://github.com/ISG-ICS/cloudberry","homepage":"http://cloudberry.ics.uci.edu","size":98331,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":28,"forks":14,"open_issues":28,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175"},"html":{"href":"https://github.com/ISG-ICS/cloudberry/pull/175"},"issue":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/175"},"comments":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/statuses/dc37c1da7615f74f2558d6254b0ef6bcef693c5d"}}}}
{"actor":{"display_login":"MoniMoledo"}}