hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-11506) Casting varchar/char type to string cannot be vectorized
Date Tue, 11 Aug 2015 00:36:45 GMT

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

Navis updated HIVE-11506:
-------------------------
    Attachment: HIVE-11506.2.patch.txt

Updated golden files

> Casting varchar/char type to string cannot be vectorized
> --------------------------------------------------------
>
>                 Key: HIVE-11506
>                 URL: https://issues.apache.org/jira/browse/HIVE-11506
>             Project: Hive
>          Issue Type: Improvement
>          Components: Vectorization
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-11506.1.patch.txt, HIVE-11506.2.patch.txt
>
>
> It's not defined in vectorization context.
> {code}
> explain 
> select cast(cast(cstring1 as varchar(10)) as string) x from alltypesorc order by x;
> {code}
> Mapper is not vectorized by exception,
> {noformat}
> 015-08-10 17:02:08,003 INFO  [main]: physical.Vectorizer (Vectorizer.java:validateExprNodeDesc(1299))
- Failed to vectorize
> org.apache.hadoop.hive.ql.metadata.HiveException: Unhandled cast input type: varchar(10)
>         at org.apache.hadoop.hive.ql.exec.vector.VectorizationContext.getCastToString(VectorizationContext.java:1543)
>         at org.apache.hadoop.hive.ql.exec.vector.VectorizationContext.getGenericUDFBridgeVectorExpression(VectorizationContext.java:1379)
>         at org.apache.hadoop.hive.ql.exec.vector.VectorizationContext.getGenericUdfVectorExpression(VectorizationContext.java:1177)
>         at org.apache.hadoop.hive.ql.exec.vector.VectorizationContext.getVectorExpression(VectorizationContext.java:440)
>         at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer.validateExprNodeDesc(Vectorizer.java:1293)
>         at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer.validateExprNodeDesc(Vectorizer.java:1284)
>         at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer.validateSelectOperator(Vectorizer.java:1116)
>         at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer.validateMapWorkOperator(Vectorizer.java:906)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message