[
https://issues.apache.org/jira/browse/FLINK-32337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733257#comment-17733257
]
Sergey Nuyanzin commented on FLINK-32337:
-----------------------------------------
Merged as
[9bcebe7db3abfae6474e9dc4f1180bc5b63f2a75|https://github.com/apache/flink/commit/9bcebe7db3abfae6474e9dc4f1180bc5b63f2a75]
> SQL array_union could return wrong result
> -----------------------------------------
>
> Key: FLINK-32337
> URL: https://issues.apache.org/jira/browse/FLINK-32337
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / API
> Affects Versions: 1.18.0
> Reporter: Sergey Nuyanzin
> Assignee: Sergey Nuyanzin
> Priority: Major
> Labels: pull-request-available
>
> This is was mentioned at
> [https://github.com/apache/flink/pull/22717#issuecomment-1587333488]
> how to reproduce
> {code:sql}
> SELECT array_union(ARRAY[CAST(NULL AS INT)], ARRAY[1]); -- returns [NULL, 1],
> this is OK
> SELECT array_union(ARRAY[1], ARRAY[CAST(NULL AS INT)]); -- returns [1, 0],
> this is NOT OK
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)