-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
suggest add table function generate_series
and change the results of current version
#9323
Comments
databend's numbers function + 1 is similar with generate_series ctx.sql("select number+1 from numbers(3)")
┌──────────────┐
│ (number + 1) │
│ UInt64 │
├──────────────┤
│ 1 │
│ 2 │
│ 3 │
└──────────────┘ |
I'm just wondering what is the purpose of datafusion to design in such a way. If this feature is needed, I can do this one. |
Here is the duckdb syntax: https://duckdb.org/docs/sql/functions/nested.html#range-functions It looks to me like |
I think we should follow postgres or duckdb's syntax |
take |
Is your feature request related to a problem or challenge?
as #9315 mentioned,
generate_series
is alias ofrange
, it's result does not include the upper bound. it results the problem of Portability from other DBMS.Describe the solution you'd like
the result of
generate_series
is same as that of postgresql, therange()
funciton keeps the current resultDescribe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: