You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eric Hanson (JIRA)" <ji...@apache.org> on 2013/11/26 21:47:39 UTC

[jira] [Commented] (HIVE-5895) vectorization handles division by zero differently from normal execution

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

Eric Hanson commented on HIVE-5895:
-----------------------------------

For division only, consider doing a final pass over the vector and count the infinity values. If it is 0, do nothing. This is the common case. 

If it is non-zero, then do another pass and conditionally convert the infinities to NULL.

This avoids an if/else check in the inner loop for the common case.

Eric

> vectorization handles division by zero differently from normal execution
> ------------------------------------------------------------------------
>
>                 Key: HIVE-5895
>                 URL: https://issues.apache.org/jira/browse/HIVE-5895
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>            Priority: Minor
>
> Produces infinity, not NULL



--
This message was sent by Atlassian JIRA
(v6.1#6144)