{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1788","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1788/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1788/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1788/events","html_url":"https://github.com/cockroachdb/cockroach/issues/1788","id":96896007,"number":1788,"title":"sql/parser: go-fuzz our SQL parsing","user":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tschottdorf","id":5076964,"avatar_url":"https://avatars.githubusercontent.com/u/5076964?v=3","gravatar_id":"","url":"https://api.github.com/users/tschottdorf","html_url":"https://github.com/tschottdorf","followers_url":"https://api.github.com/users/tschottdorf/followers","following_url":"https://api.github.com/users/tschottdorf/following{/other_user}","gists_url":"https://api.github.com/users/tschottdorf/gists{/gist_id}","starred_url":"https://api.github.com/users/tschottdorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschottdorf/subscriptions","organizations_url":"https://api.github.com/users/tschottdorf/orgs","repos_url":"https://api.github.com/users/tschottdorf/repos","events_url":"https://api.github.com/users/tschottdorf/events{/privacy}","received_events_url":"https://api.github.com/users/tschottdorf/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-07-23T20:13:26Z","updated_at":"2015-07-24T12:37:25Z","closed_at":null,"body":"https://github.com/dvyukov/go-fuzz"},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/124506819","html_url":"https://github.com/cockroachdb/cockroach/issues/1788#issuecomment-124506819","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1788","id":124506819,"user":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T12:37:25Z","updated_at":"2015-07-24T12:37:25Z","body":"The current grammar setup doesn't guarantee that SQL -> parsed -> SQL will result in the same SQL. When there is alternate syntax, we only generate one. For example, the recent typecast stuff `1::text` -> `CAST(1 AS TEXT)`. Making the SQL roundtrip exactly is a lot of work for little value. \r\n\r\nYes, there are large swaths of the grammar that we don't currently support (e.g. `ALTER`). I suppose we could comment these out in the short term."}}