hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chengxiang Li (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-10238) Loop optimization for SIMD in IfExprColumnColumn.txt
Date Tue, 07 Apr 2015 08:57:12 GMT
Chengxiang Li created HIVE-10238:
------------------------------------

             Summary: Loop optimization for SIMD in IfExprColumnColumn.txt
                 Key: HIVE-10238
                 URL: https://issues.apache.org/jira/browse/HIVE-10238
             Project: Hive
          Issue Type: Sub-task
          Components: Vectorization
    Affects Versions: 1.1.0
            Reporter: Chengxiang Li
            Assignee: Jitendra Nath Pandey
            Priority: Minor


The ?: operator as following could not be vectorized in loop, we may transfer it into mathematical
expression.
{code:java}
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]);
}
{code} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message