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

Add built-in table function for generating sequence of dates #24707

Open
piotrrzysko opened this issue Jan 14, 2025 · 1 comment
Open

Add built-in table function for generating sequence of dates #24707

piotrrzysko opened this issue Jan 14, 2025 · 1 comment
Assignees

Comments

@piotrrzysko
Copy link
Member

I’d like to propose adding a built-in table function that returns a sequence of dates, similar to the existing sequence function for bigints.
The scalar counterparts of sequence for both bigints and dates share the same name. Since, table functions currently do not support overloading I see two possible approaches:

  1. Assign a unique name to the new function, e.g., date_sequence.
  2. Add support for overloading table functions. Based on my understanding, the SQL spec allows overloading table functions.

For reference, here’s a Slack thread discussing this: https://trinodb.slack.com/archives/C07ABNN828M/p1736797358292709

@mosabua
Copy link
Member

mosabua commented Jan 15, 2025

Fyi @kasiafi and @martint

Also @piotrrzysko can you add some of the ideas and points form the slack discussion here since that thread will disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants