{"action":"opened","number":562,"pull_request":{"url":"https://api.github.com/repos/groonga/groonga/pulls/562","id":75069704,"html_url":"https://github.com/groonga/groonga/pull/562","diff_url":"https://github.com/groonga/groonga/pull/562.diff","patch_url":"https://github.com/groonga/groonga/pull/562.patch","issue_url":"https://api.github.com/repos/groonga/groonga/issues/562","number":562,"state":"open","locked":false,"title":"expression_tree_builder: support expression having function","user":{"login":"naoa","id":5455147,"avatar_url":"https://avatars.githubusercontent.com/u/5455147?v=3","gravatar_id":"","url":"https://api.github.com/users/naoa","html_url":"https://github.com/naoa","followers_url":"https://api.github.com/users/naoa/followers","following_url":"https://api.github.com/users/naoa/following{/other_user}","gists_url":"https://api.github.com/users/naoa/gists{/gist_id}","starred_url":"https://api.github.com/users/naoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoa/subscriptions","organizations_url":"https://api.github.com/users/naoa/orgs","repos_url":"https://api.github.com/users/naoa/repos","events_url":"https://api.github.com/users/naoa/events{/privacy}","received_events_url":"https://api.github.com/users/naoa/received_events","type":"User","site_admin":false},"body":"functionを持っているgrn_exprでもexpression_rewriterを動かせるようにしたいです。\r\n\r\n以下のGroongaコマンドで確認しました。\r\n\r\nhttps://gist.github.com/naoa/7b9282c52ade55ec7fd1250bda0600d0\r\n\r\n本パッチ適用前の場合、\r\n```bash\r\nselect Users --filter 'query(\"_key\", \"ali*\") && age > 17 && age < 20'\r\n[\r\n  [\r\n    [\r\n      -22,\r\n      0.0,\r\n      0.0\r\n    ],\r\n    \"undefined method 'value' for #<Groonga::Procedure:0x1317e00>\"\r\n  ]\r\n]\r\n#|e| NoMethodError: undefined method 'value' for #<Groonga::Procedure:0x1317e00>\r\n```\r\nとなっていましたが、本パッチ適用後はクエリが正しく通るようになります。\r\n\r\n","created_at":"2016-06-24T06:26:26Z","updated_at":"2016-06-24T06:26:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/groonga/groonga/pulls/562/commits","review_comments_url":"https://api.github.com/repos/groonga/groonga/pulls/562/comments","review_comment_url":"https://api.github.com/repos/groonga/groonga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/groonga/groonga/issues/562/comments","statuses_url":"https://api.github.com/repos/groonga/groonga/statuses/7bb866c4df99a523596979acbb05ad8e71565fd0","head":{"label":"naoa:support-expr-have-func","ref":"support-expr-have-func","sha":"7bb866c4df99a523596979acbb05ad8e71565fd0","user":{"login":"naoa","id":5455147,"avatar_url":"https://avatars.githubusercontent.com/u/5455147?v=3","gravatar_id":"","url":"https://api.github.com/users/naoa","html_url":"https://github.com/naoa","followers_url":"https://api.github.com/users/naoa/followers","following_url":"https://api.github.com/users/naoa/following{/other_user}","gists_url":"https://api.github.com/users/naoa/gists{/gist_id}","starred_url":"https://api.github.com/users/naoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoa/subscriptions","organizations_url":"https://api.github.com/users/naoa/orgs","repos_url":"https://api.github.com/users/naoa/repos","events_url":"https://api.github.com/users/naoa/events{/privacy}","received_events_url":"https://api.github.com/users/naoa/received_events","type":"User","site_admin":false},"repo":{"id":21015271,"name":"groonga","full_name":"naoa/groonga","owner":{"login":"naoa","id":5455147,"avatar_url":"https://avatars.githubusercontent.com/u/5455147?v=3","gravatar_id":"","url":"https://api.github.com/users/naoa","html_url":"https://github.com/naoa","followers_url":"https://api.github.com/users/naoa/followers","following_url":"https://api.github.com/users/naoa/following{/other_user}","gists_url":"https://api.github.com/users/naoa/gists{/gist_id}","starred_url":"https://api.github.com/users/naoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoa/subscriptions","organizations_url":"https://api.github.com/users/naoa/orgs","repos_url":"https://api.github.com/users/naoa/repos","events_url":"https://api.github.com/users/naoa/events{/privacy}","received_events_url":"https://api.github.com/users/naoa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naoa/groonga","description":"An embeddable fulltext search engine. Groonga is the successor project to Senna.","fork":true,"url":"https://api.github.com/repos/naoa/groonga","forks_url":"https://api.github.com/repos/naoa/groonga/forks","keys_url":"https://api.github.com/repos/naoa/groonga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naoa/groonga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naoa/groonga/teams","hooks_url":"https://api.github.com/repos/naoa/groonga/hooks","issue_events_url":"https://api.github.com/repos/naoa/groonga/issues/events{/number}","events_url":"https://api.github.com/repos/naoa/groonga/events","assignees_url":"https://api.github.com/repos/naoa/groonga/assignees{/user}","branches_url":"https://api.github.com/repos/naoa/groonga/branches{/branch}","tags_url":"https://api.github.com/repos/naoa/groonga/tags","blobs_url":"https://api.github.com/repos/naoa/groonga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naoa/groonga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naoa/groonga/git/refs{/sha}","trees_url":"https://api.github.com/repos/naoa/groonga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naoa/groonga/statuses/{sha}","languages_url":"https://api.github.com/repos/naoa/groonga/languages","stargazers_url":"https://api.github.com/repos/naoa/groonga/stargazers","contributors_url":"https://api.github.com/repos/naoa/groonga/contributors","subscribers_url":"https://api.github.com/repos/naoa/groonga/subscribers","subscription_url":"https://api.github.com/repos/naoa/groonga/subscription","commits_url":"https://api.github.com/repos/naoa/groonga/commits{/sha}","git_commits_url":"https://api.github.com/repos/naoa/groonga/git/commits{/sha}","comments_url":"https://api.github.com/repos/naoa/groonga/comments{/number}","issue_comment_url":"https://api.github.com/repos/naoa/groonga/issues/comments{/number}","contents_url":"https://api.github.com/repos/naoa/groonga/contents/{+path}","compare_url":"https://api.github.com/repos/naoa/groonga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naoa/groonga/merges","archive_url":"https://api.github.com/repos/naoa/groonga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naoa/groonga/downloads","issues_url":"https://api.github.com/repos/naoa/groonga/issues{/number}","pulls_url":"https://api.github.com/repos/naoa/groonga/pulls{/number}","milestones_url":"https://api.github.com/repos/naoa/groonga/milestones{/number}","notifications_url":"https://api.github.com/repos/naoa/groonga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naoa/groonga/labels{/name}","releases_url":"https://api.github.com/repos/naoa/groonga/releases{/id}","deployments_url":"https://api.github.com/repos/naoa/groonga/deployments","created_at":"2014-06-19T20:55:50Z","updated_at":"2016-01-31T15:45:27Z","pushed_at":"2016-06-24T06:22:10Z","git_url":"git://github.com/naoa/groonga.git","ssh_url":"git@github.com:naoa/groonga.git","clone_url":"https://github.com/naoa/groonga.git","svn_url":"https://github.com/naoa/groonga","homepage":"http://groonga.org","size":60040,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"groonga:master","ref":"master","sha":"9324a2d6d05366f36f0a1e41f260423f6dac5bcb","user":{"login":"groonga","id":46466,"avatar_url":"https://avatars.githubusercontent.com/u/46466?v=3","gravatar_id":"","url":"https://api.github.com/users/groonga","html_url":"https://github.com/groonga","followers_url":"https://api.github.com/users/groonga/followers","following_url":"https://api.github.com/users/groonga/following{/other_user}","gists_url":"https://api.github.com/users/groonga/gists{/gist_id}","starred_url":"https://api.github.com/users/groonga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groonga/subscriptions","organizations_url":"https://api.github.com/users/groonga/orgs","repos_url":"https://api.github.com/users/groonga/repos","events_url":"https://api.github.com/users/groonga/events{/privacy}","received_events_url":"https://api.github.com/users/groonga/received_events","type":"Organization","site_admin":false},"repo":{"id":107202,"name":"groonga","full_name":"groonga/groonga","owner":{"login":"groonga","id":46466,"avatar_url":"https://avatars.githubusercontent.com/u/46466?v=3","gravatar_id":"","url":"https://api.github.com/users/groonga","html_url":"https://github.com/groonga","followers_url":"https://api.github.com/users/groonga/followers","following_url":"https://api.github.com/users/groonga/following{/other_user}","gists_url":"https://api.github.com/users/groonga/gists{/gist_id}","starred_url":"https://api.github.com/users/groonga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groonga/subscriptions","organizations_url":"https://api.github.com/users/groonga/orgs","repos_url":"https://api.github.com/users/groonga/repos","events_url":"https://api.github.com/users/groonga/events{/privacy}","received_events_url":"https://api.github.com/users/groonga/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groonga/groonga","description":"An embeddable fulltext search engine. Groonga is the successor project to Senna.","fork":false,"url":"https://api.github.com/repos/groonga/groonga","forks_url":"https://api.github.com/repos/groonga/groonga/forks","keys_url":"https://api.github.com/repos/groonga/groonga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groonga/groonga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groonga/groonga/teams","hooks_url":"https://api.github.com/repos/groonga/groonga/hooks","issue_events_url":"https://api.github.com/repos/groonga/groonga/issues/events{/number}","events_url":"https://api.github.com/repos/groonga/groonga/events","assignees_url":"https://api.github.com/repos/groonga/groonga/assignees{/user}","branches_url":"https://api.github.com/repos/groonga/groonga/branches{/branch}","tags_url":"https://api.github.com/repos/groonga/groonga/tags","blobs_url":"https://api.github.com/repos/groonga/groonga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groonga/groonga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groonga/groonga/git/refs{/sha}","trees_url":"https://api.github.com/repos/groonga/groonga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groonga/groonga/statuses/{sha}","languages_url":"https://api.github.com/repos/groonga/groonga/languages","stargazers_url":"https://api.github.com/repos/groonga/groonga/stargazers","contributors_url":"https://api.github.com/repos/groonga/groonga/contributors","subscribers_url":"https://api.github.com/repos/groonga/groonga/subscribers","subscription_url":"https://api.github.com/repos/groonga/groonga/subscription","commits_url":"https://api.github.com/repos/groonga/groonga/commits{/sha}","git_commits_url":"https://api.github.com/repos/groonga/groonga/git/commits{/sha}","comments_url":"https://api.github.com/repos/groonga/groonga/comments{/number}","issue_comment_url":"https://api.github.com/repos/groonga/groonga/issues/comments{/number}","contents_url":"https://api.github.com/repos/groonga/groonga/contents/{+path}","compare_url":"https://api.github.com/repos/groonga/groonga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groonga/groonga/merges","archive_url":"https://api.github.com/repos/groonga/groonga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groonga/groonga/downloads","issues_url":"https://api.github.com/repos/groonga/groonga/issues{/number}","pulls_url":"https://api.github.com/repos/groonga/groonga/pulls{/number}","milestones_url":"https://api.github.com/repos/groonga/groonga/milestones{/number}","notifications_url":"https://api.github.com/repos/groonga/groonga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groonga/groonga/labels{/name}","releases_url":"https://api.github.com/repos/groonga/groonga/releases{/id}","deployments_url":"https://api.github.com/repos/groonga/groonga/deployments","created_at":"2009-01-14T09:30:34Z","updated_at":"2016-06-13T06:26:38Z","pushed_at":"2016-06-24T06:18:13Z","git_url":"git://github.com/groonga/groonga.git","ssh_url":"git@github.com:groonga/groonga.git","clone_url":"https://github.com/groonga/groonga.git","svn_url":"https://github.com/groonga/groonga","homepage":"http://groonga.org","size":64648,"stargazers_count":340,"watchers_count":340,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":46,"forks":85,"open_issues":46,"watchers":340,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/groonga/groonga/pulls/562"},"html":{"href":"https://github.com/groonga/groonga/pull/562"},"issue":{"href":"https://api.github.com/repos/groonga/groonga/issues/562"},"comments":{"href":"https://api.github.com/repos/groonga/groonga/issues/562/comments"},"review_comments":{"href":"https://api.github.com/repos/groonga/groonga/pulls/562/comments"},"review_comment":{"href":"https://api.github.com/repos/groonga/groonga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/groonga/groonga/pulls/562/commits"},"statuses":{"href":"https://api.github.com/repos/groonga/groonga/statuses/7bb866c4df99a523596979acbb05ad8e71565fd0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"naoa"}}