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

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

[~hongyuguo], I agree we need a syntax for MAP types. I did a quick survey:
 * The SQL standard doesn't provide a syntax for MAP (or any type with two type 
parameters);
 * 
[Spark|https://docs.databricks.com/en/sql/language-manual/data-types/map-type.html],
 [Impala|https://impala.apache.org/docs/build3x/html/topics/impala_map.html], 
[Hive|https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-ComplexTypes]
 use brackets, "MAP<INT, DOUBLE>";
 * [Clickhouse|https://clickhouse.com/docs/en/sql-reference/data-types/map] and 
[DuckDB|https://duckdb.org/docs/sql/data_types/map.html] use parentheses, e.g. 
"MAP(INT, DOUBLE)";
 * Oracle, Postgres don't support MAP type.

> 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