{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/57190736","id":57190736,"diff_hunk":"@@ -0,0 +1,68 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with 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.flink.api.table.plan.nodes.datastream\n+\n+import org.apache.calcite.plan.{RelOptCluster, RelTraitSet}\n+import org.apache.calcite.rel.`type`.RelDataType\n+import org.apache.calcite.rel.{RelNode, RelWriter, BiRel}\n+import org.apache.flink.api.common.typeinfo.TypeInformation\n+import org.apache.flink.api.table.TableConfig\n+import org.apache.flink.streaming.api.datastream.DataStream\n+\n+/**\n+  * Flink RelNode which matches along with Union.\n+  *\n+  */\n+class DataStreamUnion(\n+    cluster: RelOptCluster,\n+    traitSet: RelTraitSet,\n+    left: RelNode,\n+    right: RelNode,\n+    rowType: RelDataType,\n+    opName: String)","path":"flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/nodes/datastream/DataStreamUnion.scala","position":38,"original_position":38,"commit_id":"b21d5e2a3fdb23ab19a2e577521f8cb6fceaa3b8","original_commit_id":"b21d5e2a3fdb23ab19a2e577521f8cb6fceaa3b8","user":{"login":"fhueske","id":2388347,"avatar_url":"https://avatars.githubusercontent.com/u/2388347?v=3","gravatar_id":"","url":"https://api.github.com/users/fhueske","html_url":"https://github.com/fhueske","followers_url":"https://api.github.com/users/fhueske/followers","following_url":"https://api.github.com/users/fhueske/following{/other_user}","gists_url":"https://api.github.com/users/fhueske/gists{/gist_id}","starred_url":"https://api.github.com/users/fhueske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhueske/subscriptions","organizations_url":"https://api.github.com/users/fhueske/orgs","repos_url":"https://api.github.com/users/fhueske/repos","events_url":"https://api.github.com/users/fhueske/events{/privacy}","received_events_url":"https://api.github.com/users/fhueske/received_events","type":"User","site_admin":false},"body":"`DataSetUnion` was updated to not use the `opName` anymore. Would be good to reflect these changes also in `DataStreamUnion`.","created_at":"2016-03-23T16:26:35Z","updated_at":"2016-03-23T16:26:35Z","html_url":"https://github.com/apache/flink/pull/1820#discussion_r57190736","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/1820","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/57190736"},"html":{"href":"https://github.com/apache/flink/pull/1820#discussion_r57190736"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/1820"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/1820","id":63420728,"html_url":"https://github.com/apache/flink/pull/1820","diff_url":"https://github.com/apache/flink/pull/1820.diff","patch_url":"https://github.com/apache/flink/pull/1820.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/1820","number":1820,"state":"open","locked":false,"title":"[FLINK-3547] add support for streaming filter, project, and union in the Table API","user":{"login":"vasia","id":498957,"avatar_url":"https://avatars.githubusercontent.com/u/498957?v=3","gravatar_id":"","url":"https://api.github.com/users/vasia","html_url":"https://github.com/vasia","followers_url":"https://api.github.com/users/vasia/followers","following_url":"https://api.github.com/users/vasia/following{/other_user}","gists_url":"https://api.github.com/users/vasia/gists{/gist_id}","starred_url":"https://api.github.com/users/vasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasia/subscriptions","organizations_url":"https://api.github.com/users/vasia/orgs","repos_url":"https://api.github.com/users/vasia/repos","events_url":"https://api.github.com/users/vasia/events{/privacy}","received_events_url":"https://api.github.com/users/vasia/received_events","type":"User","site_admin":false},"body":"This PR adds:\r\n\r\n- Java and Scala stream translators\r\n- methods to convert a table to a DataStream and vice versa\r\n- streaming rules to FlinkRuleSets\r\n- DataStream rules for calc, scan, and union\r\n- tests and streaming test utils","created_at":"2016-03-18T18:55:15Z","updated_at":"2016-03-23T16:26:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc0e1770a294770f907af0c96e08de9c1b42b993","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/1820/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/1820/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/1820/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/b21d5e2a3fdb23ab19a2e577521f8cb6fceaa3b8","head":{"label":"vasia:streamTable-on-master","ref":"streamTable-on-master","sha":"b21d5e2a3fdb23ab19a2e577521f8cb6fceaa3b8","user":{"login":"vasia","id":498957,"avatar_url":"https://avatars.githubusercontent.com/u/498957?v=3","gravatar_id":"","url":"https://api.github.com/users/vasia","html_url":"https://github.com/vasia","followers_url":"https://api.github.com/users/vasia/followers","following_url":"https://api.github.com/users/vasia/following{/other_user}","gists_url":"https://api.github.com/users/vasia/gists{/gist_id}","starred_url":"https://api.github.com/users/vasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasia/subscriptions","organizations_url":"https://api.github.com/users/vasia/orgs","repos_url":"https://api.github.com/users/vasia/repos","events_url":"https://api.github.com/users/vasia/events{/privacy}","received_events_url":"https://api.github.com/users/vasia/received_events","type":"User","site_admin":false},"repo":{"id":20796928,"name":"flink","full_name":"vasia/flink","owner":{"login":"vasia","id":498957,"avatar_url":"https://avatars.githubusercontent.com/u/498957?v=3","gravatar_id":"","url":"https://api.github.com/users/vasia","html_url":"https://github.com/vasia","followers_url":"https://api.github.com/users/vasia/followers","following_url":"https://api.github.com/users/vasia/following{/other_user}","gists_url":"https://api.github.com/users/vasia/gists{/gist_id}","starred_url":"https://api.github.com/users/vasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasia/subscriptions","organizations_url":"https://api.github.com/users/vasia/orgs","repos_url":"https://api.github.com/users/vasia/repos","events_url":"https://api.github.com/users/vasia/events{/privacy}","received_events_url":"https://api.github.com/users/vasia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vasia/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/vasia/flink","forks_url":"https://api.github.com/repos/vasia/flink/forks","keys_url":"https://api.github.com/repos/vasia/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vasia/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vasia/flink/teams","hooks_url":"https://api.github.com/repos/vasia/flink/hooks","issue_events_url":"https://api.github.com/repos/vasia/flink/issues/events{/number}","events_url":"https://api.github.com/repos/vasia/flink/events","assignees_url":"https://api.github.com/repos/vasia/flink/assignees{/user}","branches_url":"https://api.github.com/repos/vasia/flink/branches{/branch}","tags_url":"https://api.github.com/repos/vasia/flink/tags","blobs_url":"https://api.github.com/repos/vasia/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vasia/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vasia/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/vasia/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vasia/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/vasia/flink/languages","stargazers_url":"https://api.github.com/repos/vasia/flink/stargazers","contributors_url":"https://api.github.com/repos/vasia/flink/contributors","subscribers_url":"https://api.github.com/repos/vasia/flink/subscribers","subscription_url":"https://api.github.com/repos/vasia/flink/subscription","commits_url":"https://api.github.com/repos/vasia/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/vasia/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/vasia/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/vasia/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/vasia/flink/contents/{+path}","compare_url":"https://api.github.com/repos/vasia/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vasia/flink/merges","archive_url":"https://api.github.com/repos/vasia/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vasia/flink/downloads","issues_url":"https://api.github.com/repos/vasia/flink/issues{/number}","pulls_url":"https://api.github.com/repos/vasia/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/vasia/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/vasia/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vasia/flink/labels{/name}","releases_url":"https://api.github.com/repos/vasia/flink/releases{/id}","deployments_url":"https://api.github.com/repos/vasia/flink/deployments","created_at":"2014-06-13T08:09:41Z","updated_at":"2015-01-16T16:11:39Z","pushed_at":"2016-03-23T11:18:30Z","git_url":"git://github.com/vasia/flink.git","ssh_url":"git@github.com:vasia/flink.git","clone_url":"https://github.com/vasia/flink.git","svn_url":"https://github.com/vasia/flink","homepage":null,"size":84957,"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:master","ref":"master","sha":"f09d68a05efb4afeb7b8498d35201e8324d6c096","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-23T08:12:49Z","pushed_at":"2016-03-23T15:40:54Z","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":113166,"stargazers_count":1140,"watchers_count":1140,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":704,"mirror_url":"git://git.apache.org/flink.git","open_issues_count":92,"forks":704,"open_issues":92,"watchers":1140,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/1820"},"html":{"href":"https://github.com/apache/flink/pull/1820"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/1820"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/1820/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/1820/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/1820/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/b21d5e2a3fdb23ab19a2e577521f8cb6fceaa3b8"}}}}