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

SearchArgumentImpl generates wrong ExpressionTree in some cases which might result in loss of data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Critical
    • Resolution: Unresolved
    • 1.2.1
    • None
    • Hive, storage-api

    Description

      ExpressionBuilder applies `pushDownNot`, `foldMaybe`, `flatten`, `convertToCNF`, `flatten` and `buildLeafList` in order to form a non-normalized expression into a CNF expression with the unique leaves.

      After an expression is converted to CNF, there might be more than one non-leaf nodes which are exactly the same object in the expression tree. If this happens, those non-leaf nodes will be visited more than once in `buildLeafList` function. As a result, a wrong ExpressionTree is generated.

      My version is 1.2.1, but it seems that the higher versions are also affected

      Attachments

        1. HIVE-21955.1.branch-1.patch
          18 kB
          Zihao Ye
        2. HIVE-21955.branch-1.patch
          0.9 kB
          Zihao Ye

        Activity

          People

            zihao.ye Zihao Ye
            zihao.ye Zihao Ye
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: