Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31621

Add ARRAY_REVERSE supported in SQL & Table API

    XMLWordPrintableJSON

Details

    Description

      array_reverse(array) - Returns an array in reverse order.

      Syntax:
      array_reverse(array)

      Arguments:
      array: An ARRAY to be handled.

      Returns:

      Returns an array in reverse order.

      Returns null if the argument is null

      > SELECT array_reverse(array(1, 2, 2, NULL));
       NULL, 2, 2, 1

      See also
      bigquery https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators#array_reverse

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: