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

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 2.0.0
    • Component/s: Vectorization
    • Labels:
      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.patch
          28 kB
          Teddy Choi
        2. HIVE-10238.2.patch
          30 kB
          Teddy Choi
        3. HIVE-10238.3.patch
          29 kB
          Teddy Choi

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: