[ 
https://issues.apache.org/jira/browse/HIVE-10238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14905885#comment-14905885
 ] 

Lefty Leverenz commented on HIVE-10238:
---------------------------------------

Another one for the errata.txt file (see HIVE-11704 and HIVE-11876):  the 
commit called this HIVE-10328 instead of 10238, transposing the 2 and 3.

It's commit b98a60df2f3779acf82d94965d11ed951b618fad.

> 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: Teddy Choi
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: HIVE-10238.2.patch, HIVE-10238.3.patch, HIVE-10238.patch
>
>
> 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)

Reply via email to