[ https://issues.apache.org/jira/browse/FLINK-32337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Nuyanzin resolved FLINK-32337. ------------------------------------- Fix Version/s: 1.18.0 Resolution: Fixed > 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 > Fix For: 1.18.0 > > > 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)