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

Julian Hyde commented on CALCITE-2045:
--------------------------------------

For CREATE TYPE, you will need a SqlCreateType class similar to SqlCreateTable.

I think you will also need to allow a reference to a user-defined type in 
SqlDataTypeSpec (or a sub-class of SqlDataTypeSpec; I'm not sure). That change 
should go into core, and be accompanied by tests in SqlParserTest. In common 
with other code, the parser should not check whether the referenced type 
exists. It should just produce a parse tree.

Then you will need to extend the validator to resolve type identifiers (and 
convert to fully-qualified names). Probably at that point you will convert to 
RelDataType.

> 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