[
https://issues.apache.org/jira/browse/FLINK-20578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17356330#comment-17356330
]
Zhiwen Sun commented on FLINK-20578:
------------------------------------
Override checkOperandTypes in SqlArrayValueConstructor maybe fix it.
But I have a question:
If Flink support empty array, which data type of elements in array should be ?
Does it cause new problems.
> Cannot create empty array using ARRAY[]
> ---------------------------------------
>
> Key: FLINK-20578
> URL: https://issues.apache.org/jira/browse/FLINK-20578
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / API
> Affects Versions: 1.11.2
> Reporter: Fabian Hueske
> Priority: Major
> Labels: starter
> Fix For: 1.14.0
>
>
> Calling the ARRAY function without an element (`ARRAY[]`) results in an error
> message.
> Is that the expected behavior?
> How can users create empty arrays?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)