You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by vasia <gi...@git.apache.org> on 2016/02/25 20:54:34 UTC

[GitHub] flink pull request: [FLINK-3482] implement union translation

GitHub user vasia opened a pull request:

    https://github.com/apache/flink/pull/1715

    [FLINK-3482] implement union translation

    This PR add union support to Table on Calcite. I've implemented a custom `JoinUnionTransposeRule`
    because Calcite's only matches with LogicalUnion.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vasia/flink union

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1715.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1715
    
----
commit 6991e601ceabc63ec9f367c4ad2e4f75468aaf2b
Author: vasia <va...@apache.org>
Date:   2016-02-25T19:52:19Z

    [FLINK-3482] implement union translation
    - implement custom JoinUnionTransposeRules
    because Calcite's only match with LogicalUnion

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3482] implement union translation

Posted by vasia <gi...@git.apache.org>.
Github user vasia closed the pull request at:

    https://github.com/apache/flink/pull/1715


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3482] implement union translation

Posted by vasia <gi...@git.apache.org>.
Github user vasia commented on the pull request:

    https://github.com/apache/flink/pull/1715#issuecomment-189210225
  
    Thanks, I will merge.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3482] implement union translation

Posted by fhueske <gi...@git.apache.org>.
Github user fhueske commented on the pull request:

    https://github.com/apache/flink/pull/1715#issuecomment-189208835
  
    Looks good. Can be merged after the comment was added. Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3482] implement union translation

Posted by fhueske <gi...@git.apache.org>.
Github user fhueske commented on the pull request:

    https://github.com/apache/flink/pull/1715#issuecomment-189209810
  
    +1 to merge


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] flink pull request: [FLINK-3482] implement union translation

Posted by fhueske <gi...@git.apache.org>.
Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/1715#discussion_r54226979
  
    --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/plan/rules/logical/FlinkJoinUnionTransposeRule.scala ---
    @@ -0,0 +1,103 @@
    +/* 
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.flink.api.table.plan.rules.logical
    +
    +import org.apache.calcite.plan.RelOptRule.{any, operand, convert => convertTrait}
    +import org.apache.calcite.plan.RelOptRule
    +import org.apache.calcite.plan.RelOptRuleOperand
    +import org.apache.calcite.plan.RelOptRuleCall
    +import org.apache.calcite.rel.RelNode
    +import java.util.ArrayList
    +import scala.collection.JavaConversions._
    +import org.apache.calcite.rel.logical.LogicalJoin
    +import org.apache.calcite.rel.logical.LogicalUnion
    +import org.apache.calcite.rel.core.Join
    +import org.apache.calcite.rel.core.Union
    +
    +class FlinkJoinUnionTransposeRule(
    --- End diff --
    
    Can you add a notice that this file was copied from Apache Calcite and briefly describe what you changed and why?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---