Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      Description

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

      • sequence(start, stop) → array<bigint>
        Generate a sequence of integers from start to stop, incrementing by 1 if start is less than or equal to stop, otherwise -1.
      • sequence(start, stop, step) → array<bigint>
        Generate a sequence of integers from start to stop, incrementing by step.
      • sequence(start, stop) → array<date>
        Generate a sequence of dates from start date to stop date, incrementing by 1 day if start date is less than or equal to stop date, otherwise -1 day.
      • sequence(start, stop, step) → array<date>
        Generate a sequence of dates from start to stop, incrementing by step. The type of step can be either INTERVAL DAY TO SECOND or INTERVAL YEAR TO MONTH.
      • sequence(start, stop, step) → array<timestamp>
        Generate a sequence of timestamps from start to stop, incrementing by step. The type of step can be either INTERVAL DAY TO SECOND or INTERVAL YEAR TO MONTH.

        Attachments

          Activity

            People

            • Assignee:
              wajda Alex Vayda
              Reporter:
              smilegator Xiao Li
            • Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: