{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/16","id":63958491,"html_url":"https://github.com/Automattic/php-thrift-sql/pull/16","diff_url":"https://github.com/Automattic/php-thrift-sql/pull/16.diff","patch_url":"https://github.com/Automattic/php-thrift-sql/pull/16.patch","issue_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/16","number":16,"state":"open","locked":false,"title":"Throw with proper error message if query fails immediately.","user":{"login":"coreh","id":418473,"avatar_url":"https://avatars.githubusercontent.com/u/418473?v=3","gravatar_id":"","url":"https://api.github.com/users/coreh","html_url":"https://github.com/coreh","followers_url":"https://api.github.com/users/coreh/followers","following_url":"https://api.github.com/users/coreh/following{/other_user}","gists_url":"https://api.github.com/users/coreh/gists{/gist_id}","starred_url":"https://api.github.com/users/coreh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreh/subscriptions","organizations_url":"https://api.github.com/users/coreh/orgs","repos_url":"https://api.github.com/users/coreh/repos","events_url":"https://api.github.com/users/coreh/events{/privacy}","received_events_url":"https://api.github.com/users/coreh/received_events","type":"User","site_admin":false},"body":"When a query failed immediately (e.g. due to a compilation error in the HiveQL code) we were not providing a meaningful error message.\r\n\r\nThis made some scenarios hard to debug.","created_at":"2016-03-23T21:48:24Z","updated_at":"2016-03-23T21:48:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/16/commits","review_comments_url":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/16/comments","review_comment_url":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/16/comments","statuses_url":"https://api.github.com/repos/Automattic/php-thrift-sql/statuses/17f8730c1bb2dc17af4313528ebc4aaff58224f1","head":{"label":"Automattic:fix/error-messages","ref":"fix/error-messages","sha":"17f8730c1bb2dc17af4313528ebc4aaff58224f1","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":27786050,"name":"php-thrift-sql","full_name":"Automattic/php-thrift-sql","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/php-thrift-sql","description":"PHP lib for connecting to Hive and Impala over Thrift","fork":false,"url":"https://api.github.com/repos/Automattic/php-thrift-sql","forks_url":"https://api.github.com/repos/Automattic/php-thrift-sql/forks","keys_url":"https://api.github.com/repos/Automattic/php-thrift-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/php-thrift-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/php-thrift-sql/teams","hooks_url":"https://api.github.com/repos/Automattic/php-thrift-sql/hooks","issue_events_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/php-thrift-sql/events","assignees_url":"https://api.github.com/repos/Automattic/php-thrift-sql/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/php-thrift-sql/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/php-thrift-sql/tags","blobs_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/php-thrift-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/php-thrift-sql/languages","stargazers_url":"https://api.github.com/repos/Automattic/php-thrift-sql/stargazers","contributors_url":"https://api.github.com/repos/Automattic/php-thrift-sql/contributors","subscribers_url":"https://api.github.com/repos/Automattic/php-thrift-sql/subscribers","subscription_url":"https://api.github.com/repos/Automattic/php-thrift-sql/subscription","commits_url":"https://api.github.com/repos/Automattic/php-thrift-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/php-thrift-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/php-thrift-sql/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/php-thrift-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/php-thrift-sql/merges","archive_url":"https://api.github.com/repos/Automattic/php-thrift-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/php-thrift-sql/downloads","issues_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/php-thrift-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/php-thrift-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/php-thrift-sql/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/php-thrift-sql/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/php-thrift-sql/deployments","created_at":"2014-12-09T20:40:32Z","updated_at":"2016-03-20T07:24:26Z","pushed_at":"2016-03-23T21:46:09Z","git_url":"git://github.com/Automattic/php-thrift-sql.git","ssh_url":"git@github.com:Automattic/php-thrift-sql.git","clone_url":"https://github.com/Automattic/php-thrift-sql.git","svn_url":"https://github.com/Automattic/php-thrift-sql","homepage":null,"size":306,"stargazers_count":14,"watchers_count":14,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":14,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"55c2ffff4709aadecc5ea465a6334685c7927050","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":27786050,"name":"php-thrift-sql","full_name":"Automattic/php-thrift-sql","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/php-thrift-sql","description":"PHP lib for connecting to Hive and Impala over Thrift","fork":false,"url":"https://api.github.com/repos/Automattic/php-thrift-sql","forks_url":"https://api.github.com/repos/Automattic/php-thrift-sql/forks","keys_url":"https://api.github.com/repos/Automattic/php-thrift-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/php-thrift-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/php-thrift-sql/teams","hooks_url":"https://api.github.com/repos/Automattic/php-thrift-sql/hooks","issue_events_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/php-thrift-sql/events","assignees_url":"https://api.github.com/repos/Automattic/php-thrift-sql/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/php-thrift-sql/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/php-thrift-sql/tags","blobs_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/php-thrift-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/php-thrift-sql/languages","stargazers_url":"https://api.github.com/repos/Automattic/php-thrift-sql/stargazers","contributors_url":"https://api.github.com/repos/Automattic/php-thrift-sql/contributors","subscribers_url":"https://api.github.com/repos/Automattic/php-thrift-sql/subscribers","subscription_url":"https://api.github.com/repos/Automattic/php-thrift-sql/subscription","commits_url":"https://api.github.com/repos/Automattic/php-thrift-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/php-thrift-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/php-thrift-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/php-thrift-sql/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/php-thrift-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/php-thrift-sql/merges","archive_url":"https://api.github.com/repos/Automattic/php-thrift-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/php-thrift-sql/downloads","issues_url":"https://api.github.com/repos/Automattic/php-thrift-sql/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/php-thrift-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/php-thrift-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/php-thrift-sql/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/php-thrift-sql/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/php-thrift-sql/deployments","created_at":"2014-12-09T20:40:32Z","updated_at":"2016-03-20T07:24:26Z","pushed_at":"2016-03-23T21:46:09Z","git_url":"git://github.com/Automattic/php-thrift-sql.git","ssh_url":"git@github.com:Automattic/php-thrift-sql.git","clone_url":"https://github.com/Automattic/php-thrift-sql.git","svn_url":"https://github.com/Automattic/php-thrift-sql","homepage":null,"size":306,"stargazers_count":14,"watchers_count":14,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/16"},"html":{"href":"https://github.com/Automattic/php-thrift-sql/pull/16"},"issue":{"href":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/16"},"comments":{"href":"https://api.github.com/repos/Automattic/php-thrift-sql/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/php-thrift-sql/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/php-thrift-sql/statuses/17f8730c1bb2dc17af4313528ebc4aaff58224f1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}