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

Ashish Thusoo commented on HIVE-62:
-----------------------------------

yes that is a possibility. One problem from a usability angle though is that 
even if I know the path to the field I would have to go though multiple 
describe types to get to the member that I am interested in finding the type 
of. e.g.

{int a;
 lObj b;
}

Obj {
  int c;
}

In order to find the type for c I would have to

describe T;

which would give me 

int a
Obj b;

then I would have to

describe type Obj;

which would give me

int c;

instead of just saying

describe T.b

Having a TYPE keyword though is a good idea, though Oracle and other OORDBMS do 
not make this explict.

Check out the Oracle type syntax at

http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12019.htm

though Oracle itself does not support the dotted notation to find the type of 
an element represented by an xpath expression as far as I know.






> Add ability to describe nested types
> ------------------------------------
>
>                 Key: HIVE-62
>                 URL: https://issues.apache.org/jira/browse/HIVE-62
>             Project: Hadoop Hive
>          Issue Type: New Feature
>            Reporter: Ashish Thusoo
>            Assignee: Ashish Thusoo
>
> Add ability to describe nested types.

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

Reply via email to