Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1990

Make RelDistribution extend RelMultipleTrait

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: None
    • Labels:
      None

      Description

      In Distributed System, RelDistribution is used for Exchange or SortExchange. for some operators it may deliver RelDistribution Trait, but some operator like SortedMergeJoin may deliver multiple traits.
      eg:

      Query:
      select * from T1 join T2 on T1.c1=T2.d1;
      
      Suppose Plan:
      SortedMergeJoin
          Exchange(c1)
              T1(c1)
          Exchange(d1)
              T2(d1)
      

      than SortedMergeJoin can deliver RelDistribution(hash[c1]) or RelDistribution(hash[d1]).
      we can consider RelDistribution extend RelMultipleTrait like RelCollation.
      EnumerableMergeJoin is the case for RelCollation, and RelDistribution is also fit for SortedMergeJoin in Distributed system

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              perid007 LeoWangLZ
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.2h
                0.2h
                Remaining:
                Remaining Estimate - 0.2h
                0.2h
                Logged:
                Time Spent - Not Specified
                Not Specified