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

Detect query rewrite scenario for UPDATE/DELETE/MERGE and fail fast

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • Transactions
    • None

    Description

      Currently ACID UpdateDeleteSemanticAnalyzer directly manipulates the AST tree but it's different from the general approach of modifying the token stream and thus will cause AST tree mismatch if there is any rewrite happening after UpdateDeleteSemanticAnalyzer.

      The long term solution will be to rewrite the AST handling logic in UpdateDeleteSemanticAnalyzer, to make it consistent with the general approach.

      This ticket will for now detect the error prone cases and fail early.

      Attachments

        1. HIVE-15891.1.patch
          10 kB
          Wei Zheng
        2. HIVE-15891.2.patch
          10 kB
          Wei Zheng
        3. HIVE-15891.3.patch
          9 kB
          Wei Zheng
        4. HIVE-15891.4.patch
          9 kB
          Wei Zheng

        Issue Links

          Activity

            People

              wzheng Wei Zheng
              wzheng Wei Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: