{"action":"created","comment":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/37917154","id":37917154,"diff_hunk":"@@ -281,6 +286,45 @@ func (e *StatementExecutor) executeShowContinuousQueriesStatement(stmt *influxql\n \treturn &influxql.Result{Series: rows}\n }\n \n+func (e *StatementExecutor) executeShowShardsStatement(stmt *influxql.ShowShardsStatement) *influxql.Result {\n+\tdis, err := e.Store.Databases()\n+\tif err != nil {\n+\t\treturn &influxql.Result{Err: err}\n+\t}\n+\n+\trows := []*influxql.Row{}\n+\tfor _, di := range dis {","path":"meta/statement_executor.go","position":31,"original_position":31,"commit_id":"1fc968630279171f0f611f57779821eac61de2aa","original_commit_id":"1fc968630279171f0f611f57779821eac61de2aa","user":{"login":"dgnorton","id":209347,"avatar_url":"https://avatars.githubusercontent.com/u/209347?v=3","gravatar_id":"","url":"https://api.github.com/users/dgnorton","html_url":"https://github.com/dgnorton","followers_url":"https://api.github.com/users/dgnorton/followers","following_url":"https://api.github.com/users/dgnorton/following{/other_user}","gists_url":"https://api.github.com/users/dgnorton/gists{/gist_id}","starred_url":"https://api.github.com/users/dgnorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgnorton/subscriptions","organizations_url":"https://api.github.com/users/dgnorton/orgs","repos_url":"https://api.github.com/users/dgnorton/repos","events_url":"https://api.github.com/users/dgnorton/events{/privacy}","received_events_url":"https://api.github.com/users/dgnorton/received_events","type":"User","site_admin":false},"body":"I've got one on the `dmq-show-measurements2` branch, which is ready to merge.  @benbjohnson  can merge this as-is and I can convert this to use the one in `meta` package while doing other DMQ work.","created_at":"2015-08-25T20:45:48Z","updated_at":"2015-08-25T20:45:48Z","html_url":"https://github.com/influxdb/influxdb/pull/3815#discussion_r37917154","pull_request_url":"https://api.github.com/repos/influxdb/influxdb/pulls/3815","_links":{"self":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/comments/37917154"},"html":{"href":"https://github.com/influxdb/influxdb/pull/3815#discussion_r37917154"},"pull_request":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/3815"}}},"pull_request":{"url":"https://api.github.com/repos/influxdb/influxdb/pulls/3815","id":43212241,"html_url":"https://github.com/influxdb/influxdb/pull/3815","diff_url":"https://github.com/influxdb/influxdb/pull/3815.diff","patch_url":"https://github.com/influxdb/influxdb/pull/3815.patch","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/3815","number":3815,"state":"open","locked":false,"title":"SHOW SHARDS","user":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"body":"## Overview\r\n\r\nThis pull request adds the ability to list all shards in the cluster and return their id, start time, end time, expiry time, and owner ids. Shards are grouped by database.\r\n\r\nFixes #3562","created_at":"2015-08-24T19:31:24Z","updated_at":"2015-08-25T20:45:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1906bdd74e608c6cf17604ed2b63e1816059d95","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/influxdb/influxdb/pulls/3815/commits","review_comments_url":"https://api.github.com/repos/influxdb/influxdb/pulls/3815/comments","review_comment_url":"https://api.github.com/repos/influxdb/influxdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/3815/comments","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/1fc968630279171f0f611f57779821eac61de2aa","head":{"label":"benbjohnson:query-shards","ref":"query-shards","sha":"1fc968630279171f0f611f57779821eac61de2aa","user":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"repo":{"id":36954584,"name":"influxdb","full_name":"benbjohnson/influxdb","owner":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benbjohnson/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":true,"url":"https://api.github.com/repos/benbjohnson/influxdb","forks_url":"https://api.github.com/repos/benbjohnson/influxdb/forks","keys_url":"https://api.github.com/repos/benbjohnson/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benbjohnson/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benbjohnson/influxdb/teams","hooks_url":"https://api.github.com/repos/benbjohnson/influxdb/hooks","issue_events_url":"https://api.github.com/repos/benbjohnson/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/benbjohnson/influxdb/events","assignees_url":"https://api.github.com/repos/benbjohnson/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/benbjohnson/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/benbjohnson/influxdb/tags","blobs_url":"https://api.github.com/repos/benbjohnson/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benbjohnson/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benbjohnson/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/benbjohnson/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benbjohnson/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/benbjohnson/influxdb/languages","stargazers_url":"https://api.github.com/repos/benbjohnson/influxdb/stargazers","contributors_url":"https://api.github.com/repos/benbjohnson/influxdb/contributors","subscribers_url":"https://api.github.com/repos/benbjohnson/influxdb/subscribers","subscription_url":"https://api.github.com/repos/benbjohnson/influxdb/subscription","commits_url":"https://api.github.com/repos/benbjohnson/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/benbjohnson/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/benbjohnson/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/benbjohnson/influxdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/benbjohnson/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/benbjohnson/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benbjohnson/influxdb/merges","archive_url":"https://api.github.com/repos/benbjohnson/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benbjohnson/influxdb/downloads","issues_url":"https://api.github.com/repos/benbjohnson/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/benbjohnson/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/benbjohnson/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/benbjohnson/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benbjohnson/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/benbjohnson/influxdb/releases{/id}","created_at":"2015-06-05T20:45:47Z","updated_at":"2015-06-05T20:45:48Z","pushed_at":"2015-08-25T17:02:08Z","git_url":"git://github.com/benbjohnson/influxdb.git","ssh_url":"git@github.com:benbjohnson/influxdb.git","clone_url":"https://github.com/benbjohnson/influxdb.git","svn_url":"https://github.com/benbjohnson/influxdb","homepage":"http://influxdb.com","size":25124,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"influxdb:master","ref":"master","sha":"6193226ce886e11d4a62412514389b3b37dd30e1","user":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"repo":{"id":13124802,"name":"influxdb","full_name":"influxdb/influxdb","owner":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdb/influxdb","description":"Scalable datastore for metrics, events, and real-time analytics","fork":false,"url":"https://api.github.com/repos/influxdb/influxdb","forks_url":"https://api.github.com/repos/influxdb/influxdb/forks","keys_url":"https://api.github.com/repos/influxdb/influxdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdb/influxdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdb/influxdb/teams","hooks_url":"https://api.github.com/repos/influxdb/influxdb/hooks","issue_events_url":"https://api.github.com/repos/influxdb/influxdb/issues/events{/number}","events_url":"https://api.github.com/repos/influxdb/influxdb/events","assignees_url":"https://api.github.com/repos/influxdb/influxdb/assignees{/user}","branches_url":"https://api.github.com/repos/influxdb/influxdb/branches{/branch}","tags_url":"https://api.github.com/repos/influxdb/influxdb/tags","blobs_url":"https://api.github.com/repos/influxdb/influxdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdb/influxdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdb/influxdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdb/influxdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdb/influxdb/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdb/influxdb/languages","stargazers_url":"https://api.github.com/repos/influxdb/influxdb/stargazers","contributors_url":"https://api.github.com/repos/influxdb/influxdb/contributors","subscribers_url":"https://api.github.com/repos/influxdb/influxdb/subscribers","subscription_url":"https://api.github.com/repos/influxdb/influxdb/subscription","commits_url":"https://api.github.com/repos/influxdb/influxdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdb/influxdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdb/influxdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdb/influxdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdb/influxdb/contents/{+path}","compare_url":"https://api.github.com/repos/influxdb/influxdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdb/influxdb/merges","archive_url":"https://api.github.com/repos/influxdb/influxdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdb/influxdb/downloads","issues_url":"https://api.github.com/repos/influxdb/influxdb/issues{/number}","pulls_url":"https://api.github.com/repos/influxdb/influxdb/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdb/influxdb/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdb/influxdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdb/influxdb/labels{/name}","releases_url":"https://api.github.com/repos/influxdb/influxdb/releases{/id}","created_at":"2013-09-26T14:31:10Z","updated_at":"2015-08-25T15:10:59Z","pushed_at":"2015-08-25T20:27:29Z","git_url":"git://github.com/influxdb/influxdb.git","ssh_url":"git@github.com:influxdb/influxdb.git","clone_url":"https://github.com/influxdb/influxdb.git","svn_url":"https://github.com/influxdb/influxdb","homepage":"http://influxdb.com","size":52714,"stargazers_count":6106,"watchers_count":6106,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":656,"mirror_url":null,"open_issues_count":345,"forks":656,"open_issues":345,"watchers":6106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/3815"},"html":{"href":"https://github.com/influxdb/influxdb/pull/3815"},"issue":{"href":"https://api.github.com/repos/influxdb/influxdb/issues/3815"},"comments":{"href":"https://api.github.com/repos/influxdb/influxdb/issues/3815/comments"},"review_comments":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/3815/comments"},"review_comment":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influxdb/influxdb/pulls/3815/commits"},"statuses":{"href":"https://api.github.com/repos/influxdb/influxdb/statuses/1fc968630279171f0f611f57779821eac61de2aa"}}}}