2010YOUY01 opened a new issue, #13615:
URL: https://github.com/apache/datafusion/issues/13615

   ### Is your feature request related to a problem or challenge?
   
   This is a follow up task for https://github.com/apache/datafusion/pull/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
   
   - Extend the UDTF for 1/3 argument support, following the behavior of 
`DuckDB` https://duckdb.org/docs/sql/functions/list#generate_series
   - Add `sqllogictest`s
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to