Sergey Nuyanzin created FLINK-32337:
---------------------------------------
Summary: 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
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)