hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Hanson (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-4821) Implement vectorized type casting for all types
Date Mon, 08 Jul 2013 21:23:48 GMT

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

Eric Hanson updated HIVE-4821:
------------------------------

    Description: 
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? 

  was:
Implement vectorized support for casting from any type to any type.

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 

        Summary: Implement vectorized type casting for all types  (was: Implement type casting
for all types)
    
> 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: vectorization-branch
>            Reporter: Eric Hanson
>
> 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 message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message