Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24334

SyntheticJoinPredicate creation may be missed when ReduceSink has Join input

    XMLWordPrintableJSON

Details

    Description

      Let assume we have a plan where some Reduce Sink operators has a Join operator as input:

      TS[33]-FIL[34]-SEL[35]-RS[42]-JOIN[44]-RS[45]-JOIN[47]
      TS[36]-FIL[37]-SEL[38]-RS[43]-JOIN[44]
      TS[39]-FIL[40]-SEL[41]-RS[46]-JOIN[47]
      

      RS[45] inputs is JOIN[44].
      When searching for additional opportunities to create additional SyntheticJoinPredicates ExprNodeDescUtils.backtrack does not return the input expression of the expression in the join operator but the expression itself.
      This is caused by

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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