hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Min Zhou (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (HIVE-577) return correct comment of a column from ThriftHiveMetastore.Iface.get_fields
Date Tue, 30 Jun 2009 03:15:47 GMT

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

Min Zhou edited comment on HIVE-577 at 6/29/09 8:15 PM:
--------------------------------------------------------

I guessed it's cumbersome to deal with custom tables from the api provided by hive currently.


DDL for table schema should changed from 
  struct{ type1 col1, type2 col2}
to some format like
  struct{ struct{type1 col1, string comment1},  struct{type2 col2, string comment2}}

however, MetaStoreUtils.getDDLFromFieldSchema(structName,  fieldSchemas) is not only for getSchema(table).




      was (Author: coderplay):
    I guessed it's cumbersome to deal with custom tables from current api provided by hive
currently. 
ddl for schema should changed from 
  struct{ type1 col1, type2 col2}
to some format like
  struct{ struct{type1 col1, string comment1},  struct{type2 col2, string comment2}}

however, MetaStoreUtils.getDDLFromFieldSchema(structName,  fieldSchemas) is not only for getSchema(table).



  
> return correct comment of a column from ThriftHiveMetastore.Iface.get_fields
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-577
>                 URL: https://issues.apache.org/jira/browse/HIVE-577
>             Project: Hadoop Hive
>          Issue Type: Sub-task
>            Reporter: Min Zhou
>            Assignee: Min Zhou
>         Attachments: HIVE-577.1.patch, HIVE-577.2.patch
>
>
> comment of each column hasnot been retrieved correct right now , 
> FieldSchema.getComment() will return a string "from derserializer".

-- 
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