You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2021/06/28 23:58:00 UTC

[jira] [Comment Edited] (CALCITE-4669) Allow empty MAP[] constructors

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

Julian Hyde edited comment on CALCITE-4669 at 6/28/21, 11:57 PM:
-----------------------------------------------------------------

As noted in CALCITE-3504, Calcite's SQL is strongly typed. We need a way to deduce the type of such an expression.

Let's discuss the typing issue in CALCITE-3504. If we solve it there, the solution will work here also.


was (Author: julianhyde):
As noted in CALCITE-3504, Calcite's SQL is strongly typed. We need a way to deduce the type of such an expression.

> Allow empty MAP[] constructors
> ------------------------------
>
>                 Key: CALCITE-4669
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4669
>             Project: Calcite
>          Issue Type: Wish
>            Reporter: Jiefan Li
>            Priority: Major
>
> Please allow empty MAP expressions:
> {code:sql}
> SELECT MAP[] FROM foo;
> {code}
> Currently a MAP expression requires at least 2 element. However, Hive supports empty MAP() syntax.
> Similar to CALCITE-3504.
> cc: [~wmoustafa]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)