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

Hudson commented on HIVE-4821:
------------------------------

FAILURE: Integrated in Hive-trunk-hadoop1-ptest #206 (See 
[https://builds.apache.org/job/Hive-trunk-hadoop1-ptest/206/])
HIVE-4821 : Implement vectorized type casting for all types (Eric Hanson via 
Ashutosh Chauhan) (hashutosh: 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1532575)
* /hive/trunk/ant/src/org/apache/hadoop/hive/ant/GenVectorCode.java
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorizationContext.java
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/CastBooleanToStringViaLongToString.java
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/CastLongToString.java
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/LongToStringUnaryUDF.java
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/MathExpr.java
* 
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/Vectorizer.java
* 
/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorTypeCasts.java


> Implement vectorized type casting for all types
> -----------------------------------------------
>
>                 Key: HIVE-4821
>                 URL: https://issues.apache.org/jira/browse/HIVE-4821
>             Project: Hive
>          Issue Type: Sub-task
>    Affects Versions: 0.13.0
>            Reporter: Eric Hanson
>            Assignee: Eric Hanson
>             Fix For: 0.13.0
>
>         Attachments: HIVE-4821.2.patch
>
>
> Implement vectorized support for casting from any type to any type.
> From the documentation:
> cast(expr as <type>): Converts the results of the expression expr to <type> 
> e.g. cast('1' as BIGINT) will convert the string '1' to it integral 
> representation. A null is returned if the conversion does not succeed
> The current supported internal types are:
> LONG
> DOUBLE
> STRING
> TIMESTAMP
> Before implementation, determine what are the semantics of explicit casting 
> to types less general than the internal types. E.g. what if you cast DOUBLE 
> to TINYINT? Can we just cast internally to LONG and let the output process 
> cast to TINYINT? 
> This JIRA includes all work to make casting operate end-to-end in a SQL query 
> in vectorized mode, including updates to VectorizationContext.



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

Reply via email to