{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/55497175","id":55497175,"diff_hunk":"@@ -61,3 +70,11 @@ object BuiltInFunctionConstants {\n   val TRIM_TRAILING = Literal(2)\n   val TRIM_DEFAULT_CHAR = Literal(\" \")\n }\n+\n+object BuiltInMethods {\n+  val LOG10 = Types.lookupMethod(classOf[Math], \"log10\", classOf[Double])\n+  val EXP = Types.lookupMethod(classOf[Math], \"exp\", classOf[Double])\n+  val POWER = Types.lookupMethod(classOf[Math], \"pow\", classOf[Double], classOf[Double])\n+  val LN = Types.lookupMethod(classOf[Math], \"log\", classOf[Double])\n+  val ABS = Types.lookupMethod(classOf[SqlFunctions], \"abs\", classOf[Double])\n+}","path":"flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/expressions/call.scala","position":34,"original_position":34,"commit_id":"1ff3a297ae2bb2d0733b3fca68bd91c54301f556","original_commit_id":"1ff3a297ae2bb2d0733b3fca68bd91c54301f556","user":{"login":"zentol","id":5725237,"avatar_url":"https://avatars.githubusercontent.com/u/5725237?v=3","gravatar_id":"","url":"https://api.github.com/users/zentol","html_url":"https://github.com/zentol","followers_url":"https://api.github.com/users/zentol/followers","following_url":"https://api.github.com/users/zentol/following{/other_user}","gists_url":"https://api.github.com/users/zentol/gists{/gist_id}","starred_url":"https://api.github.com/users/zentol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zentol/subscriptions","organizations_url":"https://api.github.com/users/zentol/orgs","repos_url":"https://api.github.com/users/zentol/repos","events_url":"https://api.github.com/users/zentol/events{/privacy}","received_events_url":"https://api.github.com/users/zentol/received_events","type":"User","site_admin":false},"body":"this file causes a scalastyle violation on travis:\r\n\r\n```\r\nerror file=/home/travis/build/apache/flink/flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/expressions/call.scala message=File must end with newline character\r\n```","created_at":"2016-03-09T10:15:28Z","updated_at":"2016-03-09T10:15:28Z","html_url":"https://github.com/apache/flink/pull/1775#discussion_r55497175","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/1775","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/55497175"},"html":{"href":"https://github.com/apache/flink/pull/1775#discussion_r55497175"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/1775"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/1775","id":62125832,"html_url":"https://github.com/apache/flink/pull/1775","diff_url":"https://github.com/apache/flink/pull/1775.diff","patch_url":"https://github.com/apache/flink/pull/1775.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/1775","number":1775,"state":"open","locked":false,"title":"[FLINK-3574] Implement math functions for Table API","user":{"login":"dawidwys","id":6242259,"avatar_url":"https://avatars.githubusercontent.com/u/6242259?v=3","gravatar_id":"","url":"https://api.github.com/users/dawidwys","html_url":"https://github.com/dawidwys","followers_url":"https://api.github.com/users/dawidwys/followers","following_url":"https://api.github.com/users/dawidwys/following{/other_user}","gists_url":"https://api.github.com/users/dawidwys/gists{/gist_id}","starred_url":"https://api.github.com/users/dawidwys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawidwys/subscriptions","organizations_url":"https://api.github.com/users/dawidwys/orgs","repos_url":"https://api.github.com/users/dawidwys/repos","events_url":"https://api.github.com/users/dawidwys/events{/privacy}","received_events_url":"https://api.github.com/users/dawidwys/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-08T19:50:41Z","updated_at":"2016-03-09T10:15:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25e8dde8810b5ce80d64ef537b94844a2b1ce7de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/1775/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/1775/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/1775/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/1ff3a297ae2bb2d0733b3fca68bd91c54301f556","head":{"label":"dawidwys:mathFunctions","ref":"mathFunctions","sha":"1ff3a297ae2bb2d0733b3fca68bd91c54301f556","user":{"login":"dawidwys","id":6242259,"avatar_url":"https://avatars.githubusercontent.com/u/6242259?v=3","gravatar_id":"","url":"https://api.github.com/users/dawidwys","html_url":"https://github.com/dawidwys","followers_url":"https://api.github.com/users/dawidwys/followers","following_url":"https://api.github.com/users/dawidwys/following{/other_user}","gists_url":"https://api.github.com/users/dawidwys/gists{/gist_id}","starred_url":"https://api.github.com/users/dawidwys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawidwys/subscriptions","organizations_url":"https://api.github.com/users/dawidwys/orgs","repos_url":"https://api.github.com/users/dawidwys/repos","events_url":"https://api.github.com/users/dawidwys/events{/privacy}","received_events_url":"https://api.github.com/users/dawidwys/received_events","type":"User","site_admin":false},"repo":{"id":43764900,"name":"flink","full_name":"dawidwys/flink","owner":{"login":"dawidwys","id":6242259,"avatar_url":"https://avatars.githubusercontent.com/u/6242259?v=3","gravatar_id":"","url":"https://api.github.com/users/dawidwys","html_url":"https://github.com/dawidwys","followers_url":"https://api.github.com/users/dawidwys/followers","following_url":"https://api.github.com/users/dawidwys/following{/other_user}","gists_url":"https://api.github.com/users/dawidwys/gists{/gist_id}","starred_url":"https://api.github.com/users/dawidwys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawidwys/subscriptions","organizations_url":"https://api.github.com/users/dawidwys/orgs","repos_url":"https://api.github.com/users/dawidwys/repos","events_url":"https://api.github.com/users/dawidwys/events{/privacy}","received_events_url":"https://api.github.com/users/dawidwys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dawidwys/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/dawidwys/flink","forks_url":"https://api.github.com/repos/dawidwys/flink/forks","keys_url":"https://api.github.com/repos/dawidwys/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dawidwys/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dawidwys/flink/teams","hooks_url":"https://api.github.com/repos/dawidwys/flink/hooks","issue_events_url":"https://api.github.com/repos/dawidwys/flink/issues/events{/number}","events_url":"https://api.github.com/repos/dawidwys/flink/events","assignees_url":"https://api.github.com/repos/dawidwys/flink/assignees{/user}","branches_url":"https://api.github.com/repos/dawidwys/flink/branches{/branch}","tags_url":"https://api.github.com/repos/dawidwys/flink/tags","blobs_url":"https://api.github.com/repos/dawidwys/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dawidwys/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dawidwys/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/dawidwys/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dawidwys/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/dawidwys/flink/languages","stargazers_url":"https://api.github.com/repos/dawidwys/flink/stargazers","contributors_url":"https://api.github.com/repos/dawidwys/flink/contributors","subscribers_url":"https://api.github.com/repos/dawidwys/flink/subscribers","subscription_url":"https://api.github.com/repos/dawidwys/flink/subscription","commits_url":"https://api.github.com/repos/dawidwys/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/dawidwys/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/dawidwys/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/dawidwys/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/dawidwys/flink/contents/{+path}","compare_url":"https://api.github.com/repos/dawidwys/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dawidwys/flink/merges","archive_url":"https://api.github.com/repos/dawidwys/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dawidwys/flink/downloads","issues_url":"https://api.github.com/repos/dawidwys/flink/issues{/number}","pulls_url":"https://api.github.com/repos/dawidwys/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/dawidwys/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/dawidwys/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dawidwys/flink/labels{/name}","releases_url":"https://api.github.com/repos/dawidwys/flink/releases{/id}","deployments_url":"https://api.github.com/repos/dawidwys/flink/deployments","created_at":"2015-10-06T17:01:12Z","updated_at":"2015-10-06T17:01:31Z","pushed_at":"2016-03-08T19:48:45Z","git_url":"git://github.com/dawidwys/flink.git","ssh_url":"git@github.com:dawidwys/flink.git","clone_url":"https://github.com/dawidwys/flink.git","svn_url":"https://github.com/dawidwys/flink","homepage":null,"size":79404,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:tableOnCalcite","ref":"tableOnCalcite","sha":"e34e439549910761a19676ae6659add5233ddf1a","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20587599,"name":"flink","full_name":"apache/flink","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/flink","description":"Mirror of Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2016-03-09T08:16:22Z","pushed_at":"2016-03-09T10:11:44Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":null,"size":108717,"stargazers_count":1058,"watchers_count":1058,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":679,"mirror_url":"git://git.apache.org/flink.git","open_issues_count":87,"forks":679,"open_issues":87,"watchers":1058,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/1775"},"html":{"href":"https://github.com/apache/flink/pull/1775"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/1775"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/1775/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/1775/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/1775/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/1ff3a297ae2bb2d0733b3fca68bd91c54301f556"}}}}