Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2010YOUY01 opened this issue Dec 1, 2024 · 2 comments · May be fixed by #13856
Open

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

2010YOUY01 opened this issue Dec 1, 2024 · 2 comments · May be fixed by #13856
Assignees
Labels
enhancement New feature or request

Comments

@2010YOUY01
Copy link
Contributor

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

@2010YOUY01 2010YOUY01 added the enhancement New feature or request label Dec 1, 2024
@2010YOUY01 2010YOUY01 changed the title Support 1/3 arg in generate_series() UDTF Support 1 or 3 arg in generate_series() UDTF Dec 1, 2024
@jonathanc-n
Copy link
Contributor

take

@buraksenn
Copy link
Contributor

buraksenn commented Dec 15, 2024

@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

@UBarney UBarney linked a pull request Dec 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants