Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10179 Optimization for SIMD instructions in Hive
  3. HIVE-10238

Loop optimization for SIMD in IfExprColumnColumn.txt

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 2.0.0
    • Vectorization
    • None

    Description

      The ?: operator as following could not be vectorized in loop, we may transfer it into mathematical expression.

      for(int j = 0; j != n; j++) {
            int i = sel[j];
            outputVector[i] = (vector1[i] == 1 ? vector2[i] : vector3[i]);
            outputIsNull[i] = (vector1[i] == 1 ?
                arg2ColVector.isNull[i] : arg3ColVector.isNull[i]);
      }
      

      Attachments

        1. HIVE-10238.2.patch
          30 kB
          Teddy Choi
        2. HIVE-10238.3.patch
          29 kB
          Teddy Choi
        3. HIVE-10238.patch
          28 kB
          Teddy Choi

        Activity

          People

            teddy.choi Teddy Choi
            chengxiang li Chengxiang Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: