hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-7160) Vectorization Udf: GenericUDFConcat for non-string columns input, is not supported
Date Thu, 05 Jun 2014 08:44:02 GMT

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

Navis updated HIVE-7160:
------------------------

    Assignee: Navis
      Status: Patch Available  (was: Open)

There might some design issue. added preferredType for VectorizedExpressions annotation. Will
try argument conversion if there are not proper VectorExpression. 

In this case, concat(column<int>/column<string>) is not supported but adding preferredType="String..."
makes final try with first argument casted to string type.

> Vectorization Udf: GenericUDFConcat for non-string columns input, is not supported
> ----------------------------------------------------------------------------------
>
>                 Key: HIVE-7160
>                 URL: https://issues.apache.org/jira/browse/HIVE-7160
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.14.0
>            Reporter: Gopal V
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-7160.1.patch.txt
>
>
> simple UDF missing vectorization - simple example would be 
> hive> explain select concat( l_orderkey, ' msecs') from lineitem;
> is not vectorized while
> hive>  explain select concat(cast(l_orderkey as string), ' msecs') from lineitem;
> can be vectorized.
> {code}
> 14/05/31 15:28:59 [main]: DEBUG vector.VectorizationContext: No vector udf found for
GenericUDFConcat, descriptor: Argument Count = 2, mode = PROJECTION, Argument Types = {LONG,
STRING}, Input Expression Types = {COLUMN,COLUMN}
> 14/05/31 15:28:59 [main]: DEBUG physical.Vectorizer: Failed to vectorize
> org.apache.hadoop.hive.ql.metadata.HiveException: Udf: GenericUDFConcat, is not supported
>         at org.apache.hadoop.hive.ql.exec.vector.VectorizationContext.getGenericUdfVectorExpression(VectorizationContext.java:918)
> {code}



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

Mime
View raw message