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

Julian Hyde commented on CALCITE-5956:
--------------------------------------

If the {{MAP}} type were added to standard SQL, I wonder what syntax it would 
have? The existing parameterized types {{ARRAY}} and {{MULTISET}} use prefix 
form, which means that the argument appears before the type constructor, e.g. 
"{{{}INTEGER ARRAY{}}}", "{{{}BOOLEAN MULTISET{}}}", "{{{}INTEGER ARRAY 
ARRAY{}}}".

I wonder, could we use a prefix form for {{{}MAP{}}}, e.g. "{{{}(INTEGER, 
BOOLEAN) MAP{}}}"?

> Support parsing non-standard collection types
> ---------------------------------------------
>
>                 Key: CALCITE-5956
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5956
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: hongyu guo
>            Assignee: hongyu guo
>            Priority: Major
>             Fix For: 1.36.0
>
>
> Calcite support SQL standard collection types. For example:
> {code:sql}
> INTEGER ARRAY;
> INTEGER ARRAY ARRAY;
> VARCHAR(5) MULTISET;
> INTEGER MULTISET ARRAY;{code}
> Many DBMS support a dialect of {{ARRAY<T>}} and {{MULITSET<T>}},
> I think Calcite can also support this dialect in core Parser.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to