You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Pressenna (Jira)" <ji...@apache.org> on 2019/11/15 07:55:00 UTC

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

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

Pressenna edited comment on CALCITE-3504 at 11/15/19 7:54 AM:
--------------------------------------------------------------

I would just argue as follows:

{code:sql}
SELECT ARRAY[null] FROM foo;

SELECT ARRAY[] FROM foo;

-- assuming that those are varlen arrays, I would assume both to be of the same type.
{code}


was (Author: psockali):
I would just argue as follows:

{code::sql}
SELECT ARRAY[null] FROM foo;

SELECT ARRAY[] FROM foo;

-- assuming that those are varlen arrays, I would assume both to be of the same type.
{code}

> 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)