Registry Mirror
Skip to content

Support 1 or 3 arg in generate_series() UDTF #13615

Closed

Description

@2010YOUY01

Is your feature request related to a problem or challenge?

This is a follow up task for #13540
Now only 2-argument version is supported

> select * from generate_series(1,3);
+-------+
| value |
+-------+
| 1     |
| 2     |
| 3     |
+-------+

It can be extended with 'no start' and 'step' support:

D select * from generate_series(3);
┌─────────────────┐
│ generate_series │
│      int64      │
├─────────────────┤
│               0 │
│               1 │
│               2 │
│               3 │
└─────────────────┘
D select * from generate_series(3,1,-1);
┌─────────────────┐
│ generate_series │
│      int64      │
├─────────────────┤
│               3 │
│               2 │
│               1 │
└─────────────────┘

Describe the solution you'd like

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added
    enhancement
    on Dec 1, 2024
  2. changed the title [-]Support 1/3 arg in `generate_series()` UDTF[/-] [+]Support 1 or 3 arg in `generate_series()` UDTF[/+] on Dec 1, 2024
  3. jonathanc-n commented on Dec 1, 2024

    @jonathanc-n
    Contributor

    take

  4. buraksenn commented on Dec 15, 2024

    @buraksenn
    Contributor

    @jonathanc-n did you start working on this? I think this is a low-hanging issue and I can also try if you're okay with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions