hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Homan (JIRA)" <>
Subject [jira] [Created] (HIVE-2189) Hive ignores comments for nested structs
Date Tue, 31 May 2011 19:09:47 GMT
Hive ignores comments for nested structs

                 Key: HIVE-2189
             Project: Hive
          Issue Type: Bug
    Affects Versions: 0.7.0
            Reporter: Jakob Homan
            Priority: Minor

While it's possible to add comments to struct elements, it doesn't seem to be possible to
then retrieve those comments.  For instance:
{noformat}hive> create table test_table(a STRUCT<z:string COMMENT 'comment for z',x:int>
COMMENT 'comment for a');
Time taken: 2.565 seconds
hive> describe test_table;
a	struct<z:string,x:int>	comment for a
Time taken: 0.139 seconds
hive> describe test_table.a;
z	string	from deserializer
x	int	from deserializer
Time taken: 0.096 seconds
hive> describe test_table.a.z;
z	string	from deserializer
Time taken: 0.089 seconds
In this example, even though a comment has been set to field a.z, it doesn't show up in the
table or struct's description.  This is due to the way MetastoreUtils treats non-struct elements
while generating the table description.  This was identified in HIVE-2154.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message