Skip to content

array_union correctness issue #3644

@comphead

Description

@comphead

Describe the bug

Error executing SQL 'SELECT array_union(a, b) FROM test_array_union'

== Results ==
!== Correct Answer - 5 ==               == Spark Answer - 5 ==
 struct<array_union(a, b):array<int>>   struct<array_union(a, b):array<int>>
 [ArrayBuffer(1)]                       [ArrayBuffer(1)]
 [ArrayBuffer(1, 2)]                    [ArrayBuffer(1, 2)]
 [ArrayBuffer(1, 2, 3, 4, 5)]           [ArrayBuffer(1, 2, 3, 4, 5)]
![ArrayBuffer(1, null, 2)]              [ArrayBuffer(null, 1, 2)]
 [null]                                 [null]

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions