{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/presto/issues/4629","repository_url":"https://api.github.com/repos/facebook/presto","labels_url":"https://api.github.com/repos/facebook/presto/issues/4629/labels{/name}","comments_url":"https://api.github.com/repos/facebook/presto/issues/4629/comments","events_url":"https://api.github.com/repos/facebook/presto/issues/4629/events","html_url":"https://github.com/facebook/presto/issues/4629","id":135864348,"number":4629,"title":"[presto-cli] Update type shouldn't be printed to stdout in non-interactive mode","user":{"login":"nezihyigitbasi","id":1223839,"avatar_url":"https://avatars.githubusercontent.com/u/1223839?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi","html_url":"https://github.com/nezihyigitbasi","followers_url":"https://api.github.com/users/nezihyigitbasi/followers","following_url":"https://api.github.com/users/nezihyigitbasi/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi/repos","events_url":"https://api.github.com/users/nezihyigitbasi/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-23T21:03:16Z","updated_at":"2016-03-09T20:15:19Z","closed_at":"2016-03-09T20:15:18Z","body":"For data definition tasks,which have non-null update types, presto cli shouldn't print their update types to stdout in non-interactive/batch mode as users usually process this output with other tools. For example, if there is a `set session` in my sql script and I execute it with `-f` I get `SET SESSION` as the first line in the output, which is supposed to only contain the result set. \r\n\r\n@electrum I think update type should be printed to stderr in non-interactive mode, what do you think?\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/presto/issues/comments/194488441","html_url":"https://github.com/facebook/presto/issues/4629#issuecomment-194488441","issue_url":"https://api.github.com/repos/facebook/presto/issues/4629","id":194488441,"user":{"login":"nezihyigitbasi","id":1223839,"avatar_url":"https://avatars.githubusercontent.com/u/1223839?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi","html_url":"https://github.com/nezihyigitbasi","followers_url":"https://api.github.com/users/nezihyigitbasi/followers","following_url":"https://api.github.com/users/nezihyigitbasi/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi/repos","events_url":"https://api.github.com/users/nezihyigitbasi/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T20:15:18Z","updated_at":"2016-03-09T20:15:18Z","body":"Closed via #4683 "}}