Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4160 Vectorized Query Execution in Hive
  3. HIVE-6186

error in vectorized Column-Column comparison filter for repeating case

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.13.0
    • Query Processor
    • None

    Description

      FilterColumnCompareColumn.txt contains this code:

      } else if (inputColVector1.isRepeating && inputColVector2.isRepeating) {
      if (nullPos1[0] || nullPos2[0])

      { batch.size = 0; }

      This code examines nullPos1[0] and nullPos2[0] without checking that noNulls==false for the appropriate vector. This could lead to incorrect results.

      We should review the case analysis for this template more generally to make sure that all combinations are covered:

      left.noNulls right.noNulls
      T T
      F T
      T F
      F F

      Attachments

        1. HIVE-6186.01.patch
          11 kB
          Eric N. Hanson

        Activity

          People

            ehans Eric N. Hanson
            ehans Eric N. Hanson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: