You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Make generate_series compatible with PostgreSQL #13316
I expect it to be compatible with the PostgreSQL function, besides it should also be more efficient to generate columnar data than having to unnest it.
I think it's also easy to use: we can operate both array and table column with generate_series()
Additionally, it would be great to let the table function only use constant memory. For example, if select * from genereate_series(1, 1000000000) it should generate data batch by batch, instead of materializing everything in TableScan node, then start output.
This way this function can be very useful in many cases like micro benchmarks and tests.
@2010YOUY01 Yeah I agree with this, I was working on this a bit and the current generate_series logic + output seems to follow through well with the other UDFs.
Activity
jonathanc-n commentedon Nov 8, 2024
take
2010YOUY01 commentedon Nov 9, 2024
I think we can keep this behavior, and add another UDTF with the same name (which follows DuckDB behavior):
I think it's also easy to use: we can operate both array and table column with
generate_series()Additionally, it would be great to let the table function only use constant memory. For example, if
select * from genereate_series(1, 1000000000)it should generate data batch by batch, instead of materializing everything in TableScan node, then start output.This way this function can be very useful in many cases like micro benchmarks and tests.
jonathanc-n commentedon Nov 9, 2024
@2010YOUY01 Yeah I agree with this, I was working on this a bit and the current
generate_serieslogic + output seems to follow through well with the other UDFs.simonvandel commentedon Jun 29, 2025
@Dandandan Can this issue be closed now, as DataFusion supports
generate_seriesas a table function?Jefffrey commentedon Sep 27, 2025
Closed by #13540 (following duckdb behaviour)