You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2023/06/14 11:12:00 UTC

[jira] [Created] (FLINK-32337) SQL array_union could return wrong result

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)