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

CBO genOPTree is not failsafe for CTAS and VIEW statements

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.1.2
    • Fix Version/s: 4.0.0
    • Component/s: CBO
    • Labels:
      None

      Description

      If CBO fails during OT generation, it is supposed to skip CBO and fall back to SemanticAnalyzer generating the OT for the original AST. However, for CTAS and VIEW statements, the original AST is discarded and replaced with the new AST.
      If OT generation for the new AST fails with a SemanticException, the compilation is destined to fail completely since we cannot fall back to the original and possibly valid AST.

      Also, the SemanticException sometimes gets hidden and misjudged as a missing column statistics issue due to bad error handling.

        Attachments

        1. HIVE-22578.patch
          8 kB
          Aron Hamvas
        2. HIVE-22578.2.patch
          8 kB
          Aron Hamvas

          Activity

            People

            • Assignee:
              hamvas.aron Aron Hamvas
              Reporter:
              hamvas.aron Aron Hamvas
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: