You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2013/12/04 01:45:35 UTC

[jira] [Commented] (HIVE-5918) int / int division does not vectorize due to type checks

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

Sergey Shelukhin commented on HIVE-5918:
----------------------------------------

We discussed w/[~jnp]; the cause appears to be GenericUDFOPDivide::deriveResultExactTypeInfo, which is always decimal, from HIVE-5356. So, ints are exact types, and this goes to decimal. Didn't discuss solutions yet. 
Ideally, we should have vectorization support for decimal.

> int / int division does not vectorize due to type checks
> --------------------------------------------------------
>
>                 Key: HIVE-5918
>                 URL: https://issues.apache.org/jira/browse/HIVE-5918
>             Project: Hive
>          Issue Type: Bug
>          Components: Vectorization
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>
> When I try to vectorize e.g. select cbigint / 0 from alltypesorc, (with some logging added), I get my logging
> physical.Vectorizer (Vectorizer.java:validateExprNodeDescRecursive(642)) - failed to validate type: decimal(25,6); (cbigint / 0)



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