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

Parse Hive OR clauses as they are written into the AST

    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.1.patch
          0.8 kB
          Jesus Camacho Rodriguez
        2. HIVE-11397.2.patch
          34 kB
          Jesus Camacho Rodriguez
        3. HIVE-11397.2.patch
          34 kB
          Jesus Camacho Rodriguez
        4. HIVE-11397.branch-1.patch
          34 kB
          Jesus Camacho Rodriguez
        5. HIVE-11397.patch
          3 kB
          Jesus Camacho Rodriguez

          Issue Links

            Activity

              People

              • Assignee:
                jcamachorodriguez Jesus Camacho Rodriguez
                Reporter:
                gopalv Gopal Vijayaraghavan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: