{"action":"opened","number":37129,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/37129","id":242133372,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTMzMzcy","html_url":"https://github.com/elastic/elasticsearch/pull/37129","diff_url":"https://github.com/elastic/elasticsearch/pull/37129.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/37129.patch","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/37129","number":37129,"state":"open","locked":false,"title":"SQL: Improve error message when unable to translate to ES query DSL","user":{"login":"matriv","id":5058131,"node_id":"MDQ6VXNlcjUwNTgxMzE=","avatar_url":"https://avatars1.githubusercontent.com/u/5058131?v=4","gravatar_id":"","url":"https://api.github.com/users/matriv","html_url":"https://github.com/matriv","followers_url":"https://api.github.com/users/matriv/followers","following_url":"https://api.github.com/users/matriv/following{/other_user}","gists_url":"https://api.github.com/users/matriv/gists{/gist_id}","starred_url":"https://api.github.com/users/matriv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matriv/subscriptions","organizations_url":"https://api.github.com/users/matriv/orgs","repos_url":"https://api.github.com/users/matriv/repos","events_url":"https://api.github.com/users/matriv/events{/privacy}","received_events_url":"https://api.github.com/users/matriv/received_events","type":"User","site_admin":false},"body":"Improve error message returned to the client when an SQL statement\r\ncannot be translated to a ES query DSL. Cases:\r\n\r\n1. WHERE clause evaluates to FALSE => No results returned\r\n2. Missing FROM clause => Local execution, e.g.: `SELECT SIN(PI())`\r\n3. Special SQL command => Only valid of SQL iface, e.g.: `SHOW TABLES`\r\n\r\nFixes: #37040\r\n","created_at":"2019-01-03T22:52:40Z","updated_at":"2019-01-03T22:52:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":912794284,"node_id":"MDU6TGFiZWw5MTI3OTQyODQ=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Search/SQL","name":":Search/SQL","color":"0e8a16","default":false},{"id":23174,"node_id":"MDU6TGFiZWwyMzE3NA==","url":"https://api.github.com/repos/elastic/elasticsearch/labels/%3Eenhancement","name":">enhancement","color":"4a4ea8","default":false},{"id":1163688906,"node_id":"MDU6TGFiZWwxMTYzNjg4OTA2","url":"https://api.github.com/repos/elastic/elasticsearch/labels/v6.7.0","name":"v6.7.0","color":"dddddd","default":false},{"id":484855464,"node_id":"MDU6TGFiZWw0ODQ4NTU0NjQ=","url":"https://api.github.com/repos/elastic/elasticsearch/labels/v7.0.0","name":"v7.0.0","color":"dddddd","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/37129/commits","review_comments_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/37129/comments","review_comment_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/37129/comments","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/0da39f14da6411aaed2afeb46f302bb9a4eaecc0","head":{"label":"matriv:mt/fix-37040","ref":"mt/fix-37040","sha":"0da39f14da6411aaed2afeb46f302bb9a4eaecc0","user":{"login":"matriv","id":5058131,"node_id":"MDQ6VXNlcjUwNTgxMzE=","avatar_url":"https://avatars1.githubusercontent.com/u/5058131?v=4","gravatar_id":"","url":"https://api.github.com/users/matriv","html_url":"https://github.com/matriv","followers_url":"https://api.github.com/users/matriv/followers","following_url":"https://api.github.com/users/matriv/following{/other_user}","gists_url":"https://api.github.com/users/matriv/gists{/gist_id}","starred_url":"https://api.github.com/users/matriv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matriv/subscriptions","organizations_url":"https://api.github.com/users/matriv/orgs","repos_url":"https://api.github.com/users/matriv/repos","events_url":"https://api.github.com/users/matriv/events{/privacy}","received_events_url":"https://api.github.com/users/matriv/received_events","type":"User","site_admin":false},"repo":{"id":147189200,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcxODkyMDA=","name":"elasticsearch","full_name":"matriv/elasticsearch","private":false,"owner":{"login":"matriv","id":5058131,"node_id":"MDQ6VXNlcjUwNTgxMzE=","avatar_url":"https://avatars1.githubusercontent.com/u/5058131?v=4","gravatar_id":"","url":"https://api.github.com/users/matriv","html_url":"https://github.com/matriv","followers_url":"https://api.github.com/users/matriv/followers","following_url":"https://api.github.com/users/matriv/following{/other_user}","gists_url":"https://api.github.com/users/matriv/gists{/gist_id}","starred_url":"https://api.github.com/users/matriv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matriv/subscriptions","organizations_url":"https://api.github.com/users/matriv/orgs","repos_url":"https://api.github.com/users/matriv/repos","events_url":"https://api.github.com/users/matriv/events{/privacy}","received_events_url":"https://api.github.com/users/matriv/received_events","type":"User","site_admin":false},"html_url":"https://github.com/matriv/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":true,"url":"https://api.github.com/repos/matriv/elasticsearch","forks_url":"https://api.github.com/repos/matriv/elasticsearch/forks","keys_url":"https://api.github.com/repos/matriv/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matriv/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matriv/elasticsearch/teams","hooks_url":"https://api.github.com/repos/matriv/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/matriv/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/matriv/elasticsearch/events","assignees_url":"https://api.github.com/repos/matriv/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/matriv/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/matriv/elasticsearch/tags","blobs_url":"https://api.github.com/repos/matriv/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matriv/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matriv/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/matriv/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matriv/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/matriv/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/matriv/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/matriv/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/matriv/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/matriv/elasticsearch/subscription","commits_url":"https://api.github.com/repos/matriv/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/matriv/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/matriv/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/matriv/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/matriv/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/matriv/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matriv/elasticsearch/merges","archive_url":"https://api.github.com/repos/matriv/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matriv/elasticsearch/downloads","issues_url":"https://api.github.com/repos/matriv/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/matriv/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/matriv/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/matriv/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matriv/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/matriv/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/matriv/elasticsearch/deployments","created_at":"2018-09-03T10:30:40Z","updated_at":"2018-12-20T08:31:52Z","pushed_at":"2019-01-03T22:51:17Z","git_url":"git://github.com/matriv/elasticsearch.git","ssh_url":"git@github.com:matriv/elasticsearch.git","clone_url":"https://github.com/matriv/elasticsearch.git","svn_url":"https://github.com/matriv/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":535439,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"7686ee763183e4dca0d4373f9b432e7ac87c1625","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":507775,"node_id":"MDEwOlJlcG9zaXRvcnk1MDc3NzU=","name":"elasticsearch","full_name":"elastic/elasticsearch","private":false,"owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/elastic/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":false,"url":"https://api.github.com/repos/elastic/elasticsearch","forks_url":"https://api.github.com/repos/elastic/elasticsearch/forks","keys_url":"https://api.github.com/repos/elastic/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/elasticsearch/teams","hooks_url":"https://api.github.com/repos/elastic/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/elasticsearch/events","assignees_url":"https://api.github.com/repos/elastic/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/elasticsearch/tags","blobs_url":"https://api.github.com/repos/elastic/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/elastic/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/elastic/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/elastic/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/elastic/elasticsearch/subscription","commits_url":"https://api.github.com/repos/elastic/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/elasticsearch/merges","archive_url":"https://api.github.com/repos/elastic/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/elasticsearch/downloads","issues_url":"https://api.github.com/repos/elastic/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/elastic/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/elasticsearch/deployments","created_at":"2010-02-08T13:20:56Z","updated_at":"2019-01-03T22:38:41Z","pushed_at":"2019-01-03T22:51:20Z","git_url":"git://github.com/elastic/elasticsearch.git","ssh_url":"git@github.com:elastic/elasticsearch.git","clone_url":"https://github.com/elastic/elasticsearch.git","svn_url":"https://github.com/elastic/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":549280,"stargazers_count":37301,"watchers_count":37301,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12549,"mirror_url":null,"archived":false,"open_issues_count":1877,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":12549,"open_issues":1877,"watchers":37301,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/37129"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/37129"},"issue":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/37129"},"comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/37129/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/37129/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/37129/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/elasticsearch/statuses/0da39f14da6411aaed2afeb46f302bb9a4eaecc0"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":8,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"matriv"}}