You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Marios Trivyzas (Jira)" <ji...@apache.org> on 2021/09/30 10:31:00 UTC

[jira] [Created] (FLINK-24425) Add support for casting from a single type to the corresponding array

Marios Trivyzas created FLINK-24425:
---------------------------------------

             Summary: Add support for casting from a single type to the corresponding array
                 Key: FLINK-24425
                 URL: https://issues.apache.org/jira/browse/FLINK-24425
             Project: Flink
          Issue Type: Sub-task
            Reporter: Marios Trivyzas


Should we add support for something like:

*CAST(10 AS ARRAY(INT())* which will result in *[10]* ?

 

PostgreSQL for example doesn't support it:

{{postgres=# select 1::integer[];}}
{{ERROR: cannot cast type integer to integer[]}}
{{LINE 1: select 1::integer[];}}



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