{"action":"created","comment":{"url":"https://api.github.com/repos/ron8hu/spark/pulls/comments/93314207","pull_request_review_id":13839370,"id":93314207,"diff_hunk":"@@ -0,0 +1,41 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.apache.spark.sql.catalyst.plans.logical.estimation\n+\n+import scala.math.BigDecimal.RoundingMode\n+\n+import org.apache.spark.internal.Logging\n+import org.apache.spark.sql.catalyst.expressions.{Attribute, AttributeReference, Cast, Expression}\n+import org.apache.spark.sql.catalyst.plans._\n+import org.apache.spark.sql.catalyst.plans.logical.{ColumnStat, LogicalPlan}\n+import org.apache.spark.sql.types.StringType","path":"sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/estimation/EstimationUtils.scala","position":26,"original_position":26,"commit_id":"dc3bb1ddb135f65d5b8031e19fe26eb2e81de9d5","original_commit_id":"dc3bb1ddb135f65d5b8031e19fe26eb2e81de9d5","user":{"login":"ron8hu","id":10659419,"avatar_url":"https://avatars.githubusercontent.com/u/10659419?v=3","gravatar_id":"","url":"https://api.github.com/users/ron8hu","html_url":"https://github.com/ron8hu","followers_url":"https://api.github.com/users/ron8hu/followers","following_url":"https://api.github.com/users/ron8hu/following{/other_user}","gists_url":"https://api.github.com/users/ron8hu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron8hu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron8hu/subscriptions","organizations_url":"https://api.github.com/users/ron8hu/orgs","repos_url":"https://api.github.com/users/ron8hu/repos","events_url":"https://api.github.com/users/ron8hu/events{/privacy}","received_events_url":"https://api.github.com/users/ron8hu/received_events","type":"User","site_admin":false},"body":"OK.","created_at":"2016-12-20T20:03:41Z","updated_at":"2016-12-20T20:03:41Z","html_url":"https://github.com/ron8hu/spark/pull/1#discussion_r93314207","pull_request_url":"https://api.github.com/repos/ron8hu/spark/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ron8hu/spark/pulls/comments/93314207"},"html":{"href":"https://github.com/ron8hu/spark/pull/1#discussion_r93314207"},"pull_request":{"href":"https://api.github.com/repos/ron8hu/spark/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ron8hu/spark/pulls/1","id":98511758,"html_url":"https://github.com/ron8hu/spark/pull/1","diff_url":"https://github.com/ron8hu/spark/pull/1.diff","patch_url":"https://github.com/ron8hu/spark/pull/1.patch","issue_url":"https://api.github.com/repos/ron8hu/spark/issues/1","number":1,"state":"open","locked":false,"title":"Filter estimate","user":{"login":"ron8hu","id":10659419,"avatar_url":"https://avatars.githubusercontent.com/u/10659419?v=3","gravatar_id":"","url":"https://api.github.com/users/ron8hu","html_url":"https://github.com/ron8hu","followers_url":"https://api.github.com/users/ron8hu/followers","following_url":"https://api.github.com/users/ron8hu/following{/other_user}","gists_url":"https://api.github.com/users/ron8hu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron8hu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron8hu/subscriptions","organizations_url":"https://api.github.com/users/ron8hu/orgs","repos_url":"https://api.github.com/users/ron8hu/repos","events_url":"https://api.github.com/users/ron8hu/events{/privacy}","received_events_url":"https://api.github.com/users/ron8hu/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n\r\nThis is a WIP PR. In this version, we set up the framework to traverse predicate and evaluate the equality (=) expression.\r\n\r\n## How was this patch tested?\r\n\r\nWe just have a simple test case for now. More tests need to be added.","created_at":"2016-12-19T06:07:53Z","updated_at":"2016-12-20T20:03:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"378244b7f1d54f50217dce67874c81471652b584","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ron8hu/spark/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ron8hu/spark/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ron8hu/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ron8hu/spark/issues/1/comments","statuses_url":"https://api.github.com/repos/ron8hu/spark/statuses/dc3bb1ddb135f65d5b8031e19fe26eb2e81de9d5","head":{"label":"ron8hu:filterEstimate","ref":"filterEstimate","sha":"dc3bb1ddb135f65d5b8031e19fe26eb2e81de9d5","user":{"login":"ron8hu","id":10659419,"avatar_url":"https://avatars.githubusercontent.com/u/10659419?v=3","gravatar_id":"","url":"https://api.github.com/users/ron8hu","html_url":"https://github.com/ron8hu","followers_url":"https://api.github.com/users/ron8hu/followers","following_url":"https://api.github.com/users/ron8hu/following{/other_user}","gists_url":"https://api.github.com/users/ron8hu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron8hu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron8hu/subscriptions","organizations_url":"https://api.github.com/users/ron8hu/orgs","repos_url":"https://api.github.com/users/ron8hu/repos","events_url":"https://api.github.com/users/ron8hu/events{/privacy}","received_events_url":"https://api.github.com/users/ron8hu/received_events","type":"User","site_admin":false},"repo":{"id":67744891,"name":"spark","full_name":"ron8hu/spark","owner":{"login":"ron8hu","id":10659419,"avatar_url":"https://avatars.githubusercontent.com/u/10659419?v=3","gravatar_id":"","url":"https://api.github.com/users/ron8hu","html_url":"https://github.com/ron8hu","followers_url":"https://api.github.com/users/ron8hu/followers","following_url":"https://api.github.com/users/ron8hu/following{/other_user}","gists_url":"https://api.github.com/users/ron8hu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron8hu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron8hu/subscriptions","organizations_url":"https://api.github.com/users/ron8hu/orgs","repos_url":"https://api.github.com/users/ron8hu/repos","events_url":"https://api.github.com/users/ron8hu/events{/privacy}","received_events_url":"https://api.github.com/users/ron8hu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ron8hu/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/ron8hu/spark","forks_url":"https://api.github.com/repos/ron8hu/spark/forks","keys_url":"https://api.github.com/repos/ron8hu/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ron8hu/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ron8hu/spark/teams","hooks_url":"https://api.github.com/repos/ron8hu/spark/hooks","issue_events_url":"https://api.github.com/repos/ron8hu/spark/issues/events{/number}","events_url":"https://api.github.com/repos/ron8hu/spark/events","assignees_url":"https://api.github.com/repos/ron8hu/spark/assignees{/user}","branches_url":"https://api.github.com/repos/ron8hu/spark/branches{/branch}","tags_url":"https://api.github.com/repos/ron8hu/spark/tags","blobs_url":"https://api.github.com/repos/ron8hu/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ron8hu/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ron8hu/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/ron8hu/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ron8hu/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/ron8hu/spark/languages","stargazers_url":"https://api.github.com/repos/ron8hu/spark/stargazers","contributors_url":"https://api.github.com/repos/ron8hu/spark/contributors","subscribers_url":"https://api.github.com/repos/ron8hu/spark/subscribers","subscription_url":"https://api.github.com/repos/ron8hu/spark/subscription","commits_url":"https://api.github.com/repos/ron8hu/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/ron8hu/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/ron8hu/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/ron8hu/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/ron8hu/spark/contents/{+path}","compare_url":"https://api.github.com/repos/ron8hu/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ron8hu/spark/merges","archive_url":"https://api.github.com/repos/ron8hu/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ron8hu/spark/downloads","issues_url":"https://api.github.com/repos/ron8hu/spark/issues{/number}","pulls_url":"https://api.github.com/repos/ron8hu/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/ron8hu/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/ron8hu/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ron8hu/spark/labels{/name}","releases_url":"https://api.github.com/repos/ron8hu/spark/releases{/id}","deployments_url":"https://api.github.com/repos/ron8hu/spark/deployments","created_at":"2016-09-08T22:30:43Z","updated_at":"2016-09-08T22:31:07Z","pushed_at":"2016-12-20T03:26:16Z","git_url":"git://github.com/ron8hu/spark.git","ssh_url":"git@github.com:ron8hu/spark.git","clone_url":"https://github.com/ron8hu/spark.git","svn_url":"https://github.com/ron8hu/spark","homepage":null,"size":255302,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ron8hu:master","ref":"master","sha":"1e5c51f336b90cd1eed43e9c6cf00faee696174c","user":{"login":"ron8hu","id":10659419,"avatar_url":"https://avatars.githubusercontent.com/u/10659419?v=3","gravatar_id":"","url":"https://api.github.com/users/ron8hu","html_url":"https://github.com/ron8hu","followers_url":"https://api.github.com/users/ron8hu/followers","following_url":"https://api.github.com/users/ron8hu/following{/other_user}","gists_url":"https://api.github.com/users/ron8hu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron8hu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron8hu/subscriptions","organizations_url":"https://api.github.com/users/ron8hu/orgs","repos_url":"https://api.github.com/users/ron8hu/repos","events_url":"https://api.github.com/users/ron8hu/events{/privacy}","received_events_url":"https://api.github.com/users/ron8hu/received_events","type":"User","site_admin":false},"repo":{"id":67744891,"name":"spark","full_name":"ron8hu/spark","owner":{"login":"ron8hu","id":10659419,"avatar_url":"https://avatars.githubusercontent.com/u/10659419?v=3","gravatar_id":"","url":"https://api.github.com/users/ron8hu","html_url":"https://github.com/ron8hu","followers_url":"https://api.github.com/users/ron8hu/followers","following_url":"https://api.github.com/users/ron8hu/following{/other_user}","gists_url":"https://api.github.com/users/ron8hu/gists{/gist_id}","starred_url":"https://api.github.com/users/ron8hu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron8hu/subscriptions","organizations_url":"https://api.github.com/users/ron8hu/orgs","repos_url":"https://api.github.com/users/ron8hu/repos","events_url":"https://api.github.com/users/ron8hu/events{/privacy}","received_events_url":"https://api.github.com/users/ron8hu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ron8hu/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/ron8hu/spark","forks_url":"https://api.github.com/repos/ron8hu/spark/forks","keys_url":"https://api.github.com/repos/ron8hu/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ron8hu/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ron8hu/spark/teams","hooks_url":"https://api.github.com/repos/ron8hu/spark/hooks","issue_events_url":"https://api.github.com/repos/ron8hu/spark/issues/events{/number}","events_url":"https://api.github.com/repos/ron8hu/spark/events","assignees_url":"https://api.github.com/repos/ron8hu/spark/assignees{/user}","branches_url":"https://api.github.com/repos/ron8hu/spark/branches{/branch}","tags_url":"https://api.github.com/repos/ron8hu/spark/tags","blobs_url":"https://api.github.com/repos/ron8hu/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ron8hu/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ron8hu/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/ron8hu/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ron8hu/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/ron8hu/spark/languages","stargazers_url":"https://api.github.com/repos/ron8hu/spark/stargazers","contributors_url":"https://api.github.com/repos/ron8hu/spark/contributors","subscribers_url":"https://api.github.com/repos/ron8hu/spark/subscribers","subscription_url":"https://api.github.com/repos/ron8hu/spark/subscription","commits_url":"https://api.github.com/repos/ron8hu/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/ron8hu/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/ron8hu/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/ron8hu/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/ron8hu/spark/contents/{+path}","compare_url":"https://api.github.com/repos/ron8hu/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ron8hu/spark/merges","archive_url":"https://api.github.com/repos/ron8hu/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ron8hu/spark/downloads","issues_url":"https://api.github.com/repos/ron8hu/spark/issues{/number}","pulls_url":"https://api.github.com/repos/ron8hu/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/ron8hu/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/ron8hu/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ron8hu/spark/labels{/name}","releases_url":"https://api.github.com/repos/ron8hu/spark/releases{/id}","deployments_url":"https://api.github.com/repos/ron8hu/spark/deployments","created_at":"2016-09-08T22:30:43Z","updated_at":"2016-09-08T22:31:07Z","pushed_at":"2016-12-20T03:26:16Z","git_url":"git://github.com/ron8hu/spark.git","ssh_url":"git@github.com:ron8hu/spark.git","clone_url":"https://github.com/ron8hu/spark.git","svn_url":"https://github.com/ron8hu/spark","homepage":null,"size":255302,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ron8hu/spark/pulls/1"},"html":{"href":"https://github.com/ron8hu/spark/pull/1"},"issue":{"href":"https://api.github.com/repos/ron8hu/spark/issues/1"},"comments":{"href":"https://api.github.com/repos/ron8hu/spark/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ron8hu/spark/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ron8hu/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ron8hu/spark/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ron8hu/spark/statuses/dc3bb1ddb135f65d5b8031e19fe26eb2e81de9d5"}}}}
{"actor":{"display_login":"ron8hu"}}