You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2008/11/01 00:09:44 UTC

[jira] Created: (HADOOP-4568) Hive: DynamicSerDe to support struct inside array/map

Hive: DynamicSerDe to support struct inside array/map
-----------------------------------------------------

                 Key: HADOOP-4568
                 URL: https://issues.apache.org/jira/browse/HADOOP-4568
             Project: Hadoop Core
          Issue Type: Bug
          Components: contrib/hive
            Reporter: Zheng Shao


We should allow users to create types and use those types in dynamic serde.

In this way we can support:

CREATE TYPE friend_information (
  friend_id int,
  friend_name string
);

CREATE TABLE user_information {
  user_id int,
  user_name string,
  friends array<friend_information>
);

Or support in-place declaration:

CREATE TABLE user_information {
  user_id int,
  user_name string,
  friends array<TYPE user_information(friend_id int,  friend_name string) >
);


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


[jira] Commented: (HADOOP-4568) Hive: DynamicSerDe to support struct inside array/map

Posted by "Pete Wyckoff (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-4568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644750#action_12644750 ] 

Pete Wyckoff commented on HADOOP-4568:
--------------------------------------

The dynamic serde itself support is actually almost done as part of the jira to add the unit tests for this.  it currently works with TJSONProtocol but not TBinaryProtocol so some minor bug.


> Hive: DynamicSerDe to support struct inside array/map
> -----------------------------------------------------
>
>                 Key: HADOOP-4568
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4568
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>            Reporter: Zheng Shao
>
> We should allow users to create types and use those types in dynamic serde.
> In this way we can support:
> CREATE TYPE friend_information (
>   friend_id int,
>   friend_name string
> );
> CREATE TABLE user_information {
>   user_id int,
>   user_name string,
>   friends array<friend_information>
> );
> Or support in-place declaration:
> CREATE TABLE user_information {
>   user_id int,
>   user_name string,
>   friends array<TYPE user_information(friend_id int,  friend_name string) >
> );

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