[ 
https://issues.apache.org/jira/browse/CALCITE-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16351203#comment-16351203
 ] 

Shuyi Chen commented on CALCITE-2045:
-------------------------------------

Hi [~julianhyde], shall we also extend SqlDataTypeSpec and the parser to 
support complex type expressions like:

 
{code:java}
ROW(NUMBER(5, 2) NOT NULL AS foo, ROW(BOOLEAN AS b, MyUDT NOT NULL AS i) AS rec)
{code}
However, the grammar might be slightly different than the grammar in what we 
discussed above in "CREATE TYPE",  i.e.,

 
{code:java}
CREATE TYPE myType AS (b BOOLEAN, i MyUDT NOT NULL)
CREATE TYPE myType2 AS (foo NUMBER(5, 2) NOT NULL, rec myType){code}
Should we converge them, or leave them as 2 different parser implementations? 
Thanks a lot.

> Support "CREATE TYPE" DDL
> -------------------------
>
>                 Key: CALCITE-2045
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2045
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>            Reporter: Shuyi Chen
>            Assignee: Julian Hyde
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to