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

Fix 4616 generate series for PostgreSql #4717

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

griffio
Copy link
Contributor

@griffio griffio commented Oct 13, 2023

Adds generate_series PostgreSql function
Adds integration test

This is simpler than adding support for generate_series as a table source.

SELECT generate_series(
    CAST('2023-09-01T00:00:00Z' AS TIMESTAMPTZ),
    CAST('2023-09-02T00:00:00Z' AS TIMESTAMPTZ),
    CAST('1 hour' AS INTERVAL)
  );

closes #4616

@griffio
Copy link
Contributor Author

griffio commented Oct 13, 2023

🔕 Build was cancelled - try again later

@griffio griffio force-pushed the fix-4616-generate-series branch 3 times, most recently from 000cd7d to dedf65f Compare October 18, 2023 12:35
Use as a function

For example

SELECT generate_series(
    CAST('2023-09-01T00:00:00Z' AS TIMESTAMPTZ),
    CAST('2023-09-02T00:00:00Z' AS TIMESTAMPTZ),
    CAST('1 hour' AS INTERVAL)
  );
assert that the timestamp series is generated
@AlecKazakova AlecKazakova merged commit e40231b into cashapp:master Oct 20, 2023
7 checks passed
@griffio griffio deleted the fix-4616-generate-series branch October 20, 2023 15:04
hfhbd pushed a commit that referenced this pull request Apr 2, 2024
* add generate_series as a function

Use as a function

For example

SELECT generate_series(
    CAST('2023-09-01T00:00:00Z' AS TIMESTAMPTZ),
    CAST('2023-09-02T00:00:00Z' AS TIMESTAMPTZ),
    CAST('1 hour' AS INTERVAL)
  );

* Add integration test

assert that the timestamp series is generated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support generate_series in Postgres dialect
2 participants