hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Jain (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-916) typedbytes: changes
Date Wed, 30 Dec 2009 19:23:29 GMT

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

Namit Jain commented on HIVE-916:
---------------------------------

Also for 1., we use a short for tinyint

FROM (
  FROM src
  SELECT TRANSFORM(cast(src.key as smallint), src.value) ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.TypedBytesSerDe'
  RECORDWRITER 'org.apache.hadoop.hive.contrib.util.typedbytes.TypedBytesRecordWriter'
  USING '/bin/cat'
  AS (tkey smallint, tvalue string) ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.TypedBytesSerDe'
  RECORDREADER 'org.apache.hadoop.hive.contrib.util.typedbytes.TypedBytesRecordReader'
) tmap
INSERT OVERWRITE TABLE dest1 SELECT tkey, tvalue;

> typedbytes: changes
> -------------------
>
>                 Key: HIVE-916
>                 URL: https://issues.apache.org/jira/browse/HIVE-916
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Venky Iyer
>            Assignee: Namit Jain
>
> 1.  probably use int for tinyint/shortint instead of bytes
> 2. pick different typecode for eo-record marker: not 100/101/255
> 3. use string when type not specified in AS clause

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message