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

Make RelDistribution extend RelMultipleTrait

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.15.0
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            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

                Slack

                  Issue deployment