{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28705","repository_url":"https://api.github.com/repos/cockroachdb/cockroach","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28705/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28705/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28705/events","html_url":"https://github.com/cockroachdb/cockroach/pull/28705","id":351252076,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4ODk1NTMz","number":28705,"title":"opt: add rulestats test directive","user":{"login":"RaduBerinde","id":16544120,"node_id":"MDQ6VXNlcjE2NTQ0MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/16544120?v=4","gravatar_id":"","url":"https://api.github.com/users/RaduBerinde","html_url":"https://github.com/RaduBerinde","followers_url":"https://api.github.com/users/RaduBerinde/followers","following_url":"https://api.github.com/users/RaduBerinde/following{/other_user}","gists_url":"https://api.github.com/users/RaduBerinde/gists{/gist_id}","starred_url":"https://api.github.com/users/RaduBerinde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaduBerinde/subscriptions","organizations_url":"https://api.github.com/users/RaduBerinde/orgs","repos_url":"https://api.github.com/users/RaduBerinde/repos","events_url":"https://api.github.com/users/RaduBerinde/events{/privacy}","received_events_url":"https://api.github.com/users/RaduBerinde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-16T15:19:20Z","updated_at":"2018-08-16T16:09:13Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/28705","html_url":"https://github.com/cockroachdb/cockroach/pull/28705","diff_url":"https://github.com/cockroachdb/cockroach/pull/28705.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/28705.patch"},"body":"Add a testing mode which just prints out statistics about how many\r\nrules were ran. This is useful to keep an eye on how various changes\r\naffect the number of rules that are applied.\r\n\r\nExample:\r\n\r\n```\r\nrulestats\r\nSELECT * FROM abc WHERE 1 < a\r\n----\r\nNormalization rules applied 1 times.\r\nTop normalization rules:\r\n  CommuteVarInequality applied   1 times.\r\nExploration rules applied 4 times, added 5 expressions.\r\nTop exploration rules:\r\n  PushFilterIntoIndexJoinNoRemainder applied   2 times, added   2 expressions.\r\n  GenerateIndexScans                 applied   1 times, added   2 expressions.\r\n  ConstrainScan                      applied   1 times, added   1 expressions.\r\n```\r\n\r\nRelease note: None"},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/413599318","html_url":"https://github.com/cockroachdb/cockroach/pull/28705#issuecomment-413599318","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/28705","id":413599318,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzU5OTMxOA==","user":{"login":"RaduBerinde","id":16544120,"node_id":"MDQ6VXNlcjE2NTQ0MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/16544120?v=4","gravatar_id":"","url":"https://api.github.com/users/RaduBerinde","html_url":"https://github.com/RaduBerinde","followers_url":"https://api.github.com/users/RaduBerinde/followers","following_url":"https://api.github.com/users/RaduBerinde/following{/other_user}","gists_url":"https://api.github.com/users/RaduBerinde/gists{/gist_id}","starred_url":"https://api.github.com/users/RaduBerinde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaduBerinde/subscriptions","organizations_url":"https://api.github.com/users/RaduBerinde/orgs","repos_url":"https://api.github.com/users/RaduBerinde/repos","events_url":"https://api.github.com/users/RaduBerinde/events{/privacy}","received_events_url":"https://api.github.com/users/RaduBerinde/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T16:09:13Z","updated_at":"2018-08-16T16:09:13Z","author_association":"MEMBER","body":"bors r+"}}
{"actor":{"display_login":"RaduBerinde"}}