You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/09/13 19:35:00 UTC

[jira] [Work logged] (BEAM-7049) Merge multiple input to one BeamUnionRel

     [ https://issues.apache.org/jira/browse/BEAM-7049?focusedWorklogId=312284&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-312284 ]

ASF GitHub Bot logged work on BEAM-7049:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Sep/19 19:34
            Start Date: 13/Sep/19 19:34
    Worklog Time Spent: 10m 
      Work Description: amaliujia commented on pull request #9358: (WIP-BEAM-7049)Changes made to make a simple case of threeway union work
URL: https://github.com/apache/beam/pull/9358#discussion_r324338919
 
 

 ##########
 File path: sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/planner/BeamRuleSets.java
 ##########
 @@ -141,6 +142,7 @@
 
   private static final List<RelOptRule> BEAM_CONVERTERS =
       ImmutableList.of(
+          UnionMergeRule.INSTANCE, //Added for three way union
 
 Review comment:
   Ah. The only difference of us might just be the place to add this rule:
   
   I added to LOGICAL_OPTIMIZATIONS above.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 312284)
    Time Spent: 0.5h  (was: 20m)

> Merge multiple input to one BeamUnionRel
> ----------------------------------------
>
>                 Key: BEAM-7049
>                 URL: https://issues.apache.org/jira/browse/BEAM-7049
>             Project: Beam
>          Issue Type: Improvement
>          Components: dsl-sql
>            Reporter: Rui Wang
>            Assignee: sridhar Reddy
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> BeamUnionRel assumes inputs are two and rejects more. So `a UNION b UNION c` will have to be created as UNION(a, UNION(b, c)) and have two shuffles. If BeamUnionRel can handle multiple shuffles, we will have only one shuffle



--
This message was sent by Atlassian Jira
(v8.3.2#803003)