Description
Is your feature request related to a problem or challenge?
I would like to have support of time generation using time ranges and with steps that are less than 1 day (e.g. an hour, custom range of x seconds, etc). The current generate_series
only supports the following:
generate_series(Int64)
generate_series(Int64, Int64)
generate_series(Int64, Int64, Int64)
generate_series(Date32, Date32, Interval(MonthDayNano))
This is built in postgresDB, so it might be a good inspiration source for how it can be implemented in Datafusion.
Note: There is probably a bug in the current generate_series
implementation. When specifying a step less than an interval of 1 day, Datafusion hangs indefinitely. Link to bug report #11823
Describe the solution you'd like
Example:
select generate_series('2023-01-01 10:00:00'::timestamp, '2023-01-31 23:59:00'::timestamp, '1 hour'::interval) as date_time;
Describe alternatives you've considered
No response
Additional context
This feature is really crucial for time series handling. influxDB is built on top of Datafusion and needs to have this as well :)