You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2020/09/03 10:38:00 UTC

[jira] [Commented] (CALCITE-3504) allow empty ARRAY[] literals

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

Stamatis Zampetakis commented on CALCITE-3504:
----------------------------------------------

Hi [~psockali], can you provide some further details on how you resolved this internally. It may help other people that bump into this in the future.

> allow empty ARRAY[] literals
> ----------------------------
>
>                 Key: CALCITE-3504
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3504
>             Project: Calcite
>          Issue Type: Wish
>    Affects Versions: 1.21.0
>            Reporter: Pressenna
>            Priority: Major
>
> Currently an ARRAY expression requires at least one element.
> Please allow empty ARRAY expressions.
> {code:sql}
> SELECT ARRAY[] FROM foo;
> -- or more concise for updates:
> UPDATE food set array_column = ARRAY[];
> {code}



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