hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Sankar Sivarama Subramaniyan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6708) ConstantVectorExpression should create copies of data objects rather than referencing them
Date Fri, 21 Mar 2014 19:27:49 GMT

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

Hari Sankar Sivarama Subramaniyan updated HIVE-6708:
----------------------------------------------------

    Status: Patch Available  (was: Open)

updated patch as per [~jnp] 's comments

> ConstantVectorExpression should create copies of data objects rather than referencing
them
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-6708
>                 URL: https://issues.apache.org/jira/browse/HIVE-6708
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Hari Sankar Sivarama Subramaniyan
>            Assignee: Hari Sankar Sivarama Subramaniyan
>         Attachments: HIVE-6708-1.patch
>
>
> 1. ConstantVectorExpression vector should be updated for bytecolumnvectors and decimalColumnVectors.
The current code changes the reference to the vector which might be shared across multiple
columns
> 2. VectorizationContext.foldConstantsForUnaryExpression(ExprNodeDesc exprDesc) has a
minor bug as to when to constant fold the expression.
> The following code should replace the corresponding piece of code in the trunk.
> ..
>     GenericUDF gudf = ((ExprNodeGenericFuncDesc) exprDesc).getGenericUDF();
>     if (gudf instanceof GenericUDFOPNegative || gudf instanceof GenericUDFOPPositive
>         || castExpressionUdfs.contains(gudf.getClass())
> ... 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message