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

Parse Hive OR clauses as they are written into the AST

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0
    • 1.3.0, 2.0.0
    • Logical Optimizer
    • 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
          jcamachorodriguez
        2. HIVE-11397.branch-1.patch
          34 kB
          jcamachorodriguez
        3. HIVE-11397.2.patch
          34 kB
          jcamachorodriguez
        4. HIVE-11397.2.patch
          34 kB
          jcamachorodriguez
        5. HIVE-11397.1.patch
          0.8 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: