hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Hanson (JIRA)" <>
Subject [jira] [Updated] (HIVE-4821) Implement vectorized type casting for all types
Date Thu, 10 Oct 2013 00:41:42 GMT


Eric Hanson updated HIVE-4821:

    Attachment: HIVE-4821.1.patch

Support for end-to-end vectorized type casting from and to all types supported by vectorization
is included. I included unit tests for new cast VectorExpression classes, and did ad-hoc end-to-end
testing for all the different casts, in vectorized mode.

> Implement vectorized type casting for all types
> -----------------------------------------------
>                 Key: HIVE-4821
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Eric Hanson
>            Assignee: Eric Hanson
>         Attachments: HIVE-4821.1.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:
> 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

View raw message