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

Parse Hive OR clauses as they are written into the AST

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 2.0.0
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: Logical Optimizer
    • Labels:
      None

      Description

      When parsing A OR B OR C, hive converts it into

      (C OR B) OR A

      instead of turning it into

      A OR (B OR C)

              GenericUDFOPOr or = new GenericUDFOPOr();
              List<ExprNodeDesc> expressions = new ArrayList<ExprNodeDesc>(2);
              expressions.add(previous);
              expressions.add(current);
      

        Attachments

        1. HIVE-11397.patch
          3 kB
          Jesus Camacho Rodriguez
        2. HIVE-11397.1.patch
          0.8 kB
          Jesus Camacho Rodriguez
        3. HIVE-11397.2.patch
          34 kB
          Jesus Camacho Rodriguez
        4. HIVE-11397.2.patch
          34 kB
          Jesus Camacho Rodriguez
        5. HIVE-11397.branch-1.patch
          34 kB
          Jesus Camacho Rodriguez

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              jcamachorodriguez Jesus Camacho Rodriguez Assign to me
              Reporter:
              gopalv Gopal Vijayaraghavan

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment