You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Teddy Choi (JIRA)" <ji...@apache.org> on 2015/09/22 10:02:04 UTC

[jira] [Updated] (HIVE-10238) Loop optimization for SIMD in IfExprColumnColumn.txt

     [ https://issues.apache.org/jira/browse/HIVE-10238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Teddy Choi updated HIVE-10238:
------------------------------
    Attachment: HIVE-10238.3.patch

After merging HIVE-11521 patch file on the master branch, the previous patch file had a conflict. This new patch file resolves the new conflict in VectorizationBench.getBooleanLongColumnVector().

> 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
>         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)