XMLWordPrintableJSON

Details

    Description

      Remove all elements that equal to element from array.

      Syntax:
      array_union(array)

      Arguments:
      array: An ARRAY to be handled.

      Returns:

      An ARRAY. If value is NULL, the result is NULL. 
      Examples:

      > SELECT array_union(array(1, 2, 3), array(1, 3, 5));
       [1,2,3,5] 

      See also
      spark https://spark.apache.org/docs/latest/api/sql/index.html#array_union

      presto https://prestodb.io/docs/current/functions/array.html

      Attachments

        Issue Links

          Activity

            People

              jackylau Jacky Lau
              jackylau Jacky Lau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: